1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
#!/usr/bin/python
from os.path import isfile
import os
import setuptools
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from dateutil._version import VERSION
from distutils.version import LooseVersion
import warnings
if isfile("MANIFEST"):
os.unlink("MANIFEST")
PACKAGES = find_packages(where='.', exclude=['dateutil.test'])
if LooseVersion(setuptools.__version__) <= LooseVersion("24.3"):
warnings.warn("python_requires requires setuptools version > 24.3",
UserWarning)
class Unsupported(TestCommand):
def run(self):
print("Running 'test' with setup.py is not supported. "
"Use 'pytest' or 'tox' to run the tests.")
setup(name="python-dateutil",
version=VERSION,
description="Extensions to the standard Python datetime module",
author="Gustavo Niemeyer",
author_email="gustavo@niemeyer.net",
maintainer="Paul Ganssle",
maintainer_email="dateutil@python.org",
url="https://dateutil.readthedocs.io",
license="BSD 3-Clause",
long_description="""
The dateutil module provides powerful extensions to the
datetime module available in the Python standard library.
""",
packages=PACKAGES,
python_requires=">=2.7, !=3.0.*, !=3.1.*",
package_data={"dateutil.zoneinfo": ["dateutil-zoneinfo.tar.gz"]},
zip_safe=True,
requires=["six"],
install_requires=["six >=1.5"], # XXX fix when packaging is sane again
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries',
],
test_suite="dateutil.test",
cmdclass={
"test": Unsupported
}
)
|