blob: c195e783bf2d2df0b1eae1f971c89e875e68eea3 [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
niemeyerdebf3cd2005-02-23 18:33:30 +00003import glob
4import 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__ = "([^"]+)"',
niemeyer49178742010-01-11 11:42:08 +000016 open(TOPDIR + "/dateutil/__init__.py").read()).group(1)
niemeyer313ef142007-11-12 14:06:05 +000017
18
niemeyercc77d432003-10-09 02:57:39 +000019setup(name="python-dateutil",
niemeyer313ef142007-11-12 14:06:05 +000020 version = VERSION,
Tomi Pieviläinen40996e02012-03-03 11:43:08 +020021 description = "Extensions to the standard Python datetime module",
22 author = "Tomi Pievilaeinen",
23 author_email = "tomi.pievilainen@iki.fi",
niemeyerdb8b18d2005-12-22 15:02:22 +000024 url = "http://labix.org/python-dateutil",
Tomi Pieviläinen40996e02012-03-03 11:43:08 +020025 license = "Simplified BSD",
niemeyer68ae2752003-09-28 01:20:02 +000026 long_description =
27"""\
Gustavo Niemeyerac37a802011-03-24 14:16:39 -030028The dateutil module provides powerful extensions to the
29datetime module available in the Python standard library.
niemeyer68ae2752003-09-28 01:20:02 +000030""",
niemeyerb5cbf032005-02-24 17:45:10 +000031 packages = ["dateutil", "dateutil.zoneinfo"],
Tomi Pieviläinen691a3cc2012-03-28 18:49:19 +030032 package_data = {"": ["*.tar.gz"]},
33 include_package_data = True,
34 zip_safe = False,
35 requires = ["six"],
36 install_requires = ["six"], # XXX fix when packaging is sane again
niemeyer68ae2752003-09-28 01:20:02 +000037 )