Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 79 lines (74 sloc) 2.855 kb
ebcc444 @nvie Add support for _parsing_ dates.
authored
1 import sys
3a73223 @nvie Revert "No need to store the version in a separate file."
authored
2 import os
fe9e27e @nvie Add PyPI package definition.
authored
3 from setuptools import setup
4
69cf3ca @nvie Flake8.
authored
5
fe9e27e @nvie Add PyPI package definition.
authored
6 def get_version():
3a73223 @nvie Revert "No need to store the version in a separate file."
authored
7 basedir = os.path.dirname(__file__)
8 with open(os.path.join(basedir, 'times/version.py')) as f:
92fc2fc @svetlyak40wt Fixes setup.py for python3.
svetlyak40wt authored
9 variables = {}
10 exec(f.read(), variables)
11 return variables.get('VERSION')
3a73223 @nvie Revert "No need to store the version in a separate file."
authored
12 raise RuntimeError('No version info found.')
fe9e27e @nvie Add PyPI package definition.
authored
13
2b1afd4 @nvie Be explicit about requiring >= 2.1.
authored
14
fe9e27e @nvie Add PyPI package definition.
authored
15 setup(
16 name='times',
17 version=get_version(),
18 url='https://github.com/nvie/times/',
19 license='BSD',
20 author='Vincent Driessen',
21 author_email='vincent@3rdcloud.com',
22 description='Times is a small, minimalistic, Python library for dealing '
d6cbacf @nvie Add version info to the package.
authored
23 'with time conversions between universal time and arbitrary '
24 'timezones.',
fe9e27e @nvie Add PyPI package definition.
authored
25 long_description=__doc__,
26 packages=['times'],
27 include_package_data=True,
28 zip_safe=False,
29 platforms='any',
4369c28 @nvie Don't depend on six.
authored
30 install_requires=['pytz', 'python-dateutil >= 2.1'],
fe9e27e @nvie Add PyPI package definition.
authored
31 classifiers=[
32 # As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
33 #'Development Status :: 1 - Planning',
34 #'Development Status :: 2 - Pre-Alpha',
35 #'Development Status :: 3 - Alpha',
36 'Development Status :: 4 - Beta',
37 #'Development Status :: 5 - Production/Stable',
38 #'Development Status :: 6 - Mature',
39 #'Development Status :: 7 - Inactive',
40 'Environment :: Console',
41 'Environment :: MacOS X',
42 'Environment :: No Input/Output (Daemon)',
43 'Environment :: Other Environment',
44 'Environment :: Plugins',
45 'Environment :: Web Environment',
46 'Environment :: Win32 (MS Windows)',
47 'Framework :: Buildout',
48 'Framework :: CherryPy',
49 'Framework :: Django',
50 'Framework :: Plone',
51 'Framework :: Pylons',
52 'Intended Audience :: Developers',
53 'Intended Audience :: Education',
54 'Intended Audience :: End Users/Desktop',
55 'Intended Audience :: Financial and Insurance Industry',
56 'Intended Audience :: Healthcare Industry',
57 'Intended Audience :: Information Technology',
58 'Intended Audience :: Legal Industry',
59 'Intended Audience :: Manufacturing',
60 'Intended Audience :: Science/Research',
61 'License :: OSI Approved :: BSD License',
62 'Natural Language :: English',
63 'Programming Language :: Python',
12d17ee @nvie Add PyPy support.
authored
64 'Programming Language :: Python :: 2',
65 'Programming Language :: Python :: 2.7',
66 'Programming Language :: Python :: 3.2',
67 'Programming Language :: Python :: 3.3',
68 'Programming Language :: Python :: Implementation :: PyPy',
fe9e27e @nvie Add PyPI package definition.
authored
69 'Topic :: Internet',
70 'Topic :: Internet :: WWW/HTTP',
71 'Topic :: Office/Business',
72 'Topic :: Scientific/Engineering',
73 'Topic :: Software Development',
74 'Topic :: System',
75 'Topic :: Terminals',
76 'Topic :: Utilities',
77 ]
78 )
Something went wrong with that request. Please try again.