Skip to content
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

Update to pystac v1.10 #661

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
os:
- ubuntu-latest
- windows-latest
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Changed

- Updated to **pystac** v1.10.0 [#661](https://github.com/stac-utils/pystac-client/pull/661)

## [v0.7.6]

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ license = { text = "Apache-2.0" }
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Natural Language :: English",
"Development Status :: 4 - Beta",
Expand All @@ -28,7 +28,7 @@ classifiers = [
requires-python = ">=3.8"
dependencies = [
"requests>=2.28.2",
"pystac[validation]>=1.8.2",
"pystac[validation]>=1.10.0",
"python-dateutil>=2.8.2",
]
dynamic = ["version"]
Expand Down
3 changes: 3 additions & 0 deletions pystac_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import pystac.utils
import pystac.validation
from pystac import CatalogType, Collection
from pystac.layout import HrefLayoutStrategy
from requests import Request

from pystac_client._utils import Modifiable, call_modifier
Expand Down Expand Up @@ -71,6 +72,7 @@ def __init__(
extra_fields: Optional[Dict[str, Any]] = None,
href: Optional[str] = None,
catalog_type: CatalogType = CatalogType.ABSOLUTE_PUBLISHED,
strategy: Optional[HrefLayoutStrategy] = None,
*,
modifier: Optional[Callable[[Modifiable], None]] = None,
**kwargs: Dict[str, Any],
Expand All @@ -83,6 +85,7 @@ def __init__(
extra_fields=extra_fields,
href=href,
catalog_type=catalog_type,
strategy=strategy,
**kwargs,
)
self.modifier = modifier
Expand Down
6 changes: 5 additions & 1 deletion pystac_client/collection_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
)

import pystac
import pystac.layout

from pystac_client._utils import Modifiable, call_modifier
from pystac_client.conformance import ConformanceClasses
Expand Down Expand Up @@ -47,11 +48,12 @@ def __init__(
keywords: Optional[List[str]] = None,
providers: Optional[List[pystac.Provider]] = None,
summaries: Optional[pystac.Summaries] = None,
assets: Optional[Dict[str, pystac.Asset]] = None,
strategy: Optional[pystac.layout.HrefLayoutStrategy] = None,
*,
modifier: Optional[Callable[[Modifiable], None]] = None,
**kwargs: Dict[str, Any],
):
# TODO(pystac==1.6.0): Add `assets` as a regular keyword
super().__init__(
id,
description,
Expand All @@ -65,6 +67,8 @@ def __init__(
keywords,
providers,
summaries,
assets,
strategy,
**kwargs,
)
# error: Cannot assign to a method [assignment]
Expand Down
Loading