-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
58 lines (46 loc) · 1.51 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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
VERSION_FILE = os.path.join(ROOT_DIR, 'VERSION')
BUILD_NUMBER = os.environ.get('BUILD_NUMBER')
def read_file(file_path):
return open(file_path).read().strip()
__version__ = read_file(os.path.join(ROOT_DIR, 'VERSION'))
if BUILD_NUMBER:
full_version = '%s.%s' % (__version__, BUILD_NUMBER)
f = open(VERSION_FILE, 'w')
try:
f.writelines([full_version])
finally:
f.close()
setup(
name='aiohttp_baseapi',
version=read_file(os.path.join(ROOT_DIR, 'VERSION')),
packages=find_packages(),
long_description=read_file(os.path.join(ROOT_DIR, 'README.md')),
include_package_data=True,
author='Wargaming Team',
install_requires=[
'aiohttp>=2.0.0',
'simplejson>=3.0.0',
],
extras_require={
'models': [
'aiosqlalchemy_miniorm'
],
},
entry_points={'console_scripts': [
'baseapi-start-project = aiohttp_baseapi.project:execute_from_command_line',
]},
classifiers=[
'Environment :: Web Environment',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries :: Application Frameworks',
]
)