From 65fa17744c1d2b727283b53316d45f9b4534bdd8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 21 Dec 2013 01:41:26 +0400 Subject: [PATCH] Rename __version__.py -> mimedecode_version.py and install it as a module. --- mimedecode.py | 2 +- __version__.py => mimedecode_version.py | 0 setup.py | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) rename __version__.py => mimedecode_version.py (100%) diff --git a/mimedecode.py b/mimedecode.py index 6c3ff71..179f82d 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -2,7 +2,7 @@ """Decode MIME message""" -from __version__ import __version__, __author__, __copyright__, __license__ +from mimedecode_version import __version__, __author__, __copyright__, __license__ import sys, os diff --git a/__version__.py b/mimedecode_version.py similarity index 100% rename from __version__.py rename to mimedecode_version.py diff --git a/setup.py b/setup.py index c7352fd..17f4536 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #! /usr/bin/env python from distutils.core import setup -from __version__ import __version__, __copyright__, __license__ +from mimedecode_version import __version__, __copyright__, __license__ setup(name = "mimedecode", version = __version__, @@ -12,5 +12,6 @@ setup(name = "mimedecode", url = "http://phdru.name/Software/Python/#mimedecode", license = __license__, platforms = "All", + py_modules = ['mimedecode_version'], scripts = ['mimedecode.py'] ) -- 2.39.5