Skip to content

Commit 466152f

Browse files
authored
Fix up tests by signing all planetary computer urls (#39)
Also pin testing env under zarr 3 and pystac 1.12: * pystac 1.12 migrates to projection extension v2 which is not supported by stackstac (gjoseph92/stackstac#262) * zarr 3 has as-yet unresolved issues with fsspec
1 parent 7b77ecc commit 466152f

File tree

9 files changed

+91
-725
lines changed

9 files changed

+91
-725
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os: [ubuntu-latest]
27-
python-version: ["3.8", "3.9", "3.10", "3.11"]
27+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2828
environment-file: ["environment.yaml"]
2929
defaults:
3030
run:
@@ -46,4 +46,4 @@ jobs:
4646

4747
- name: run tests
4848
id: status
49-
run: pytest -v --cov xpystac --cov-report term-missing --vcr-record=none .
49+
run: pytest -v --cov xpystac --cov-report term-missing .

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ ref: https://planetarycomputer.microsoft.com/docs/quickstarts/reading-zarr-data/
6565
## Install
6666

6767
```bash
68-
pip install git+https://github.com/stac-utils/xpystac
68+
pip install xpystac
6969
```
7070

7171
## How it works

environment.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
dependencies:
66
- python
77
# required
8-
- pystac
8+
- pystac<1.12
99
- xarray
1010
# optional
1111
- adlfs
@@ -17,9 +17,8 @@ dependencies:
1717
- requests
1818
- rioxarray
1919
- stackstac
20-
- urllib3<2 # temporary pin https://github.com/stac-utils/pystac-client/issues/509
21-
- zarr
20+
- urllib3
21+
- zarr<3
2222
# testing
2323
- pytest
2424
- pytest-cov
25-
- pytest-vcr

tests/cassettes/fixtures/simple_reference_file.yaml

Lines changed: 0 additions & 322 deletions
This file was deleted.

tests/cassettes/fixtures/simple_search.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)