-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (37 loc) · 1.39 KB
/
setup.py
File metadata and controls
40 lines (37 loc) · 1.39 KB
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 setuptools import setup, find_packages
with open('service/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
setup(
name="simple-service",
version=version,
author_email="josebarn@cisco.com",
description="Drone + Python Demo Package.",
long_description=open('README.md').read(),
license="Apache 2.0 License",
keywords="drone ci python example",
url='https://github.com/josebarn/drone-python-tutorial',
install_requires=['flask', 'alembic', 'sqlalchemy==0.9.8', 'psycopg2'],
entry_points={
'console_scripts': [
'simple-service = service.run:cli_entry',
]
},
classifiers=[
'Development Status :: 6 - Mature',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
packages=find_packages(exclude=("tests",)),
package_data={'': ['LICENSE', '*.txt', '*.md', 'migrations/*']},
tests_require=['nose'],
test_suite='nose.collector',
)