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"
22 readme
= read("README.rst")
23 history
= read("HISTORY.rst").replace(".. :changelog:", "")
25 if sys
.argv
[-1] == "publish":
26 os
.system("rm -rf dist")
27 os
.system("python setup.py sdist bdist_wheel")
28 os
.system("twine upload dist/*")
29 os
.system("git tag -a %s -m 'version %s'" % (__version__
, __version__
))
30 os
.system("git push --tags")
34 name
="cached-property",
36 description
="A decorator for caching properties in classes.",
37 long_description
=readme
+ "\n\n" + history
,
38 author
="Daniel Greenfeld",
39 author_email
="pydanny@gmail.com",
40 url
="https://github.com/pydanny/cached-property",
41 py_modules
=["cached_property"],
42 include_package_data
=True,
45 keywords
="cached-property",
47 "Development Status :: 5 - Production/Stable",
48 "Intended Audience :: Developers",
49 "License :: OSI Approved :: BSD License",
50 "Natural Language :: English",
51 "Programming Language :: Python :: 2",
52 "Programming Language :: Python :: 2.7",
53 "Programming Language :: Python :: 3",
54 "Programming Language :: Python :: 3.3",
55 "Programming Language :: Python :: 3.4",
56 "Programming Language :: Python :: 3.5",
57 "Programming Language :: Python :: 3.6",