-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (40 loc) · 1.28 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
import setuptools
import os
NAME = "atcociftogtfs"
def read_textfile(filename=""):
with open(filename, "r") as textfile:
return textfile.read()
def read_version():
with open(os.path.join(NAME, "__init__.py")) as init:
for line in init:
if line.startswith("__version__"):
return eval(line.split("=")[-1])
# nosec - setup only (ast.literal_eval doesn't process dots)
return None
setuptools.setup(
name=NAME,
version=read_version(),
author="Tim Howgego",
author_email="[email protected]",
description="Converts ATCO.CIF public transport schedules into GTFS",
long_description=read_textfile(filename="README.md"),
long_description_content_type="text/markdown",
url="https://github.com/timhowgego/atcociftogtfs",
license="MIT",
packages=[NAME],
entry_points={
"console_scripts": [
"{} = {}.__main__:main".format(NAME, NAME) # Entry
]
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=[
"pyproj",
],
python_requires='>=3.3', # According to vermin
include_package_data=True,
)