Skip to content

Commit 0c7d3f1

Browse files
authored
release: v0.7.7 (#671)
1 parent 124fe01 commit 0c7d3f1

File tree

63 files changed

+26070
-25212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+26070
-25212
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests/cassettes/**/*.yaml linguist-generated=true

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
repos:
55
- repo: https://github.com/charliermarsh/ruff-pre-commit
6-
rev: "v0.0.285"
6+
rev: "v0.4.0"
77
hooks:
88
- id: ruff
99
args: [--fix, --exit-non-zero-on-fix]
1010
- repo: https://github.com/psf/black
11-
rev: 23.7.0
11+
rev: 24.4.0
1212
hooks:
1313
- id: black
1414
- repo: https://github.com/codespell-project/codespell
15-
rev: v2.2.5
15+
rev: v2.2.6
1616
hooks:
1717
- id: codespell
1818
args: [--ignore-words=.codespellignore]
@@ -25,7 +25,7 @@ repos:
2525
additional_dependencies:
2626
- importlib_metadata < 5; python_version == "3.7"
2727
- repo: https://github.com/pre-commit/mirrors-mypy
28-
rev: v1.5.1
28+
rev: v1.9.0
2929
hooks:
3030
- id: mypy
3131
files: ".*\\.py$"

CHANGELOG.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [v0.7.7]
11+
1012
### Changed
1113

1214
- Updated to **pystac** v1.10.0 [#661](https://github.com/stac-utils/pystac-client/pull/661)
@@ -345,7 +347,7 @@ are in a single HTTP session, handle pagination and respects conformance
345347

346348
### Changed
347349

348-
- CLI: pass in heades as list of KEY=VALUE pairs
350+
- CLI: pass in headers as list of KEY=VALUE pairs
349351

350352
### Fixed
351353

@@ -356,7 +358,8 @@ are in a single HTTP session, handle pagination and respects conformance
356358

357359
Initial release.
358360

359-
[Unreleased]: <https://github.com/stac-utils/pystac-client/compare/v0.7.6...main>
361+
[Unreleased]: <https://github.com/stac-utils/pystac-client/compare/v0.7.7...main>
362+
[v0.7.7]: <https://github.com/stac-utils/pystac-client/compare/v0.7.6...v0.7.7>
360363
[v0.7.6]: <https://github.com/stac-utils/pystac-client/compare/v0.7.5...v0.7.6>
361364
[v0.7.5]: <https://github.com/stac-utils/pystac-client/compare/v0.7.4...v0.7.5>
362365
[v0.7.4]: <https://github.com/stac-utils/pystac-client/compare/v0.7.3...v0.7.4>

RELEASING.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
2. Create a release branch named `release/vX.Y.Z`, where `X.Y.Z` is the next version.
66
3. Update [version.py](pystac_client/version.py) with the new version.
77
4. Update all cassettes: `pytest --record-mode rewrite`
8-
5. Update [CHANGELOG.md](CHANGELOG.md).
8+
5. Update the pre-commit hook versions: `pre-commit autoupdate`
9+
6. Update [CHANGELOG.md](CHANGELOG.md).
910
1. Add a new header under "Unreleased" with the new version and the date, e.g. `## [vX.Y.Z] - YYYY-MM-DD`.
1011
2. Audit the changelog section to ensure all changes are captured.
1112
3. Add a link reference for the new version after the Unreleased link reference at the bottom of the file.
1213
Follow the format from the previous version links.
13-
6. If necessary, update the versions table in [the documentation](docs/index.rst)
14-
7. (optional) Build the package locally and inspect its contents: `pip install build && python -m build`
15-
8. Open a pull request for your `release/vX.Y.Z` branch against the appropriate branch (either `main` or a version branch, e.g. `v0.3`).
16-
9. After pull request merge, create an annotated tag for your version, e.g. `git tag -a vX.Y.Z`.
17-
10. Push the tag.
14+
7. If necessary, update the versions table in [the documentation](docs/index.rst)
15+
8. (optional) Build the package locally and inspect its contents: `pip install build && python -m build`
16+
9. Open a pull request for your `release/vX.Y.Z` branch against the appropriate branch (either `main` or a version branch, e.g. `v0.3`).
17+
10. After pull request merge, create an annotated tag for your version, e.g. `git tag -a vX.Y.Z`.
18+
11. Push the tag.
1819
This will trigger [the Github release workflow](.github/workflows/release.yml) and publish to PyPI.
19-
11. [Create a new release on Github](https://github.com/stac-utils/pystac-client/releases/new) pointing to the new tag.
20+
12. [Create a new release on Github](https://github.com/stac-utils/pystac-client/releases/new) pointing to the new tag.

pystac_client/_utils.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import warnings
2-
from typing import Callable, Optional, Union
2+
from typing import Any, Callable, Dict, Optional, Union
33

44
import pystac
55

66
from pystac_client.errors import IgnoredResultWarning
77

8-
Modifiable = Union[pystac.Collection, pystac.Item, pystac.ItemCollection, dict]
8+
Modifiable = Union[
9+
pystac.Collection, pystac.Item, pystac.ItemCollection, Dict[Any, Any]
10+
]
911

1012

1113
def call_modifier(

pystac_client/item_search.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242

4343
class GeoInterface(Protocol):
4444
@property
45-
def __geo_interface__(self) -> Dict[str, Any]:
46-
...
45+
def __geo_interface__(self) -> Dict[str, Any]: ...
4746

4847

4948
DatetimeOrTimestamp = Optional[Union[datetime_, str]]

pystac_client/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.7.6"
1+
__version__ = "0.7.7"

tests/cassettes/test_cli/TestCLICollections.test_collections[inprocess].yaml

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/cassettes/test_cli/TestCLICollections.test_save[inprocess].yaml

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/cassettes/test_cli/TestCLISearch.test_altering_conforms_to[inprocess---clear-conforms-to].yaml

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/cassettes/test_cli/TestCLISearch.test_altering_conforms_to[inprocess---remove-conforms-to=ITEM_SEARCH].yaml

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)