This repository has been archived by the owner on Jul 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
53 lines (45 loc) · 1.63 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
import os
from setuptools import setup, find_packages
with open('cw_nets/__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
with open('README.rst') as f:
readme = f.read()
# Runtime requirements.
inst_reqs = ["cw-tiler",
"numpy",
"tqdm",
"shapely",
"rasterio",
"opencv-contrib-python-headless",
"scikit-image",
"tensorflow-gpu", "keras", "scikit-learn", "torch", "torchvision"]
extra_reqs = {
'test': ['mock', 'pytest', 'pytest-cov', 'codecov'],
'gpu' : ['tensorflow-gpu'],
'cpu' : ['tensorflow']
}
setup(name='cw_nets',
version=version,
description=u"""Run basic Segmentation on Dataset or arbitrary GeoTIffs""",
long_description=readme,
classifiers=[
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache License',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering :: GIS'],
keywords='segmentation spacenet machinelearning',
scripts=['cw_nets/scripts/create_mask.py'],
author=u"David Lindenbaum",
author_email='[email protected]',
url='https://github.com/CosmiQ/cw-nets',
license='Apache 2.0',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
zip_safe=False,
install_requires=inst_reqs,
extras_require=extra_reqs)