-
Notifications
You must be signed in to change notification settings - Fork 138
/
setup.py
57 lines (43 loc) · 1.41 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
#!/usr/bin/env python
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read_requirements():
import ssl
requires = []
# Workaround for python3.9 on macOS which is compiled with LibreSSL
# See https://github.com/urllib3/urllib3/issues/3020
if not ssl.OPENSSL_VERSION.startswith("OpenSSL "):
requires.append("urllib3<2.0.0")
with open("requirements.txt") as fp:
requires.extend([row.strip() for row in fp if row.strip()])
return requires
about = {}
with open(os.path.join(here, "mapillary_tools", "__init__.py"), "r") as f:
exec(f.read(), about)
def readme():
with open("README.md") as f:
return f.read()
setup(
name="mapillary_tools",
version=about["VERSION"],
description="Mapillary Image/Video Import Pipeline",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/mapillary/mapillary_tools",
author="Mapillary",
license="BSD",
python_requires=">=3.8",
packages=[
"mapillary_tools",
"mapillary_tools.commands",
"mapillary_tools.geotag",
"mapillary_tools.video_data_extraction",
"mapillary_tools.video_data_extraction.extractors",
],
entry_points="""
[console_scripts]
mapillary_tools=mapillary_tools.commands.__main__:main
""",
install_requires=read_requirements(),
)