X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=698ded15c9629fd7f2549df7d4f4d64de9a0e8a2;hb=0bdcd5cb9f93ceab0ab007f589899b36f4a93a80;hp=4615b53861653ac86b736974d2c60b35fe633359;hpb=0014644cdbb0c11600ca53b31e141f9118689a79;p=m_lib.git diff --git a/setup.py b/setup.py index 4615b53..698ded1 100755 --- a/setup.py +++ b/setup.py @@ -1,24 +1,50 @@ #! /usr/bin/env python -from distutils.core import setup +try: + from setuptools import setup + is_setuptools = True +except ImportError: + from distutils.core import setup + is_setuptools = False + +kw = {} +if is_setuptools: + kw['extras_require'] = { + 'Metakit': ['Mk4py'], + 'ZODB': ['ZODB'], + 'mx': ['mx.DateTime', 'mx.Misc'], + } setup(name = "m_lib", - version = "2.0", + version = "3.1.0", description = "Broytman Library for Python", - long_description = "Broytman Library for Python, Copyright (C) 1996-2013 PhiloSoft Design", + long_description = "Broytman Library for Python, Copyright (C) 1996-2017 PhiloSoft Design", author = "Oleg Broytman", author_email = "phd@phdru.name", url = "http://phdru.name/Software/Python/#m_lib", license = "GPL", + keywords=[''], + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: GNU General Public License (GPL)', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Topic :: Software Development :: Libraries', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], platforms = "All", - packages = ["m_lib", "m_lib.clock", "m_lib.flad", "m_lib.flad.test", - "m_lib.hash", "m_lib.hash.test", "m_lib.lazy", + packages = ["m_lib", "m_lib.clock", "m_lib.flad", + "m_lib.hash", "m_lib.lazy", "m_lib.net", "m_lib.net.ftp", "m_lib.net.www", - "m_lib.pbar", "m_lib.pbar.test", "m_lib.rus", + "m_lib.pbar", "m_lib.rus", ], - data_files = [("m_lib/flad/test", [ - "m_lib/flad/test/test.cfg", - "m_lib/flad/test/test.txt", - "m_lib/flad/test/comment.txt", - ])] + namespace_packages = ["m_lib"], + **kw )