Skip to content
Browse files

Add PyPI package definition.

  • Loading branch information...
1 parent c53c6d7 commit fe9e27e980e5abcb9a4424145fc24706c61827d1 @nvie committed Feb 1, 2012
Showing with 76 additions and 0 deletions.
  1. +2 −0 setup.cfg
  2. +73 −0 setup.py
  3. +1 −0 times/version.py
View
2 setup.cfg
@@ -0,0 +1,2 @@
+[bdist_rpm]
+requires = pytz
View
73 setup.py
@@ -0,0 +1,73 @@
+"""
+Times is a small, minimalistic, Python library for dealing with time conversions
+to and from timezones, for once and for all.
+"""
+import os
+from setuptools import setup
+
+def get_version():
+ basedir = os.path.dirname(__file__)
+ with open(os.path.join(basedir, 'times/version.py')) as f:
+ VERSION = None
+ exec(f.read())
+ return VERSION
+ raise RuntimeError('No version info found.')
+
+setup(
+ name='times',
+ version=get_version(),
+ url='https://github.com/nvie/times/',
+ license='BSD',
+ author='Vincent Driessen',
+ author_email='vincent@3rdcloud.com',
+ description='Times is a small, minimalistic, Python library for dealing '
+ 'with time conversions to and from timezones, for once and for all.',
+ long_description=__doc__,
+ packages=['times'],
+ include_package_data=True,
+ zip_safe=False,
+ platforms='any',
+ install_requires=['pytz'],
+ classifiers=[
+ # As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
+ #'Development Status :: 1 - Planning',
+ #'Development Status :: 2 - Pre-Alpha',
+ #'Development Status :: 3 - Alpha',
+ 'Development Status :: 4 - Beta',
+ #'Development Status :: 5 - Production/Stable',
+ #'Development Status :: 6 - Mature',
+ #'Development Status :: 7 - Inactive',
+ 'Environment :: Console',
+ 'Environment :: MacOS X',
+ 'Environment :: No Input/Output (Daemon)',
+ 'Environment :: Other Environment',
+ 'Environment :: Plugins',
+ 'Environment :: Web Environment',
+ 'Environment :: Win32 (MS Windows)',
+ 'Framework :: Buildout',
+ 'Framework :: CherryPy',
+ 'Framework :: Django',
+ 'Framework :: Plone',
+ 'Framework :: Pylons',
+ 'Intended Audience :: Developers',
+ 'Intended Audience :: Education',
+ 'Intended Audience :: End Users/Desktop',
+ 'Intended Audience :: Financial and Insurance Industry',
+ 'Intended Audience :: Healthcare Industry',
+ 'Intended Audience :: Information Technology',
+ 'Intended Audience :: Legal Industry',
+ 'Intended Audience :: Manufacturing',
+ 'Intended Audience :: Science/Research',
+ 'License :: OSI Approved :: BSD License',
+ 'Natural Language :: English',
+ 'Programming Language :: Python',
+ 'Topic :: Internet',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Topic :: Office/Business',
+ 'Topic :: Scientific/Engineering',
+ 'Topic :: Software Development',
+ 'Topic :: System',
+ 'Topic :: Terminals',
+ 'Topic :: Utilities',
+ ]
+)
View
1 times/version.py
@@ -0,0 +1 @@
+VERSION = '0.1'

0 comments on commit fe9e27e

Please sign in to comment.
Something went wrong with that request. Please try again.