X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=3175719aac24c94672f8dfa48618a3482a60dc08;hb=c77352435d62e39b2504bbc76b17ad719d036ae3;hp=710e5e38d4e3ef93fbff845d5c2575bc73fdc624;hpb=3996fdc3ada993088889dc32a5a57c0c7023eea9;p=m_lib.git diff --git a/setup.py b/setup.py index 710e5e3..3175719 100755 --- a/setup.py +++ b/setup.py @@ -1,29 +1,21 @@ #! /usr/bin/env python -try: - from setuptools import setup - is_setuptools = True -except ImportError: - from distutils.core import setup - is_setuptools = False +from setuptools import setup -kw = {} -if is_setuptools: - kw['extras_require'] = { - 'Metakit': ['Mk4py'], - 'ZODB': ['ZODB'], - 'mx': ['mx.DateTime', 'mx.Misc'], - } - - kw['python_requires'] = '>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*' - -setup(name = "m_lib", +setup( + name = "m_lib", version = "3.1.0", description = "Broytman Library for Python", long_description = "Broytman Library for Python, Copyright (C) 1996-2018 PhiloSoft Design", + long_description_content_type="text/plain", author = "Oleg Broytman", author_email = "phd@phdru.name", - url = "http://phdru.name/Software/Python/#m_lib", + url = "https://phdru.name/Software/Python/#m_lib", + project_urls={ + 'Homepage': 'https://phdru.name/Software/Python/#m_lib', + 'Download': 'https://pypi.org/project/m_lib/', + 'Git repo': 'https://git.phdru.name/m_lib.git/', + }, license = "GPL", classifiers=[ 'Development Status :: 5 - Production/Stable', @@ -37,6 +29,7 @@ setup(name = "m_lib", 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Libraries :: Python Modules', ], @@ -47,5 +40,10 @@ setup(name = "m_lib", "m_lib.pbar", "m_lib.rus", ], namespace_packages = ["m_lib"], - **kw + python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + extras_require={ + 'Metakit': ['Mk4py'], + 'ZODB': ['ZODB'], + 'mx': ['mx.DateTime', 'mx.Misc'], + }, )