blob: 10204be614b246787e7d2d14bc20f67da6d22d30 [file] [log] [blame]
Tomi Pieviläinen40996e02012-03-03 11:43:08 +02001#!/usr/bin/python
niemeyer39f25fe2005-12-22 19:57:00 +00002from os.path import isfile, join
Mike Gilbertbc461d82012-04-03 23:13:16 -04003import codecs
niemeyerdebf3cd2005-02-23 18:33:30 +00004import glob
5import os
niemeyer313ef142007-11-12 14:06:05 +00006import re
7
niemeyer55254c52008-08-07 02:46:52 +00008from setuptools import setup
9
niemeyerdebf3cd2005-02-23 18:33:30 +000010
niemeyerdb8b18d2005-12-22 15:02:22 +000011if isfile("MANIFEST"):
niemeyerdebf3cd2005-02-23 18:33:30 +000012 os.unlink("MANIFEST")
13
niemeyer313ef142007-11-12 14:06:05 +000014
niemeyer49178742010-01-11 11:42:08 +000015TOPDIR = os.path.dirname(__file__) or "."
niemeyer313ef142007-11-12 14:06:05 +000016VERSION = re.search('__version__ = "([^"]+)"',
Mike Gilbertbc461d82012-04-03 23:13:16 -040017 codecs.open(TOPDIR + "/dateutil/__init__.py", encoding='utf-8').read()).group(1)
niemeyer313ef142007-11-12 14:06:05 +000018
19
niemeyercc77d432003-10-09 02:57:39 +000020setup(name="python-dateutil",
niemeyer313ef142007-11-12 14:06:05 +000021 version = VERSION,
Tomi Pieviläinen40996e02012-03-03 11:43:08 +020022 description = "Extensions to the standard Python datetime module",
23 author = "Tomi Pievilaeinen",
24 author_email = "tomi.pievilainen@iki.fi",
niemeyerdb8b18d2005-12-22 15:02:22 +000025 url = "http://labix.org/python-dateutil",
Tomi Pieviläinen40996e02012-03-03 11:43:08 +020026 license = "Simplified BSD",
niemeyer68ae2752003-09-28 01:20:02 +000027 long_description =
28"""\
Gustavo Niemeyerac37a802011-03-24 14:16:39 -030029The dateutil module provides powerful extensions to the
30datetime module available in the Python standard library.
niemeyer68ae2752003-09-28 01:20:02 +000031""",
niemeyerb5cbf032005-02-24 17:45:10 +000032 packages = ["dateutil", "dateutil.zoneinfo"],
Tomi Pieviläinen691a3cc2012-03-28 18:49:19 +030033 package_data = {"": ["*.tar.gz"]},
34 include_package_data = True,
35 zip_safe = False,
36 requires = ["six"],
37 install_requires = ["six"], # XXX fix when packaging is sane again
niemeyer68ae2752003-09-28 01:20:02 +000038 )