X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=e10082566e703ec9fc182c3f7fd1c237ee5f1985;hb=141754c6212c218c538dcadd2d79da4b5bb0fc5e;hp=f5c7e42745848d833ceebbb5dae6abe6c167443c;hpb=27550cf12d5e7e50f882e53e5e5a632e3758c667;p=mimedecode.git diff --git a/setup.py b/setup.py index f5c7e42..e100825 100755 --- a/setup.py +++ b/setup.py @@ -1,18 +1,40 @@ #! /usr/bin/env python +try: + from setuptools import setup + is_setuptools = True +except ImportError: + from distutils.core import setup + is_setuptools = False -from distutils.core import setup -from mimedecode import __version__ as version +kw = {} +if is_setuptools: + kw['install_requires'] = ['m_lib.defenc>=1.0'] + kw['tests_require'] = ['m_lib>=3.1'] +from mimedecode_version import __version__, __copyright__, __license__ setup(name = "mimedecode", - version = version + 'd', - description = "BroytMann mimedecode.py", - long_description = "BroytMann mimedecode.py, Copyright (C) 2001-2004 PhiloSoft Design", - author = "Oleg Broytmann", - author_email = "phd@phd.pp.ru", - url = "http://phd.pp.ru/Software/Python/#mimedecode", - license = "GPL", - platforms = "All", - scripts = ['mimedecode.py'] + version = __version__, + description = "A program to decode MIME messages", + long_description = "A program to decode MIME messages. " + __copyright__, + author = "Oleg Broytman", + author_email = "phd@phdru.name", + url = "http://phdru.name/Software/Python/#mimedecode", + license = __license__, + platforms = "All", + keywords=['email', 'MIME'], + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Environment :: Console', + 'Intended Audience :: End Users/Desktop', + 'License :: OSI Approved :: GNU General Public License (GPL)', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 2 :: Only', + ], + py_modules = ['formatparam_27', 'mimedecode_version'], + scripts = ['mimedecode.py'], + **kw )