forked from geometalab/OSMDeepOD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (55 loc) · 1.96 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import versioneer
from setuptools import setup
from pip.req import parse_requirements
PACKAGE = 'src'
def get_packages(package):
"""Return root package and all sub-packages."""
return [dirpath
for dirpath, _, _ in os.walk(package)
if os.path.exists(os.path.join(dirpath, '__init__.py'))]
def get_requirements():
requirements_file_path = os.path.join(
os.path.dirname(__file__),
'requires.dev.txt')
if os.path.exists(requirements_file_path):
parsed_requirements = parse_requirements(
requirements_file_path,
session=False)
requirements = [str(ir.req) for ir in parsed_requirements]
else:
requirements = []
return requirements
setup(
name="OSM-Crosswalk-Detection",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author="Buehler Severin and Kurath Samuel",
author_email="severin.buehler@hsr.ch, samuel.kurath@hsr.ch",
maintainer="Marcel Huber",
maintainer_email="marcel.huber@hsr.ch",
description="Crosswalk detection on orthofotos.",
license="MIT",
keywords=['crosswalk detection'],
url="https://github.com/geometalab/OSM-Crosswalk-Detection",
packages=get_packages(PACKAGE),
install_requires=get_requirements(),
include_package_data=True,
setup_requires=[],
test_suite='tests',
tests_require=[],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.4",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Scientific/Engineering :: Visualization"],
)