-
Notifications
You must be signed in to change notification settings - Fork 28
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
add/fix missing tests annotations, cleanup requirements.txt #639
Changes from 6 commits
f27a4d4
dba96f2
e4e2974
b161134
cdb361f
7869993
43c40db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ dependencies = [ | |
"distributed", | ||
"fiona>=1.8.13.post1", | ||
"fsspec", | ||
"gdal>=3.6.4", | ||
"importlib-metadata", | ||
"importlib-resources", | ||
"numpy>=1.16", | ||
|
@@ -79,6 +80,7 @@ profiling = [ | |
] | ||
s3 = [ | ||
"aiobotocore>=1.1.2", | ||
"aioitertools>=0.7.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same with aioitertools here. They are not a direct dependency of the package itself. |
||
"boto3>=1.14.44", | ||
"fsspec[s3]", | ||
"s3fs!=2023.9.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,42 @@ | ||
aiobotocore>=1.1.2 | ||
aiohttp>=3.6.2 | ||
aiohttp | ||
aioitertools>=0.7.0 | ||
boto3>=1.14.44 | ||
cachetools>=4.1.0 | ||
cachetools | ||
click-plugins | ||
click-spinner | ||
click>=7.1.1 | ||
click-plugins>=1.1.1 | ||
click-spinner>=0.1.10 | ||
dask | ||
distributed | ||
python-dateutil | ||
fiona>=1.8.13.post1 | ||
Flask>=1.1.2,<=3.0.0 | ||
Flask-RangeRequest>=0.0.2 | ||
flask-rangerequest | ||
flask<3.0.0 | ||
fsspec | ||
fsspec[http,s3]>=2023.12.0 | ||
importlib-metadata>=1.6.0 | ||
importlib-resources>=1.5.0 | ||
lxml>=4.5.0 | ||
matplotlib>=3.2.1 | ||
fsspec[http] | ||
fsspec[s3] | ||
gdal>=3.6.4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why |
||
importlib-metadata | ||
importlib-resources | ||
lxml | ||
matplotlib | ||
memray | ||
numpy>=1.16 | ||
oyaml>=0.9 | ||
pyproj | ||
oyaml | ||
pydantic-geojson | ||
pydantic-settings>=2.0.0 | ||
pydantic>=2.3.0 | ||
pydantic_settings>=2.0.0 | ||
retry>=0.9.2 | ||
pyproj | ||
pystac-client>=0.7.2 | ||
pystac[urllib3]>=1.8.2 | ||
python-dateutil | ||
rasterio>1.2.10 | ||
s3fs>2023.9.0 | ||
Shapely>=2.0.0 | ||
requests | ||
retry | ||
rtree | ||
s3fs!=2023.9.0 | ||
shapely>=2.0.0 | ||
tilebench | ||
tilematrix>=2022.12.0 | ||
tqdm>=4.46.0 | ||
werkzeug>=0.15 | ||
tqdm | ||
werkzeug>=0.15 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1056,9 +1056,6 @@ def test_read_raster_window_aws_s3(path, grid, pixelbuffer, zoom): | |
@pytest.mark.parametrize( | ||
"path", | ||
[ | ||
lazy_fixture("raster_4band_s3"), | ||
lazy_fixture("raster_4band_http"), | ||
lazy_fixture("raster_4band_secure_http"), | ||
lazy_fixture("raster_4band"), | ||
lazy_fixture("stacta"), | ||
], | ||
|
@@ -1069,6 +1066,22 @@ def test_read_raster(path): | |
assert not rr.data.mask.all() | ||
|
||
|
||
@pytest.mark.aws_s3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is one |
||
@pytest.mark.integration | ||
@pytest.mark.parametrize( | ||
"path", | ||
[ | ||
lazy_fixture("raster_4band_s3"), | ||
lazy_fixture("raster_4band_http"), | ||
lazy_fixture("raster_4band_secure_http"), | ||
], | ||
) | ||
def test_read_remote_raster(path): | ||
rr = read_raster(path) | ||
assert isinstance(rr, ReferencedRaster) | ||
assert not rr.data.mask.all() | ||
|
||
|
||
@pytest.mark.parametrize("masked", [True, False]) | ||
@pytest.mark.parametrize("grid", [lazy_fixture("s2_band_tile")]) | ||
def test_read_raster_args(s2_band, masked, grid): | ||
|
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 should not be here because we don't import GDALs python bindings anywhere in the package. All GDAL related stuff is "hidden" within the builds of fiona and rasterio.