forked from syaning/zhihuapi-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (31 loc) · 1.06 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
import re
from setuptools import setup
with open('README.rst', encoding='utf8') as f:
readme = f.read()
with open('zhihuapi/__init__.py') as f:
version = re.search(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
f.read(), re.MULTILINE).group(1)
setup(
name='zhihuapi',
version=version,
description='Unofficial API for zhihu.',
long_description=readme,
author='Alex Sun',
author_email='syaningv@gmail.com',
url='https://github.com/syaning/zhihuapi-py',
license='MIT',
packages=['zhihuapi', 'zhihuapi.parser'],
include_package_data=True,
install_requires=['requests', 'pyquery'],
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3 :: Only'
],
keywords='zhihuapi zhihu api crawler spider'
)