2 # -*- coding: utf-8 -*-
9 from setuptools
import setup
11 from distutils
.core
import setup
14 readme
= open('README.rst').read()
15 history
= open('HISTORY.rst').read().replace('.. :changelog:', '')
18 # TODO: put package requirements here
22 # TODO: put package test requirements here
25 if sys
.argv
[-1] == 'publish':
26 os
.system('python setup.py sdist bdist_wheel upload')
27 print("You probably want to also tag the version now:")
28 print(" git tag -a %s -m 'version %s'" % (version
, version
))
29 print(" git push --tags")
33 name
='cached-property',
35 description
='A cached-property for decorating methods in classes.',
36 long_description
=readme
+ '\n\n' + history
,
37 author
='Daniel Greenfeld',
38 author_email
='pydanny@gmail.com',
39 url
='https://github.com/pydanny/cached-property',
43 package_dir
={'cached_property':
45 include_package_data
=True,
46 install_requires
=requirements
,
49 keywords
='cached-property',
51 'Development Status :: 4 - Beta',
52 'Intended Audience :: Developers',
53 'License :: OSI Approved :: BSD License',
54 'Natural Language :: English',
55 "Programming Language :: Python :: 2",
56 'Programming Language :: Python :: 2.6',
57 'Programming Language :: Python :: 2.7',
58 'Programming Language :: Python :: 3',
59 'Programming Language :: Python :: 3.3',
62 tests_require
=test_requirements