-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
93 lines (81 loc) · 2.42 KB
/
Copy pathsetup.py
File metadata and controls
93 lines (81 loc) · 2.42 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import os
import sys
from setuptools import find_packages, setup
DESCRIPTION = 'so eazy to interact with wechat api'
URL = 'https://github.com/chuter/wechat-requests'
EMAIL = 'topgun.chuter@gmail.com'
AUTHOR = 'chuter'
VERSION = None
# What packages are required for this module to be executed?
REQUIRED = [
'six',
'requests>=2.18.4',
'lxml',
'bs4',
'pycrypto'
]
TEST_REQUIREMENTS = [
'pytest-httpbin==0.0.7',
'pytest-cov',
'pytest-mock',
'pytest-xdist',
'pytest>=2.8.0'
]
here = os.path.abspath(os.path.dirname(__file__))
src = os.path.join(here, 'src')
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist')
os.system('twine upload dist/*')
sys.exit()
with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = '\n' + f.read()
about = {}
if VERSION is None:
with open(os.path.join(src, 'wechat', '__version__.py')) as f:
exec(f.read(), about)
else:
about['__version__'] = VERSION
setup(
name=about['__name__'],
version=about['__version__'],
description=DESCRIPTION,
license='MIT',
long_description=long_description,
author=AUTHOR,
author_email=EMAIL,
python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
url=URL,
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=REQUIRED,
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: Chinese (Simplified)',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
keywords=[
'wechat', 'weixin', 'wxpay', 'api', 'apiclient', 'requests'
],
tests_require=TEST_REQUIREMENTS,
setup_requires=['pytest-runner'],
extras_require={
'dev': ['check-manifest'],
'test': ['coverage'],
},
)