-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·41 lines (32 loc) · 880 Bytes
/
setup.py
File metadata and controls
executable file
·41 lines (32 loc) · 880 Bytes
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
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',
# Deployment
'gunicorn',
# testing
'webtest',
'nose',
'bddrest'
]
setup(
name='urlshortener',
version=package_version,
author='Mohammad',
author_email='mohammadsheikhian70@gmail.com',
install_requires=dependencies,
packages=find_packages(),
test_suite='urlshortener.tests',
entry_points={
'console_scripts': [
'urlshortener = urlshortener:urlshortener.cli_main'
]
}
)