summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2012-12-08 02:02:25 +0100
committerjvoisin2012-12-13 14:24:01 +0100
commitcbf8a2a65928694202e19b6bcf56ec84bcbf613c (patch)
treee106475b0d5c003505336b5ae6416e4508bb768b
parent67d5c1fa6b9ab6e1e7328ee57b15d8e46526d72a (diff)
Reorganize source tree and files installation location, cleanup setup.py (Closes: #689409)
Diffstat (limited to '')
-rw-r--r--MANIFEST.in4
-rw-r--r--MAT/FORMATS (renamed from lib/FORMATS)0
-rw-r--r--MAT/__init__.py (renamed from lib/__init__.py)0
-rw-r--r--MAT/archive.py (renamed from lib/archive.py)0
-rw-r--r--MAT/audio.py (renamed from lib/audio.py)0
-rw-r--r--MAT/bencode/__init__.py (renamed from lib/bencode/__init__.py)0
-rw-r--r--MAT/bencode/bencode.py (renamed from lib/bencode/bencode.py)0
-rw-r--r--MAT/exiftool.py (renamed from lib/exiftool.py)0
-rw-r--r--MAT/hachoir_editor/__init__.py (renamed from lib/hachoir_editor/__init__.py)0
-rw-r--r--MAT/hachoir_editor/field.py (renamed from lib/hachoir_editor/field.py)0
-rw-r--r--MAT/hachoir_editor/fieldset.py (renamed from lib/hachoir_editor/fieldset.py)0
-rw-r--r--MAT/hachoir_editor/typed_field.py (renamed from lib/hachoir_editor/typed_field.py)0
-rw-r--r--MAT/images.py (renamed from lib/images.py)0
-rw-r--r--MAT/mat.py (renamed from lib/mat.py)2
-rw-r--r--MAT/misc.py (renamed from lib/misc.py)0
-rw-r--r--MAT/office.py (renamed from lib/office.py)0
-rw-r--r--MAT/parser.py (renamed from lib/parser.py)0
-rw-r--r--MAT/strippers.py (renamed from lib/strippers.py)0
-rw-r--r--MAT/tarfile/__init__.py (renamed from lib/tarfile/__init__.py)0
-rw-r--r--MAT/tarfile/tarfile.py (renamed from lib/tarfile/tarfile.py)0
-rw-r--r--RELEASE2
-rwxr-xr-xmat4
-rwxr-xr-xmat-gui4
-rw-r--r--mat.14
-rwxr-xr-xsetup.py4
-rw-r--r--test/clitest.py2
-rw-r--r--test/libtest.py2
27 files changed, 15 insertions, 13 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index 3b7ac13..89b344d 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,4 +1,4 @@
1include README FORMATS LICENSE mat-cli mat-gui 1include README FORMATS LICENSE mat mat-gui
2recursive-include mat *.py 2recursive-include MAT *.py
3recursive-include test *.py clean.* dirty.* 3recursive-include test *.py clean.* dirty.*
4recursive-include po * 4recursive-include po *
diff --git a/lib/FORMATS b/MAT/FORMATS
index c497524..c497524 100644
--- a/lib/FORMATS
+++ b/MAT/FORMATS
diff --git a/lib/__init__.py b/MAT/__init__.py
index 8b13789..8b13789 100644
--- a/lib/__init__.py
+++ b/MAT/__init__.py
diff --git a/lib/archive.py b/MAT/archive.py
index a749b29..a749b29 100644
--- a/lib/archive.py
+++ b/MAT/archive.py
diff --git a/lib/audio.py b/MAT/audio.py
index ed849ee..ed849ee 100644
--- a/lib/audio.py
+++ b/MAT/audio.py
diff --git a/lib/bencode/__init__.py b/MAT/bencode/__init__.py
index 8b13789..8b13789 100644
--- a/lib/bencode/__init__.py
+++ b/MAT/bencode/__init__.py
diff --git a/lib/bencode/bencode.py b/MAT/bencode/bencode.py
index 739ffe5..739ffe5 100644
--- a/lib/bencode/bencode.py
+++ b/MAT/bencode/bencode.py
diff --git a/lib/exiftool.py b/MAT/exiftool.py
index 758a094..758a094 100644
--- a/lib/exiftool.py
+++ b/MAT/exiftool.py
diff --git a/lib/hachoir_editor/__init__.py b/MAT/hachoir_editor/__init__.py
index 1835676..1835676 100644
--- a/lib/hachoir_editor/__init__.py
+++ b/MAT/hachoir_editor/__init__.py
diff --git a/lib/hachoir_editor/field.py b/MAT/hachoir_editor/field.py
index 6b1efe3..6b1efe3 100644
--- a/lib/hachoir_editor/field.py
+++ b/MAT/hachoir_editor/field.py
diff --git a/lib/hachoir_editor/fieldset.py b/MAT/hachoir_editor/fieldset.py
index b7c9b07..b7c9b07 100644
--- a/lib/hachoir_editor/fieldset.py
+++ b/MAT/hachoir_editor/fieldset.py
diff --git a/lib/hachoir_editor/typed_field.py b/MAT/hachoir_editor/typed_field.py
index 0f0427b..0f0427b 100644
--- a/lib/hachoir_editor/typed_field.py
+++ b/MAT/hachoir_editor/typed_field.py
diff --git a/lib/images.py b/MAT/images.py
index 236d566..236d566 100644
--- a/lib/images.py
+++ b/MAT/images.py
diff --git a/lib/mat.py b/MAT/mat.py
index 6d9471c..4c12333 100644
--- a/lib/mat.py
+++ b/MAT/mat.py
@@ -41,6 +41,8 @@ def get_sharedir(filename):
41 return os.path.join('/usr/local/share/mat/', filename) 41 return os.path.join('/usr/local/share/mat/', filename)
42 elif os.path.exists(os.path.join('/usr/share/mat/', filename)): 42 elif os.path.exists(os.path.join('/usr/share/mat/', filename)):
43 return os.path.join('/usr/share/mat', filename) 43 return os.path.join('/usr/share/mat', filename)
44 elif os.path.exists(os.path.join('/usr/local/share/pixmaps/', filename)):
45 return os.path.join('/usr/local/share/pixmaps/', filename)
44 46
45 47
46class XMLParser(xml.sax.handler.ContentHandler): 48class XMLParser(xml.sax.handler.ContentHandler):
diff --git a/lib/misc.py b/MAT/misc.py
index d084861..d084861 100644
--- a/lib/misc.py
+++ b/MAT/misc.py
diff --git a/lib/office.py b/MAT/office.py
index d14125b..d14125b 100644
--- a/lib/office.py
+++ b/MAT/office.py
diff --git a/lib/parser.py b/MAT/parser.py
index d2eaf9c..d2eaf9c 100644
--- a/lib/parser.py
+++ b/MAT/parser.py
diff --git a/lib/strippers.py b/MAT/strippers.py
index 61030a7..61030a7 100644
--- a/lib/strippers.py
+++ b/MAT/strippers.py
diff --git a/lib/tarfile/__init__.py b/MAT/tarfile/__init__.py
index 8b13789..8b13789 100644
--- a/lib/tarfile/__init__.py
+++ b/MAT/tarfile/__init__.py
diff --git a/lib/tarfile/tarfile.py b/MAT/tarfile/tarfile.py
index 6978eb1..6978eb1 100644
--- a/lib/tarfile/tarfile.py
+++ b/MAT/tarfile/tarfile.py
diff --git a/RELEASE b/RELEASE
index fa68acc..05cd5af 100644
--- a/RELEASE
+++ b/RELEASE
@@ -6,7 +6,7 @@ update changelog:
6 git log -> CHANGELOG 6 git log -> CHANGELOG
7 7
8update version number: 8update version number:
9 lib/mat.py -> __version__ = $VERSION 9 mat/mat.py -> __version__ = $VERSION
10 10
11commit release changes 11commit release changes
12 git commit CHANGELOG lib/mat.py 12 git commit CHANGELOG lib/mat.py
diff --git a/mat b/mat
index 93792e3..632da4f 100755
--- a/mat
+++ b/mat
@@ -10,8 +10,8 @@ import os
10 10
11import hachoir_core 11import hachoir_core
12 12
13from lib import mat 13from MAT import mat
14from lib import strippers 14from MAT import strippers
15 15
16 16
17def parse(): 17def parse():
diff --git a/mat-gui b/mat-gui
index 7c43957..cba5c94 100755
--- a/mat-gui
+++ b/mat-gui
@@ -17,8 +17,8 @@ import mimetypes
17import xml.sax 17import xml.sax
18import urllib2 18import urllib2
19 19
20from lib import mat 20from MAT import mat
21from lib import strippers 21from MAT import strippers
22 22
23 23
24logging.basicConfig(level=mat.LOGGING_LEVEL) 24logging.basicConfig(level=mat.LOGGING_LEVEL)
diff --git a/mat.1 b/mat.1
index 3e266f9..d1577dc 100644
--- a/mat.1
+++ b/mat.1
@@ -64,11 +64,11 @@ If you want absolute privacy, use plain-text.
64 64
65 65
66.SH AUTHOR 66.SH AUTHOR
67Julien (\fBjvoisin\fR) Voisin <pouicpouicpouic@gmail.com>, during the GSoC 2011 67Julien (\fBjvoisin\fR) Voisin <julien.voisin@dustri.org>, during the GSoC 2011
68 68
69 69
70.SH BUGS 70.SH BUGS
71MAT does not handle watermaking/tattoo for now. 71MAT does not handle watermaking/tattoos for now.
72 72
73 73
74.SH "SEE ALSO" 74.SH "SEE ALSO"
diff --git a/setup.py b/setup.py
index 4e0f2a3..1793059 100755
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ import os
5from distutils.core import setup 5from distutils.core import setup
6from DistUtilsExtra.command import * 6from DistUtilsExtra.command import *
7 7
8from lib import mat 8from MAT import mat
9 9
10#Remove MANIFEST file, since distutils 10#Remove MANIFEST file, since distutils
11#doesn't properly update it when 11#doesn't properly update it when
@@ -23,7 +23,7 @@ setup(
23 platforms = 'linux', 23 platforms = 'linux',
24 license = 'GPLv2', 24 license = 'GPLv2',
25 url = 'https://mat.boum.org', 25 url = 'https://mat.boum.org',
26 packages = ['lib', 'lib.hachoir_editor', 'lib.bencode', 'lib.tarfile'], 26 packages = ['MAT', 'MAT.hachoir_editor', 'MAT.bencode', 'MAT.tarfile'],
27 scripts = ['mat', 'mat-gui'], 27 scripts = ['mat', 'mat-gui'],
28 data_files = [ 28 data_files = [
29 ( 'share/applications', ['mat.desktop'] ), 29 ( 'share/applications', ['mat.desktop'] ),
diff --git a/test/clitest.py b/test/clitest.py
index 8fc4072..a818b5d 100644
--- a/test/clitest.py
+++ b/test/clitest.py
@@ -10,7 +10,7 @@ import subprocess
10import sys 10import sys
11 11
12sys.path.append('..') 12sys.path.append('..')
13from lib import mat 13from MAT import mat
14import test 14import test
15 15
16 16
diff --git a/test/libtest.py b/test/libtest.py
index c44387d..9a833f1 100644
--- a/test/libtest.py
+++ b/test/libtest.py
@@ -9,7 +9,7 @@ import unittest
9import test 9import test
10import sys 10import sys
11sys.path.append('..') 11sys.path.append('..')
12from lib import mat 12from MAT import mat
13 13
14 14
15class TestRemovelib(test.MATTest): 15class TestRemovelib(test.MATTest):