documentating release and making small documentation tweaks
[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__ = '0.1.5'
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 print("You probably want to also tag the version now:")
20 print(" git tag -a %s -m 'version %s'" % (__version__, __version__))
21 print(" git push --tags")
22 sys.exit()
23
24 setup(
25 name='cached-property',
26 version=__version__,
27 description='A cached-property for decorating methods in classes.',
28 long_description=readme + '\n\n' + history,
29 author='Daniel Greenfeld',
30 author_email='pydanny@gmail.com',
31 url='https://github.com/pydanny/cached-property',
32 py_modules=['cached_property'],
33 include_package_data=True,
34 license="BSD",
35 zip_safe=False,
36 keywords='cached-property',
37 classifiers=[
38 'Development Status :: 4 - Beta',
39 'Intended Audience :: Developers',
40 'License :: OSI Approved :: BSD License',
41 'Natural Language :: English',
42 "Programming Language :: Python :: 2",
43 'Programming Language :: Python :: 2.6',
44 'Programming Language :: Python :: 2.7',
45 'Programming Language :: Python :: 3',
46 'Programming Language :: Python :: 3.3',
47 'Programming Language :: Python :: 3.4',
48 ],
49 )