-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
49 lines (41 loc) · 1.31 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os.path
import sys
CMD_CLASS = None
try:
from googlecode_distutils_upload import upload
CMD_CLASS = {'google_upload': upload}
except Exception:
pass
import filecache
DOCUMENTATION = filecache.__doc__
VERSION = '0.81'
SETUP_DICT = dict(
name='filecache',
packages=['filecache'],
version=VERSION,
author='ubershmekel',
author_email='[email protected]',
url='https://github.com/ubershmekel/filecache',
description='Persistent caching decorator',
long_description=DOCUMENTATION,
long_description_content_type="text/markdown",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
if CMD_CLASS:
SETUP_DICT['cmdclass'] = CMD_CLASS
# generate .rst file with documentation
#open(os.path.join(os.path.dirname(__file__), 'documentation.rst'), 'w').write(DOCUMENTATION)
setup(**SETUP_DICT)