forked from pylover/restfulpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (38 loc) · 1001 Bytes
/
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
import re
from os.path import join, dirname
from setuptools import setup, find_packages
# Reading package version (without reloading it)
with open(join(dirname(__file__), 'restfulpy', '__init__.py')) as v_file:
package_version = re.compile(r".*__version__ = '(.*?)'", re.S) \
.match(v_file.read()) \
.group(1)
dependencies = [
'nanohttp >= 2, < 3',
'psycopg2',
'sqlalchemy',
'alembic',
# 'itsdangerous',
# 'mako',
# 'redis',
# 'python-dateutil',
#
# Testing
'bddrest >= 2.5, < 3',
'bddcli >= 2.4, < 3'
]
setup(
name='restfulpy',
version=package_version,
description='A toolchain for developing REST APIs',
author='Vahid Mardani',
author_email='vahid.mardani@gmail.com',
install_requires=dependencies,
packages=find_packages(exclude=['tests']),
include_package_data=True,
license='MIT',
entry_points={
'console_scripts': [
'restfulpy = restfulpy.cli:main'
]
},
)