forked from shayaniox/urlshortner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·44 lines (35 loc) · 924 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
import re
from os.path import join, dirname
from setuptools import setup, find_packages
# reading package version (same way the sqlalchemy does)
with open(join(dirname(__file__), 'urlshortener', '__init__.py')) as v_file:
package_version = re.compile('.*__version__ = \'(.*?)\'', re.S)\
.match(v_file.read()).group(1)
dependencies = [
'restfulpy >= 0.41.3',
'hashids',
'nanohttp',
'oauth2client',
'requests',
'sqlalchemy',
# Deployment
'gunicorn',
# testing
'webtest',
'nose',
'bddrest'
]
setup(
name='urlshortener',
version=package_version,
author='Mohammad',
author_email='[email protected]',
install_requires=dependencies,
packages=find_packages(),
test_suite='urlshortener.tests',
entry_points={
'console_scripts': [
'urlshortener = urlshortener:urlshortener.cli_main'
]
}
)