-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from NASA-IMPACT/drop_pyhdf
Remove pyhdf dependency and use rasterio.
- Loading branch information
Showing
8 changed files
with
93 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.pyo | ||
__pycache__/ | ||
venv/ | ||
devenv/ | ||
.vscode/ | ||
.tox/ | ||
dist/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.pyo | ||
__pycache__/ | ||
venv/ | ||
devenv/ | ||
.vscode/ | ||
.tox/ | ||
dist/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
FROM osgeo/gdal:ubuntu-full-3.0.3 | ||
|
||
# Required for click with Python 3.6 | ||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
RUN : \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
libjpeg-dev \ | ||
zlib1g-dev \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-venv \ | ||
libhdf4-dev \ | ||
git \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& pip3 install --no-cache --upgrade setuptools \ | ||
&& pip3 install --no-cache rasterio==1.1.3 tox tox-venv --no-binary rasterio \ | ||
&& : | ||
|
||
RUN apt-get update | ||
RUN apt-get install python3-pip python3-venv git -y | ||
|
||
|
||
RUN pip3 install rasterio==1.1.3 shapely --no-binary rasterio | ||
RUN apt-get install build-essential python3-dev python3-numpy libhdf4-dev -y | ||
RUN pip3 install tox tox-venv | ||
RUN pip3 install --upgrade setuptools | ||
RUN git clone https://github.com/NASA-IMPACT/hls-testing_data | ||
|
||
ENTRYPOINT ["/bin/sh", "-c"] | ||
CMD ["cd hls-metadata && tox -r"] | ||
WORKDIR /metadata_creator | ||
COPY ./ ./ | ||
|
||
CMD ["tox", "-r", "-v"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
services: | ||
tox: | ||
build: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
install_requires=[ | ||
"click~=7.1.0", | ||
"numpy", | ||
"pyhdf", | ||
"pyproj==2.6.1", | ||
"rasterio", | ||
"shapely==1.8a1", | ||
|