-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
57 lines (47 loc) · 1.42 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
50
51
52
53
54
55
56
57
#coding=utf8
__doc__ = """uliweb-apijson"""
import re
import os
from setuptools import setup, find_packages
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname, default=''):
filename = fpath(fname)
if os.path.exists(filename):
return open(fpath(fname),encoding="utf8").read()
else:
return default
def desc():
info = read('README.md', __doc__)
return info + '\n\n' + read('doc/CHANGELOG.md')
file_text = read(fpath('uliweb_apijson/__init__.py'))
def grep(attrname):
pattern = r"{0}\s*=\s*'([^']*)'".format(attrname)
strval, = re.findall(pattern, file_text)
return strval
setup(
name='uliweb-apijson',
version=grep('__version__'),
url=grep('__url__'),
license='BSD',
author=grep('__author__'),
author_email=grep('__email__'),
description='uliweb-apijson',
long_description=desc(),
long_description_content_type="text/markdown",
packages = find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)