forked from sage-group/hugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
75 lines (67 loc) · 2.03 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
import os
from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = [
'Keras',
'tensorflow',
'geojson',
'rasterio',
'scikit-image',
'scipy',
'geopandas',
'Shapely',
'Fiona',
'h5py',
'backoff',
'matplotlib',
'scikit-learn',
'tqdm',
]
def extra_files(directory):
datafiles = [(d, [os.path.join(d, f) for f in files])
for d, folders, files in os.walk(directory)]
return datafiles
with open("README.md", "r") as fh:
long_description = fh.read()
with open('src/hugin/__init__.py') as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = version.strip("'")
continue
setup(
name='hugin',
version=version,
license='apache-2.0',
description='HuginEO - Machine Learning for Earth Observation experimentation tool',
long_description=long_description,
long_description_content_type="text/markdown",
author='Marian Neagul',
author_email='[email protected]',
url='https://github.com/sage-group/hugin',
keywords=['deep learning', 'machine learning', 'earth observation'],
install_requires=REQUIRED_PACKAGES,
data_files=extra_files("etc/"),
package_dir={'': 'src'},
packages=find_packages("src"),
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': ['hugin=hugin.tools.cli:main'],
},
extras_require={
'hugin_data_augmentation': ["imgaug"]
},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering :: Artificial Intelligence'
],
python_requires='>=3.6',
)