forked from colibris-framework/colibris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (47 loc) · 1.56 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
import os
import re
from setuptools import setup, find_packages
def package_data_rec(package, directory):
paths = []
for path, directories, filenames in os.walk(os.path.join(package, directory)):
for filename in filenames:
paths.append(os.path.join(path, filename)[len(package) + 1:])
return paths
def find_version():
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'colibris', '__init__.py')) as f:
m = re.search(r"VERSION\s*=\s*'(.*?)'", f.read())
if m:
return m.group(1)
return 'unknown'
setup(
name='colibris',
version=find_version(),
install_requires=[
'aiohttp>=3.5.0,<=3.5.4',
'aiohttp-apispec>=1.5',
'apispec>=3.0.0',
'async-timeout',
'marshmallow>=3.0.0b19,<=3.0.0rc7',
'marshmallow_peewee==2.3.0',
'peewee>=3.9',
'peewee-migrate==1.1.6',
'python-dotenv',
'webargs>=5.2.0,<=5.3.2'
],
url='https://github.com/colibris-framework/colibris',
license='BSD',
description='A lightweight framework for RESTful microservices',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='The Colibris Team',
packages=find_packages(include='colibris/*'),
package_data={
'colibris': (package_data_rec('colibris', 'skeleton') +
package_data_rec('colibris', 'docs'))
},
entry_points={
'console_scripts': [
'colibris-start-project=colibris.startproject:start_project',
]
}
)