first commit
[cached-property.git] / setup.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 import os
5 import sys
6
7
8 try:
9 from setuptools import setup
10 except ImportError:
11 from distutils.core import setup
12
13
14 readme = open('README.rst').read()
15 history = open('HISTORY.rst').read().replace('.. :changelog:', '')
16
17 requirements = [
18 # TODO: put package requirements here
19 ]
20
21 test_requirements = [
22 # TODO: put package test requirements here
23 ]
24
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")
30 sys.exit()
31
32 setup(
33 name='cached-property',
34 version='0.1.0',
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',
40 packages=[
41 'cached_property',
42 ],
43 package_dir={'cached_property':
44 'cached_property'},
45 include_package_data=True,
46 install_requires=requirements,
47 license="BSD",
48 zip_safe=False,
49 keywords='cached-property',
50 classifiers=[
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',
60 ],
61 test_suite='tests',
62 tests_require=test_requirements
63 )