X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=ee61da6b7690ee3c8c42dd78a3d7e5c711ee6479;hb=3d2d8c518a3d261c4ba40c197ff69b717a50ffec;hp=09bae63d31b2d8844c97d45fc0d8e10f2b17108b;hpb=4d7298ed0b50b3e28b8b8ab841ae0173ad2fb3f2;p=mimedecode.git diff --git a/setup.py b/setup.py index 09bae63..ee61da6 100755 --- a/setup.py +++ b/setup.py @@ -2,24 +2,11 @@ from imp import load_source from os.path import abspath, dirname, join - -try: - from setuptools import setup - is_setuptools = True -except ImportError: - from distutils.core import setup - is_setuptools = False +from setuptools import setup versionpath = join(abspath(dirname(__file__)), "mimedecode", "__version__.py") mimedecode_version = load_source("mimedecode_version", versionpath) -kw = {} -if is_setuptools: - kw['install_requires'] = ['m_lib.defenc>=1.0'] - kw['tests_require'] = ['m_lib>=3.1'] - kw['python_requires'] = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*' - - setup( name="mimedecode", version=mimedecode_version.__version__, @@ -29,6 +16,16 @@ setup( author="Oleg Broytman", author_email="phd@phdru.name", url="http://phdru.name/Software/Python/#mimedecode", + project_urls={ + 'Homepage': 'http://phdru.name/Software/Python/#mimedecode', + 'Documentation': 'http://phdru.name/Software/Python/mimedecode.html', + 'Download': + 'http://phdru.name/Software/Python/' + 'mimedecode-%s.tar.bz2' % mimedecode_version.__version__, + 'Git repo': 'http://git.phdru.name/mimedecode.git', + 'Github repo': 'https://github.com/phdru/mimedecode', + 'Issue tracker': 'https://github.com/phdru/mimedecode/issues', + }, license=mimedecode_version.__license__, keywords=['email', 'MIME'], platforms="Any", @@ -54,5 +51,7 @@ setup( 'mimedecode = mimedecode.__main__:main' ] }, - **kw + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*', + install_requires=['m_lib.defenc>=1.0'], + tests_require=['m_lib>=3.1'], )