-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
78 lines (71 loc) · 2.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
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
77
78
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from pkg_resources import DistributionNotFound, get_distribution
#https://stackoverflow.com/a/49338206
def get_dist(pkgname):
try:
return get_distribution(pkgname)
except DistributionNotFound:
return None
install_deps = [
"pip",
"numpy",
"gpxpy",
"tqdm",
"piexif",
"matplotlib",
"pandas",
"geopandas==0.10.2",
"Pillow",
]
# If any opencv package is available we can use it
# as installing multiple opencv packages breaks things
if (get_dist('opencv-contrib-python-headless') is None
and get_dist('opencv-python-headless') is None
and get_dist('opencv-contrib-python') is None
and get_dist('opencv-python') is None):
install_deps.append('opencv-python-headless')
here = os.path.abspath(os.path.dirname(__file__))
with open("README.md") as readme_file:
readme = readme_file.read()
setup(
name="odmax",
version="0.1.2",
description="odmax extracts still images from GoPro 360 camera types, including GNSS location and time information",
long_description=readme + "\n\n",
long_description_content_type="text/markdown",
url="https://github.com/localdevices/ODMax",
author="Hessel Winsemius and Stephen Mather",
author_email="[email protected]",
packages=find_packages(),
package_dir={"odmax": "odmax"},
test_suite="tests",
python_requires=">=3.8",
install_requires=install_deps,
extras_require={
"dev": ["pytest", "pytest-cov"],
"optional": [],
},
entry_points={
"console_scripts": [
"odmax=odmax.cli:main"
]
},
include_package_data=True,
license="AGPLv3",
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: GIS",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
keywords="GoPro, OpenDroneMap",
)