forked from lepture/flask-weixin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (42 loc) · 1.23 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
#!/usr/bin/env python
# coding: utf-8
try:
# python setup.py test
import multiprocessing
except ImportError:
pass
import os
import re
from setuptools import setup
def fread(fname):
filepath = os.path.join(os.path.dirname(__file__), fname)
with open(filepath) as f:
return f.read()
content = fread('flask_weixin.py')
m = re.findall(r'__version__\s*=\s*\'(.*)\'', content)
version = m[0]
setup(
name='Flask-Weixin',
version=version,
url='https://github.com/lepture/flask-weixin',
author='Hsiaoming Yang',
author_email='[email protected]',
description='Weixin for Flask.',
long_description=fread('README.rst'),
license='BSD',
py_modules=['flask_weixin'],
zip_safe=False,
platforms='any',
tests_require=['nose', 'Flask'],
test_suite='nose.collector',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)