This repository has been archived by the owner on Oct 26, 2019. It is now read-only.
forked from sentinel-hub/sentinelhub-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (54 loc) · 2.22 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
import io
import os
from setuptools import setup, find_packages
def parse_requirements(file):
return sorted(set(
line.partition('#')[0].strip()
for line in open(os.path.join(os.path.dirname(__file__), file))
) - set(''))
def get_version():
for line in open(os.path.join(os.path.dirname(__file__), 'sentinelhub', '__init__.py')):
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"').strip("'")
return version
def get_long_description():
return io.open('README.md', encoding="utf-8").read()
setup(
name='sentinelhub',
python_requires='>=3.5,<3.7',
version=get_version(),
description='Sentinel Hub Utilities',
long_description=get_long_description(),
long_description_content_type="text/markdown",
url='https://github.com/sentinel-hub/sentinelhub-py',
author='Sinergise ltd.',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
package_data={'sentinelhub': ['sentinelhub/config.json']},
include_package_data=True,
install_requires=parse_requirements("requirements.txt"),
extras_require={'DEV': parse_requirements("requirements-dev.txt")},
zip_safe=False,
entry_points={'console_scripts': ['sentinelhub=sentinelhub.commands:main_help',
'sentinelhub.aws=sentinelhub.commands:aws',
'sentinelhub.config=sentinelhub.commands:config',
'sentinelhub.download=sentinelhub.commands:download']},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering',
'Topic :: Software Development'
]
)