This repository has been archived by the owner on Aug 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
107 lines (100 loc) · 2.94 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
"""Satsense package."""
import re
from setuptools import find_packages, setup
def read(filename):
"""Read the contents of `filename`."""
with open(filename) as file:
return file.read()
def read_authors(citation_file):
"""Read the list of authors from .cff file."""
authors = re.findall(
r'family-names: (.*)$\s*given-names: (.*)',
read(citation_file),
re.MULTILINE,
)
return ', '.join(' '.join(author[::-1]) for author in authors)
setup(
name='satsense',
use_scm_version=True,
url='https://github.com/dynaslum/satsense',
license='Apache Software License',
keywords=('classification '
'earth-observation '
'land-cover '
'land-use '
'machine-learning '
'machine-learning-algorithms '
'satellite-images '),
author=read_authors('CITATION.cff'),
setup_requires=[
'pytest-runner',
'setuptools_scm',
],
tests_require=[
'hypothesis[numpy]',
'pytest',
'pytest-cov',
'pytest-env',
'pytest-flake8',
'pytest-html',
],
install_requires=[
'affine',
'descartes',
'fiona',
'netCDF4',
'numpy',
'opencv-contrib-python-headless<3.4.3',
'rasterio',
'scikit-image>=0.14.2,<0.15',
'scikit-learn',
'scipy<1.3',
'shapely',
],
extras_require={
'dev': [
'hypothesis[numpy]',
'isort',
'pycodestyle',
'pyflakes',
'prospector[with_pyroma]',
'pytest',
'pytest-cov',
'pytest-env',
'pytest-flake8',
'pytest-html',
'sphinx',
'sphinx_rtd_theme',
'yamllint',
'yapf',
],
'notebooks': [
'jupyter',
'matplotlib',
'nblint',
],
},
author_email='[email protected]',
description=(
'Library for land use/cover classification using satellite images.'),
long_description=read('README.rst'),
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Software Development :: Libraries :: Python Modules',
])