forked from sentinel-hub/sentinelhub-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (30 loc) · 1.19 KB
/
setup.py
File metadata and controls
36 lines (30 loc) · 1.19 KB
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
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
setup(
name='sentinelhub',
version=get_version(),
description='Sentinel Hub Utilities',
url='https://github.com/sentinel-hub/sentinelhub-py',
author='Sinergise ltd.',
author_email='info@sentinel-hub.com',
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.aws=sentinelhub.commands:aws',
'sentinelhub.download=sentinelhub.commands:download']}
)