-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make estimate-area
and rasterio/GDAL optional
#149
Conversation
@@ -16,4 +17,5 @@ deploy: | |||
password: $PYPI_PASSWORD | |||
distributions: "sdist bdist_wheel" | |||
on: | |||
python: 3.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis' default dist action w/pypi fails with an error on python 3.6 now, so I changed this to publish with 3.7
@@ -1,6 +1,7 @@ | |||
boto3==1.9.99 | |||
Click==7.1.2 | |||
cligj==0.5.0 | |||
numpy==1.19.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a direct dependency but came in via supermercado
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks / works great @johnk1. One suggestion -- add the link for installation to the estimate-area
docstring. Something like:
tilesets estimate-area --help
Usage: tilesets estimate-area [OPTIONS] FEATURES...
Estimate area of features with a precision level. Requires extra installation steps: see https://github.com/mapbox/tilesets-cli/blob/master/README.md.
@@ -70,7 +70,7 @@ Releases to PyPi are handled via TravisCI and GitHub tags. Once changes have bee | |||
All tests are runnable with pytest. pytest is not installed by default and can be installed with the pip test extras | |||
|
|||
```shell | |||
pip install -e .[test] | |||
pip install -e '.[test]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the tests require [estimate-area]
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, [test]
includes supermercado already
fixes #147
This makes
estimate-area
an optional command. This command depends on rasterio w/GDAL, which is not as easily installed on arm64 Macs. So, this PR enables a simple installation for most uses while still keeping this command available.testing
This shows the basic installation without estimate-area. We see the command fails with an exception.
This test shows the full installation including estimate-area. Testing on an M1 with
brew install gdal
already run.After review
Once this is merged, I will bump the version to 1.7.3, tag, and verify it's published.