diff options
| author | jvoisin | 2012-12-08 02:02:25 +0100 |
|---|---|---|
| committer | jvoisin | 2012-12-13 14:24:01 +0100 |
| commit | cbf8a2a65928694202e19b6bcf56ec84bcbf613c (patch) | |
| tree | e106475b0d5c003505336b5ae6416e4508bb768b | |
| parent | 67d5c1fa6b9ab6e1e7328ee57b15d8e46526d72a (diff) | |
Reorganize source tree and files installation location, cleanup setup.py (Closes: #689409)
Diffstat (limited to '')
| -rw-r--r-- | MANIFEST.in | 4 | ||||
| -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-- | RELEASE | 2 | ||||
| -rwxr-xr-x | mat | 4 | ||||
| -rwxr-xr-x | mat-gui | 4 | ||||
| -rw-r--r-- | mat.1 | 4 | ||||
| -rwxr-xr-x | setup.py | 4 | ||||
| -rw-r--r-- | test/clitest.py | 2 | ||||
| -rw-r--r-- | test/libtest.py | 2 |
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 @@ | |||
| 1 | include README FORMATS LICENSE mat-cli mat-gui | 1 | include README FORMATS LICENSE mat mat-gui |
| 2 | recursive-include mat *.py | 2 | recursive-include MAT *.py |
| 3 | recursive-include test *.py clean.* dirty.* | 3 | recursive-include test *.py clean.* dirty.* |
| 4 | recursive-include po * | 4 | recursive-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 | |||
| @@ -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 | ||
| 46 | class XMLParser(xml.sax.handler.ContentHandler): | 48 | class 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 | |||
| @@ -6,7 +6,7 @@ update changelog: | |||
| 6 | git log -> CHANGELOG | 6 | git log -> CHANGELOG |
| 7 | 7 | ||
| 8 | update version number: | 8 | update version number: |
| 9 | lib/mat.py -> __version__ = $VERSION | 9 | mat/mat.py -> __version__ = $VERSION |
| 10 | 10 | ||
| 11 | commit release changes | 11 | commit release changes |
| 12 | git commit CHANGELOG lib/mat.py | 12 | git commit CHANGELOG lib/mat.py |
| @@ -10,8 +10,8 @@ import os | |||
| 10 | 10 | ||
| 11 | import hachoir_core | 11 | import hachoir_core |
| 12 | 12 | ||
| 13 | from lib import mat | 13 | from MAT import mat |
| 14 | from lib import strippers | 14 | from MAT import strippers |
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | def parse(): | 17 | def parse(): |
| @@ -17,8 +17,8 @@ import mimetypes | |||
| 17 | import xml.sax | 17 | import xml.sax |
| 18 | import urllib2 | 18 | import urllib2 |
| 19 | 19 | ||
| 20 | from lib import mat | 20 | from MAT import mat |
| 21 | from lib import strippers | 21 | from MAT import strippers |
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | logging.basicConfig(level=mat.LOGGING_LEVEL) | 24 | logging.basicConfig(level=mat.LOGGING_LEVEL) |
| @@ -64,11 +64,11 @@ If you want absolute privacy, use plain-text. | |||
| 64 | 64 | ||
| 65 | 65 | ||
| 66 | .SH AUTHOR | 66 | .SH AUTHOR |
| 67 | Julien (\fBjvoisin\fR) Voisin <pouicpouicpouic@gmail.com>, during the GSoC 2011 | 67 | Julien (\fBjvoisin\fR) Voisin <julien.voisin@dustri.org>, during the GSoC 2011 |
| 68 | 68 | ||
| 69 | 69 | ||
| 70 | .SH BUGS | 70 | .SH BUGS |
| 71 | MAT does not handle watermaking/tattoo for now. | 71 | MAT does not handle watermaking/tattoos for now. |
| 72 | 72 | ||
| 73 | 73 | ||
| 74 | .SH "SEE ALSO" | 74 | .SH "SEE ALSO" |
| @@ -5,7 +5,7 @@ import os | |||
| 5 | from distutils.core import setup | 5 | from distutils.core import setup |
| 6 | from DistUtilsExtra.command import * | 6 | from DistUtilsExtra.command import * |
| 7 | 7 | ||
| 8 | from lib import mat | 8 | from 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 | |||
| 10 | import sys | 10 | import sys |
| 11 | 11 | ||
| 12 | sys.path.append('..') | 12 | sys.path.append('..') |
| 13 | from lib import mat | 13 | from MAT import mat |
| 14 | import test | 14 | import 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 | |||
| 9 | import test | 9 | import test |
| 10 | import sys | 10 | import sys |
| 11 | sys.path.append('..') | 11 | sys.path.append('..') |
| 12 | from lib import mat | 12 | from MAT import mat |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | class TestRemovelib(test.MATTest): | 15 | class TestRemovelib(test.MATTest): |
