-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
64 lines (52 loc) · 1.6 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
58
59
60
61
62
63
64
import os
from setuptools import setup
from archer import __version__
readme = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules',
]
fname = os.path.join(os.path.dirname(__file__), 'requirements.txt')
with open(fname) as f:
REQUIREMENTS = list(map(lambda l: l.strip(), f.readlines()))
py_modules = []
for root, folders, files in os.walk('archer'):
for f in files:
if f.endswith('.py'):
full = os.path.join(root, f[:-3])
parts = full.split(os.path.sep)
modname = '.'.join(parts)
py_modules.append(modname)
setup(
name='archer',
version=__version__,
url='https://github.com/eleme/archer/',
description='Thrift app the flask way',
long_description=readme,
author='Wang Haowei',
author_email='[email protected]',
license='MIT',
classifiers=CLASSIFIERS,
zip_safe=False,
py_modules=py_modules,
include_package_data=True,
install_requires=[
'click>=3.3',
'thriftpy>=0.1.15'
],
entry_points="""
[console_scripts]
archer=archer.cli:main
"""
)