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