-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathsetup.py
76 lines (57 loc) · 2.1 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
"""open API serving parking lot data for multiple cities
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
here = path.abspath(path.dirname(__file__))
requirements = parse_requirements(path.join(here, "requirements.txt"), session=False)
try:
install_requires = [str(ir.requirement) for ir in requirements]
except AttributeError:
# deprecated
install_requires = [str(ir.req) for ir in requirements]
# Get the long description from the relevant file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='ParkAPI',
version='0.0.1',
description='open API serving parking lot data for multiple cities',
long_description=long_description,
url='https://github.com/offenesdresden/ParkAPI',
author='kilian',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Flask',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
keywords='webapp parkinglots scraping',
packages=find_packages(exclude=['cache', 'server.log']),
install_requires=install_requires,
extras_require={
'dev': ['pip'],
'test': [],
},
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
entry_points={
"console_scripts": [
"parkapi-scraper=park_api.scraper:main",
"parkapi-server=park_api.server:main",
"parkapi-setupdb=park_api.setupdb:main",
],
},
)