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