Tomi Pieviläinen | 40996e0 | 2012-03-03 11:43:08 +0200 | [diff] [blame] | 1 | #!/usr/bin/python |
Yaron de Leeuw | 3c316b5 | 2014-12-01 22:01:11 +0200 | [diff] [blame] | 2 | from os.path import isfile |
Mike Gilbert | bc461d8 | 2012-04-03 23:13:16 -0400 | [diff] [blame] | 3 | import codecs |
niemeyer | debf3cd | 2005-02-23 18:33:30 +0000 | [diff] [blame] | 4 | import os |
niemeyer | 313ef14 | 2007-11-12 14:06:05 +0000 | [diff] [blame] | 5 | import re |
| 6 | |
niemeyer | 55254c5 | 2008-08-07 02:46:52 +0000 | [diff] [blame] | 7 | from setuptools import setup |
| 8 | |
niemeyer | debf3cd | 2005-02-23 18:33:30 +0000 | [diff] [blame] | 9 | |
niemeyer | db8b18d | 2005-12-22 15:02:22 +0000 | [diff] [blame] | 10 | if isfile("MANIFEST"): |
niemeyer | debf3cd | 2005-02-23 18:33:30 +0000 | [diff] [blame] | 11 | os.unlink("MANIFEST") |
| 12 | |
niemeyer | 313ef14 | 2007-11-12 14:06:05 +0000 | [diff] [blame] | 13 | |
niemeyer | 4917874 | 2010-01-11 11:42:08 +0000 | [diff] [blame] | 14 | TOPDIR = os.path.dirname(__file__) or "." |
niemeyer | 313ef14 | 2007-11-12 14:06:05 +0000 | [diff] [blame] | 15 | VERSION = re.search('__version__ = "([^"]+)"', |
Yaron de Leeuw | 3c316b5 | 2014-12-01 22:01:11 +0200 | [diff] [blame] | 16 | codecs.open(TOPDIR + "/dateutil/__init__.py", |
| 17 | encoding='utf-8').read()).group(1) |
niemeyer | 313ef14 | 2007-11-12 14:06:05 +0000 | [diff] [blame] | 18 | |
| 19 | |
niemeyer | cc77d43 | 2003-10-09 02:57:39 +0000 | [diff] [blame] | 20 | setup(name="python-dateutil", |
Yaron de Leeuw | 3c316b5 | 2014-12-01 22:01:11 +0200 | [diff] [blame] | 21 | version=VERSION, |
| 22 | description="Extensions to the standard Python datetime module", |
Paul Ganssle | b1ee430 | 2016-02-28 16:01:56 -0500 | [diff] [blame] | 23 | author="Paul Ganssle, Yaron de Leeuw", |
| 24 | author_email="dateutil@python.org", |
Yaron de Leeuw | 3c316b5 | 2014-12-01 22:01:11 +0200 | [diff] [blame] | 25 | url="https://dateutil.readthedocs.org", |
| 26 | license="Simplified BSD", |
| 27 | long_description=""" |
| 28 | The dateutil module provides powerful extensions to the |
Gustavo Niemeyer | ac37a80 | 2011-03-24 14:16:39 -0300 | [diff] [blame] | 29 | datetime module available in the Python standard library. |
niemeyer | 68ae275 | 2003-09-28 01:20:02 +0000 | [diff] [blame] | 30 | """, |
bjv | a2f72d6 | 2015-12-24 10:36:20 -0800 | [diff] [blame] | 31 | packages=["dateutil", "dateutil.zoneinfo", "dateutil.tz"], |
Yaron de Leeuw | 3c316b5 | 2014-12-01 22:01:11 +0200 | [diff] [blame] | 32 | package_data={"dateutil.zoneinfo": ["dateutil-zoneinfo.tar.gz"]}, |
| 33 | zip_safe=True, |
| 34 | requires=["six"], |
Yaron de Leeuw | 1119ee7 | 2014-12-14 21:42:37 +0200 | [diff] [blame] | 35 | install_requires=["six >=1.5"], # XXX fix when packaging is sane again |
Yaron de Leeuw | 3c316b5 | 2014-12-01 22:01:11 +0200 | [diff] [blame] | 36 | classifiers=[ |
Tomi Pieviläinen | aefdb2b | 2012-04-29 16:32:22 +0300 | [diff] [blame] | 37 | '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äinen | 8c6026b | 2013-11-01 10:37:15 +0200 | [diff] [blame] | 46 | 'Programming Language :: Python :: 3.3', |
Yaron de Leeuw | b759afd | 2014-11-27 22:13:34 +0200 | [diff] [blame] | 47 | 'Programming Language :: Python :: 3.4', |
Thomas A Caswell | 6827516 | 2015-12-07 21:38:53 -0500 | [diff] [blame] | 48 | 'Programming Language :: Python :: 3.5', |
Tomi Pieviläinen | aefdb2b | 2012-04-29 16:32:22 +0300 | [diff] [blame] | 49 | 'Topic :: Software Development :: Libraries', |
Yaron de Leeuw | 7d13f30 | 2014-11-24 17:46:03 +0200 | [diff] [blame] | 50 | ], |
Paul Ganssle | aac0a11 | 2015-11-01 13:39:14 -0500 | [diff] [blame] | 51 | test_suite="dateutil.test" |
niemeyer | 68ae275 | 2003-09-28 01:20:02 +0000 | [diff] [blame] | 52 | ) |