]> git.phdru.name Git - m_lib.git/blob - setup.py
Build(setup.py): Use python_requires keyword
[m_lib.git] / setup.py
1 #! /usr/bin/env python
2
3 try:
4     from setuptools import setup
5     is_setuptools = True
6 except ImportError:
7     from distutils.core import setup
8     is_setuptools = False
9
10 kw = {}
11 if is_setuptools:
12     kw['extras_require'] = {
13         'Metakit': ['Mk4py'],
14         'ZODB': ['ZODB'],
15         'mx': ['mx.DateTime', 'mx.Misc'],
16         }
17
18     kw['python_requires'] = '>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
19
20 setup(name = "m_lib",
21     version = "3.1.0",
22     description = "Broytman Library for Python",
23     long_description = "Broytman Library for Python, Copyright (C) 1996-2017 PhiloSoft Design",
24     author = "Oleg Broytman",
25     author_email = "phd@phdru.name",
26     url = "http://phdru.name/Software/Python/#m_lib",
27     license = "GPL",
28     classifiers=[
29         'Development Status :: 5 - Production/Stable',
30         'Intended Audience :: Developers',
31         'License :: OSI Approved :: GNU General Public License (GPL)',
32         'Operating System :: OS Independent',
33         'Programming Language :: Python :: 2',
34         'Programming Language :: Python :: 2.6',
35         'Programming Language :: Python :: 2.7',
36         'Programming Language :: Python :: 3',
37         'Programming Language :: Python :: 3.4',
38         'Programming Language :: Python :: 3.5',
39         'Programming Language :: Python :: 3.6',
40         'Topic :: Software Development :: Libraries',
41         'Topic :: Software Development :: Libraries :: Python Modules',
42     ],
43     platforms = "Any",
44     packages = ["m_lib", "m_lib.clock", "m_lib.flad",
45         "m_lib.hash", "m_lib.lazy",
46         "m_lib.net", "m_lib.net.ftp", "m_lib.net.www",
47         "m_lib.pbar", "m_lib.rus",
48     ],
49     namespace_packages = ["m_lib"],
50     **kw
51 )