2 # -*- coding: utf-8 -*-
9 from setuptools
import setup
11 from distutils
.core
import setup
18 os
.path
.join(os
.path
.dirname(__file__
), fname
), 'r', 'utf-8').read()
20 readme
= read('README.rst')
21 history
= read('HISTORY.rst').replace('.. :changelog:', '')
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")
30 name
='cached-property',
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,
41 keywords
='cached-property',
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.6',
49 'Programming Language :: Python :: 2.7',
50 'Programming Language :: Python :: 3',
51 'Programming Language :: Python :: 3.3',
52 'Programming Language :: Python :: 3.4',
53 'Programming Language :: Python :: 3.5',