forked from elliotgao2/toapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (40 loc) · 1.08 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
import ast
import re
from setuptools import find_packages, setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('toapi/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='toapi',
version=version,
description='Every web site provides APIs.',
author='Jiuli Gao',
author_email='[email protected]',
url='https://github.com/gaojiuli/toapi',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.6',
],
install_requires=[
'colorama',
'cchardet',
'requests',
'htmlparsing',
'htmlfetcher',
'flask',
'click'
],
license='Apache 2.0',
packages=find_packages(),
entry_points={
'console_scripts': [
'toapi=toapi.cli:cli',
],
},
py_modules=['toapi'],
include_package_data=True,
zip_safe=False
)