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.md")
23 history
= read("HISTORY.md")
25 if sys
.argv
[-1] == "publish":
29 except: # Yes, this is not how we usually do try/except
30 raise ImportError('Run "pip install wheel twine"')
31 os
.system("python setup.py sdist bdist_wheel")
32 os
.system("twine upload dist/*")
33 os
.system("git tag -a %s -m 'version %s'" % (__version__
, __version__
))
34 os
.system("git push --tags")
38 name
="cached-property",
40 description
="A decorator for caching properties in classes.",
41 long_description
=readme
+ "\n\n" + history
,
42 long_description_content_type
="text/x-md",
43 author
="Daniel Greenfeld",
44 author_email
="pydanny@gmail.com",
45 url
="https://github.com/pydanny/cached-property",
46 py_modules
=["cached_property"],
47 include_package_data
=True,
50 keywords
="cached-property",
52 "Development Status :: 5 - Production/Stable",
53 "Intended Audience :: Developers",
54 "License :: OSI Approved :: BSD License",
55 "Natural Language :: English",
56 "Programming Language :: Python :: 2",
57 "Programming Language :: Python :: 2.7",
58 "Programming Language :: Python :: 3",
59 "Programming Language :: Python :: 3.5",
60 "Programming Language :: Python :: 3.6",
61 "Programming Language :: Python :: 3.7",
62 "Programming Language :: Python :: 3.8",