blob: 4f44c68b20176654ec901db0222b09ffde088fb4 [file] [log] [blame]
Tomi Pieviläinen40996e02012-03-03 11:43:08 +02001#!/usr/bin/python
Yaron de Leeuw3c316b52014-12-01 22:01:11 +02002from os.path import isfile
Mike Gilbertbc461d82012-04-03 23:13:16 -04003import codecs
niemeyerdebf3cd2005-02-23 18:33:30 +00004import os
niemeyer313ef142007-11-12 14:06:05 +00005import re
6
niemeyer55254c52008-08-07 02:46:52 +00007from setuptools import setup
8
niemeyerdebf3cd2005-02-23 18:33:30 +00009
niemeyerdb8b18d2005-12-22 15:02:22 +000010if isfile("MANIFEST"):
niemeyerdebf3cd2005-02-23 18:33:30 +000011 os.unlink("MANIFEST")
12
niemeyer313ef142007-11-12 14:06:05 +000013
niemeyer49178742010-01-11 11:42:08 +000014TOPDIR = os.path.dirname(__file__) or "."
niemeyer313ef142007-11-12 14:06:05 +000015VERSION = re.search('__version__ = "([^"]+)"',
Yaron de Leeuw3c316b52014-12-01 22:01:11 +020016 codecs.open(TOPDIR + "/dateutil/__init__.py",
17 encoding='utf-8').read()).group(1)
niemeyer313ef142007-11-12 14:06:05 +000018
19
niemeyercc77d432003-10-09 02:57:39 +000020setup(name="python-dateutil",
Yaron de Leeuw3c316b52014-12-01 22:01:11 +020021 version=VERSION,
22 description="Extensions to the standard Python datetime module",
Paul Ganssleb1ee4302016-02-28 16:01:56 -050023 author="Paul Ganssle, Yaron de Leeuw",
24 author_email="dateutil@python.org",
Yaron de Leeuw3c316b52014-12-01 22:01:11 +020025 url="https://dateutil.readthedocs.org",
26 license="Simplified BSD",
27 long_description="""
28The dateutil module provides powerful extensions to the
Gustavo Niemeyerac37a802011-03-24 14:16:39 -030029datetime module available in the Python standard library.
niemeyer68ae2752003-09-28 01:20:02 +000030""",
bjva2f72d62015-12-24 10:36:20 -080031 packages=["dateutil", "dateutil.zoneinfo", "dateutil.tz"],
Yaron de Leeuw3c316b52014-12-01 22:01:11 +020032 package_data={"dateutil.zoneinfo": ["dateutil-zoneinfo.tar.gz"]},
33 zip_safe=True,
34 requires=["six"],
Yaron de Leeuw1119ee72014-12-14 21:42:37 +020035 install_requires=["six >=1.5"], # XXX fix when packaging is sane again
Yaron de Leeuw3c316b52014-12-01 22:01:11 +020036 classifiers=[
Tomi Pieviläinenaefdb2b2012-04-29 16:32:22 +030037 'Development Status :: 5 - Production/Stable',
38 'Intended Audience :: Developers',
39 'License :: OSI Approved :: BSD License',
40 'Programming Language :: Python',
41 'Programming Language :: Python :: 2',
42 'Programming Language :: Python :: 2.6',
43 'Programming Language :: Python :: 2.7',
44 'Programming Language :: Python :: 3',
45 'Programming Language :: Python :: 3.2',
Tomi Pieviläinen8c6026b2013-11-01 10:37:15 +020046 'Programming Language :: Python :: 3.3',
Yaron de Leeuwb759afd2014-11-27 22:13:34 +020047 'Programming Language :: Python :: 3.4',
Thomas A Caswell68275162015-12-07 21:38:53 -050048 'Programming Language :: Python :: 3.5',
Tomi Pieviläinenaefdb2b2012-04-29 16:32:22 +030049 'Topic :: Software Development :: Libraries',
Yaron de Leeuw7d13f302014-11-24 17:46:03 +020050 ],
Paul Ganssleaac0a112015-11-01 13:39:14 -050051 test_suite="dateutil.test"
niemeyer68ae2752003-09-28 01:20:02 +000052 )