~ubuntu-branches/ubuntu/trusty/python-tz/trusty-updates

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Brian Sutherland
  • Date: 2005-02-08 02:14:33 UTC
  • Revision ID: james.westby@ubuntu.com-20050208021433-t6c9teignwsm2ywo
Tags: upstream-2005a
ImportĀ upstreamĀ versionĀ 2005a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'''
 
2
$Id: setup.py,v 1.7 2005/01/07 04:51:33 zenzen Exp $
 
3
Distribution setup script
 
4
'''
 
5
 
 
6
from distutils.core import setup
 
7
 
 
8
import pytz, sys, os, os.path
 
9
 
 
10
me = 'Stuart Bishop'
 
11
memail = 'stuart@stuartbishop.net'
 
12
ldesc = '''\
 
13
World modern and historical timezone definitions, implemented as
 
14
Python tzinfo subclasses suitable for use my Python's datetime module. 
 
15
Timezone information was provided by the Olson Timezone database.
 
16
Using these timezone definitions resolves all ambiguous daylight savings
 
17
time transitions. All DST trantions have been tested against the reference
 
18
implementation of zdump found in the Olson database to confirm even
 
19
the obscure historical cases work. This test suite is available seperatly
 
20
as it is rather large (75558 comparisisons), as is the program used
 
21
to generate this package.
 
22
 
 
23
The Olson Timezone database is updated roughly four times per year,
 
24
usually with obscure and generally unnoticable changes. These files
 
25
will be regenerated and rereleased soon after updated editions of the
 
26
Olson database are made available.
 
27
'''
 
28
 
 
29
packages = ['pytz']
 
30
for dirpath, dirname, filenames in os.walk(os.path.join('pytz','zoneinfo')):
 
31
    packages.append('.'.join(dirpath.split(os.sep)))
 
32
 
 
33
setup (
 
34
    name = 'pytz',
 
35
    version = pytz.VERSION,
 
36
    description = 'World timezone definitions, modern and historical',
 
37
    long_description = ldesc,
 
38
    author = me,
 
39
    author_email = memail,
 
40
    maintainer = me,
 
41
    maintainer_email = memail,
 
42
    url = 'http://pytz.sourceforge.net',
 
43
    license = open('LICENSE.txt','r').read(),
 
44
    keywords = ['timezone','tzinfo', 'datetime', 'olson', 'time'],
 
45
    packages = packages,
 
46
    download_url='http://sourceforge.net/project/showfiles.php?group_id=79122',
 
47
    platforms=['Independant'],
 
48
    classifiers = [
 
49
        'Development Status :: 6 - Mature',
 
50
        'Intended Audience :: Developers',
 
51
        'License :: OSI Approved :: MIT License',
 
52
        'Natural Language :: English',
 
53
        'Operating System :: OS Independent',
 
54
        'Programming Language :: Python',
 
55
        'Topic :: Software Development :: Libraries :: Python Modules',
 
56
        ],
 
57
    )