Various setup and version issues
[cached-property.git] / setup.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 import os
5 import sys
6
7
8 try:
9 from setuptools import setup
10 except ImportError:
11 from distutils.core import setup
12
13
14 readme = open('README.rst').read()
15 history = open('HISTORY.rst').read().replace('.. :changelog:', '')
16
17
18 import cached_property
19
20 if sys.argv[-1] == 'publish':
21 os.system('python setup.py sdist bdist_wheel upload')
22 print("You probably want to also tag the version now:")
23 print(" git tag -a %s -m 'version %s'" % (cached_property.__version__,
24 cached_property.__version__))
25 print(" git push --tags")
26 sys.exit()
27
28 setup(
29 name='cached-property',
30 version=cached_property.__version__,
31 description='A cached-property for decorating methods in classes.',
32 long_description=readme + '\n\n' + history,
33 author='Daniel Greenfeld',
34 author_email='pydanny@gmail.com',
35 url='https://github.com/pydanny/cached-property',
36 py_modules=['dj_database_url'],
37 include_package_data=True,
38 license="BSD",
39 zip_safe=False,
40 keywords='cached-property',
41 classifiers=[
42 'Development Status :: 4 - Beta',
43 'Intended Audience :: Developers',
44 'License :: OSI Approved :: BSD License',
45 'Natural Language :: English',
46 "Programming Language :: Python :: 2",
47 'Programming Language :: Python :: 2.6',
48 'Programming Language :: Python :: 2.7',
49 'Programming Language :: Python :: 3',
50 'Programming Language :: Python :: 3.3',
51 ],
52 )