-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
30 lines (24 loc) · 902 Bytes
/
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
import os
import re
from setuptools import setup, find_packages
def parse_requirements(file):
with open(os.path.join(os.path.dirname(__file__), file)) as req_file:
return [line.strip() for line in req_file if '/' not in line]
def get_version():
with open(os.path.join(os.path.dirname(__file__), 'sr', '__init__.py')) as file:
return re.findall("__version__ = \'(.*)\'", file.read())[0]
setup(
name='sr',
python_requires='>=3.6',
version=get_version(),
description='EO Research - Super Resolution',
url='https://github.com/sentinel-hub/multi-temporal-super-resolution',
author='Sinergise EO research team',
packages=find_packages(),
install_requires=parse_requirements('requirements.txt'),
extras_require={
'DEV': parse_requirements('requirements-dev.txt')
},
zip_safe=False
)