-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
50 lines (46 loc) · 1.67 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
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
import io
from os.path import join, dirname
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(join(dirname(__file__), filename), encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name='os-dbnetget',
version=read('src/os_dbnetget/VERSION'),
packages=find_packages(where='src'),
package_dir={'': 'src'},
include_package_data=True,
license='MIT License',
description='qdb async client.',
long_description=open('README.md').read(),
author='Ozzy',
author_email='cfhamlet@gmail.com',
url='https://github.com/cfhamlet/os-dbnetget',
install_requires=open('requirements.txt').read().split('\n'),
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
zip_safe=False,
entry_points={
'console_scripts': ['os-dbnetget = os_dbnetget.cmdline:execute']
},
extras_require={
'tornado': ['tornado>5.1'],
'm3': ['os-m3-engine'],
'rotate': ['os-rotatefile'],
},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
])