]> git.phdru.name Git - mimedecode.git/commitdiff
Allow installation without m_lib
authorOleg Broytman <phd@phdru.name>
Wed, 18 Dec 2013 05:39:02 +0000 (09:39 +0400)
committerOleg Broytman <phd@phdru.name>
Wed, 18 Dec 2013 05:39:02 +0000 (09:39 +0400)
Move __version__ out of mimedecode.py to __version__.py.

TODO
__version__.py [new file with mode: 0644]
mimedecode.py
setup.py

diff --git a/TODO b/TODO
index 3c2ca65d857276d9b1ccedf9a85686dad8a9e804..4c62d20605d057c1fb758ad5b11b59be8b94e19e 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,4 +1 @@
-Move __version__ out of mimedecode.py to allow installation without m_lib.
-
-
 setuptools/easy_install; pip.
diff --git a/__version__.py b/__version__.py
new file mode 100644 (file)
index 0000000..0677d7e
--- /dev/null
@@ -0,0 +1,4 @@
+__version__ = "2.1.4"
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2001-2013 PhiloSoft Design"
+__license__ = "GNU GPL"
index 8fa69212b82ec644246ad837112d0352e1a252ee..6c3ff717a64d063ddad362a29c055edabc975373 100755 (executable)
@@ -2,10 +2,7 @@
 """Decode MIME message"""
 
 
-__version__ = "2.1.4"
-__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2001-2013 PhiloSoft Design"
-__license__ = "GNU GPL"
+from __version__ import __version__, __author__, __copyright__, __license__
 
 
 import sys, os
index 32b1a1eeb77813acc1b33a4d499769e1e8f4235f..c7352fda11f74ab2480f9dfb0347f0533ec19700 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 
 from distutils.core import setup
-from mimedecode import __version__, __copyright__
+from __version__ import __version__, __copyright__, __license__
 
 setup(name = "mimedecode",
    version = __version__,
@@ -10,7 +10,7 @@ setup(name = "mimedecode",
    author = "Oleg Broytman",
    author_email = "phd@phdru.name",
    url = "http://phdru.name/Software/Python/#mimedecode",
-   license = "GPL",
+   license = __license__,
    platforms = "All",
    scripts = ['mimedecode.py']
 )