Skip to content

Commit

Permalink
Added dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Mar 8, 2020
1 parent fab899b commit 84d9e71
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst
include requirements.txt

recursive-include tests *
recursive-exclude * __pycache__
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
earthengine-api
ipyleaflet
folium
click
17 changes: 15 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env python

"""The setup script."""

import os, platform
from os import path as op
import io
from setuptools import setup, find_packages

with open('README.rst') as readme_file:
Expand All @@ -10,6 +12,16 @@
with open('HISTORY.rst') as history_file:
history = history_file.read()

here = op.abspath(op.dirname(__file__))

# get the dependencies and installs
with io.open(op.join(here, 'requirements.txt'), encoding='utf-8') as f:
all_reqs = f.read().split('\n')

install_requires = [x.strip() for x in all_reqs if 'git+' not in x]
dependency_links = [x.strip().replace('git+', '') for x in all_reqs if 'git+' not in x]


requirements = ['Click>=7.0', ]

setup_requirements = [ ]
Expand Down Expand Up @@ -37,7 +49,8 @@
'geemap=geemap.cli:main',
],
},
install_requires=requirements,
install_requires=install_requires,
dependency_links=dependency_links,
license="MIT license",
long_description=readme + '\n\n' + history,
include_package_data=True,
Expand Down

0 comments on commit 84d9e71

Please sign in to comment.