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

chore(deps): update dependency pystac to v1 #436

Merged
merged 1 commit into from
May 24, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 12, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pystac (changelog) ==0.5.6 -> ==1.10.1 age adoption passing confidence

Release Notes

stac-utils/pystac (pystac)

v1.10.1

Compare Source

Fixed
  • Don't transform hrefs in Item.__getstate__ (#​1337)

v1.10.0

Compare Source

Added
  • Add validator input to STACObject.validate for inline reference of the validator to use (#​1320)
  • Add APILayoutStrategy (#​1294)
  • Allow setting a default layout strategy for Catalog (#​1295)
Changed
  • Update css for HTML display (#​1311)
  • Made item pickles smaller by changing how nested links are stored(#​1285)
  • Updated documentation code examples that use AWS S3 for file storage (#​1308)
Fixed
  • No longer use the datetime.utcnow method that has been deprecated in Python 3.12 (#​1283)

v1.9.0

Compare Source

Added
  • Simpler extension interface (#​1243)
  • More permissive schema_uri matching to allow future versions of extension schemas (#​1231)
  • Better error messages from jsonschema validation (#​1233)
  • validate_all_dict replaces the previous implementation of validate_all (i.e., validate_all was renamed to validate_all_dict, and validate_all was changed as described below) (#​1246)
  • Python 3.12 (#​1260)
Changed
  • validate_all now accepts a STACObject (in addition to accepting a dict, which is now deprecated), but prohibits supplying a value for href, which must be supplied only when supplying an object as a dict. Once validate_all removes support for an object as a dict, the href parameter will also be removed. (#​1246)
  • Report href when schema url resolution fails (#​1263)
  • Version extension updated to v1.2.0 (#​1262)
  • Datacube extension updated to v2.2.0 (#​1269)
Fixed
  • Typing of href arguments (#​1234)
  • Interactions between pytest-recording and the validator schema cache (#​1242)
  • Call registry when instantiating Draft7Validator (#​1240)
  • Migration for the classification, datacube, table, and timestamps extensions (#​1258)
  • Handling of bboxes and intervals arguments to SpatialExtent and TemporalExtent, respectively (#​1268)
Removed
Deprecated
  • ExtensionManagementMixin.validate_has_extension is replaced with ExtensionManagementMixin.ensure_has_extension. Calling ExtensionManagementMixin.validate_has_extension will raise a DeprecationWarning and call ExtensionManagementMixin.ensure_has_extension (#​1248)
  • validate_all for dicts; use validate_all_dict instead (#​1246)
  • Label extension (#​1270)

v1.8.4

Compare Source

Added
  • Permissive deserialization of Collection temporal extents (#​1222)
Fixed
Deprecated
  • pystac.validation.local_validator.LocalValidator (#​1215)

v1.8.3

Compare Source

Added
  • Allow to pass a Dict with field names and summary strategies to the fields parameter in the Summarizer constructor (#​1195)
Changed
  • Pin jsonschema version to <4.18 until regresssions are fixed
Fixed
  • Fix the documentation rendering of the fields parameter in the Summarizer constructor (#​1195)

v1.8.2

Compare Source

Fixed
  • Explicitly re-export HREF from link (#​1182)
  • Include fields-normalized.json in build (#​1188)

v1.8.1

Compare Source

Fixed
  • Include jsonschemas in package (#​1181)

v1.8.0

Compare Source

Added
  • sort_links_by_id to Catalog get_child() and modify_links to get_stac_objects() (#​1064)
  • *ids to Catalog and Collection get_items() for only including the provided ids in the iterator (#​1075)
  • recursive to Catalog and Collection get_items() to walk the sub-catalogs and sub-collections (#​1075)
  • MGRS Extension (#​1088)
  • All HTTP requests are logged when level is set to logging.DEBUG (#​1096)
  • set_parent to Catalog add_item and add_child to avoid overriding existing parents (#​1117, #​1155)
  • owner attribute to AssetDefinition in the item-assets extension (#​1110)
  • Windows \\ path delimiters are converted to POSIX style / delimiters (#​1125)
  • Updated raster extension to work with the item_assets extension's AssetDefinition objects (#​1110)
  • Classification extension (#​1093), with support for adding classification information to item_assets' AssetDefinitions and raster's RasterBand objects.
  • get_derived_from, add_derived_from and remove_derived_from to Items (#​1136)
  • ItemEOExtension.get_assets for getting assets filtered on band name or common_name (#​1140)
  • max_items and recursive to Catalog.validate_all (#​1141)
  • KML as a built in media type (#​1127)
  • move/copy/delete operations for local Assets (#​1158)
  • Latest core STAC spec jsonshemas are included in pytstac and used for validation (#​1165)
  • Xarray Assets Extension class (#​1161)
Changed
  • Include a copy of the fields.json file (for summaries) with each distribution of PySTAC (#​1045)
  • Make Catalog, Collection .get_assets() return a deepcopy (#​1087)
  • Removed documentation references to to_dict methods returning JSON (#​1074)
  • Expand support for previous extension schema URIs (#​1091)
  • Use pyproject.toml instead of setup.py (#​1100)
  • DefaultStacIO now raises an error if it tries to write to a non-local url (#​1107)
  • Allow instantiation of pystac objects even with "stac_extensions": null (#​1109)
  • Make Link.to_dict() only contain strings (#​1114)
  • Updated raster extension to work with the item_assets extension's AssetDefinition objects (#​1110)
  • Return all validation errors from validation methods of JsonSchemaSTACValidator (#​1120)
  • EO extension updated to v1.1.0 (#​1131)
  • Use id in STACTypeError instead of entire dict (#​1126)
  • Make sure that get_items is backwards compatible (#​1139)
  • Make _repr_html_ look like _repr_json_ output (#​1142)
  • Improved error message when .ext is called on a Collection (#​1157)
  • add_child and add_item return a Link object instead of None (#​1160)
  • add_children and add_items return a list of Link objects instead of None (#​1160)
  • Include collection assets in make_all_asset_hrefs_relative/absolute (#​1168)
  • Use cassettes for all tests that pull files from remote (#​1162)
  • Landsat tutorial notebook updated to collection 2 sources (#​1152)
Fixed
  • Include the item's root when resolving its collection link (#​1171)
Deprecated
  • pystac.summaries.FIELDS_JSON_URL (#​1045)
  • Catalog get_item(). Use get_items(id) instead (#​1075)
  • Catalog and Collection get_all_items. Use get_items(recursive=True) instead (#​1075)

v1.7.3

Compare Source

Fixed
  • Duplicate self links in Items (#​1103)

v1.7.2

Compare Source

Fixed
  • Projection extension v1.0.0 support (#​1081)

v1.7.1

Compare Source

Changed
  • Use ruff instead of isort and flake8 (#​1034)
  • Update links in doc notebooks to not point to specific versions (#​1039)
Fixed
  • Item __geo_interface__ now correctly returns a Feature, rather than only the Geometry (#​1049)

v1.7.0

Compare Source

Added
  • Additional util methods now_in_utc and now_to_rfc3339_str (#​760)
  • media_type and role filtering to Item and Collection get_assets() method (#​936)
  • Asset.has_role (#​936)
  • Enum MediaType entry for flatgeobuf (discussion) (#​938)
  • Custom header support to DefaultStacIO (#​889)
  • Python 3.11 checks in CI (#​908)
  • Ability to only update resolved links when using Catalog.normalize_hrefs and Catalog.normalize_and_save, via a new skip_unresolved argument (#​900)
  • Optional argument timespec to utils.datetime_to_str (#​929)
  • isort (#​961)
  • AsIsLayoutStrategy (#​919)
  • __geo_interface__ for items (#​885)
  • Optional strategy parameter to catalog.add_items() (#​967)
  • start_datetime and end_datetime arguments to the Item constructor (#​918)
  • RetryStacIO (#​986)
  • STACObject.remove_hierarchical_links and Link.is_hierarchical (#​999)
  • extra_fields to AssetDefinition in the item assets extension (#​1003)
  • Catalog.fully_resolve (#​1001)
  • A DeprecatedWarning when deserializing an Item or Collection to a STAC object via the from_dict() method (1006)
  • Support for relative stac extension paths via make_absolute_href (#​884)
Changed
  • Projection extension updated to use v1.1.0 (#​989).
  • Update Grid Extension support to v1.1.0 and fix issue with grid:code prefix validation (#​925)
  • Switch to pytest (#​939)
  • Use from __future__ import annotations for type signatures (#​962)
  • Use TypeVar for alternate constructors (#​983)
  • Behavior when required fields are missing in Item.from_dict (#​994)
  • By default, ItemCollection now clones items in iterator (clone_items=True) (#​1016)
Deprecated
  • TemplateError in layout.py deprecated in favor of duplicate in errors.py (#​1018)
Fixed
  • Creating dictionaries from Catalogs and Collections without root hrefs now creates valid STAC (#​896)
  • Dependency resolution when installing requirements-dev.txt (#​897)
  • Serializing optional Collection attributes (#​916)
  • A couple non-running tests (#​912)
  • Filtering on media_type in get_links() and get_single_link() (#​966)
  • Missing hrefs and duplicate Item fields in html generated by _repr_html_() (#​975)
  • Allow subclasses in a few more clone methods (#​983)
  • Pass href from Item.from_dict to constructor (#​984)
  • Serializing the table extension (#​992)

v1.6.1

Compare Source

Fixed
  • Pins jsonschema to >=4.0.1 to avoid a RefResolutionError when validating some extensions (#​857)
  • Fixed bug in custom StacIO example in documentation (#​879)

v1.6.0

Compare Source

Removed

v1.5.0

Compare Source

Added
  • Enum MediaType entry for PDF documents (#​758)
  • Enum MediaType entry for HTML documents (#​816)
  • Updated Link to obtain stac_io from owner root (#​762)
  • Replace test.com with special-use domain name. (#​769)
  • Updated AssetDefinition to have create, apply methods (#​768)
  • Add Grid Extension support (#​799)
  • Rich HTML representations for Jupyter Notebook display (#​743)
  • Add assets argument to Item and Collection init methods to allow adding Assets during object initialization (#​834)
Changed
  • Updated Raster Extension from v1.0.0 to v1.1.0 (#​809)
Fixed
  • Mutating Asset.extra_fields on a cloned Asset also mutated the original asset (#​826)
  • "How to create STAC catalogs" tutorial (#​775)
  • Add a variables argument, to accompany dimensions, for the apply method of stac objects extended with datacube (#​782)
  • Deepcopy collection properties on clone. Implement clone method for Summaries (#​794)
  • Collection assets are now preserved when using Collection.clone (#​834)
  • Docstrings for StacIO.read_text and StacIO.write_text now match the type annotations for the source argument. (#​835)
  • UTC timestamps now always have tzutc timezone even when system timezone is set to UTC. (#​848)

v1.4.0

Compare Source

Added
  • Experimental support for Python 3.11 (#​731)
  • Accept PathLike objects in StacIO I/O methods, pystac.read_file and pystac.write_file (#​728)
  • Support for Storage Extension (#​745)
  • Optional StacIO instance as argument to Catalog.save/Catalog.normalize_and_save (#​751)
  • More thorough docstrings for pystac.utils functions and classes (#​735)
Changed
  • Label Extension version updated to v1.0.1 (#​726)
  • Option to filter by media_type in STACObject.get_links and STACObject.get_single_link
    (#​704)
Fixed
  • Self links no longer included in Items for "relative published" catalogs (#​725)
  • Adding New and Custom Extensions tutorial now up-to-date with new extensions API (#​724)
  • Clarify error message when using PropertyExtension.ext(..., add_if_missing=True) on an Asset
    with no owner (#​746)
  • Type errors when initializing TemporalExtent using a list of datetime objects (#​744)

v1.3.0

Compare Source

Added
  • Type annotations for instance attributes on all classes (#​705)
  • extensions.datacube.Variable.to_dict method (#​699])
  • Clarification of possible errors when using .ext to extend an object (#​701)
  • Downloadable documentation as zipped HTML (#​715)
Removed
  • Downloadable documentation in ePub format (#​715)
Changed
  • Reorganize docs and switch to PyData theme (#​687)
Fixed
  • Quickstart tutorial is now up-to-date with all package changes (#​674)
  • Creating absolute URLs from absolute URLs (#​697])
  • Serialization error when using pystac.extensions.file.MappingObject (#​700)
  • Use PropertiesExtension._get_property to properly set return type in TableExtension (#​712)
  • DatacubeExtension.variables now has a setter (#​699])
  • Landsat STAC tutorial is now up-to-date with all package changes (#​692)
  • Paths to sub-catalog files when using Catalog.save (#​714)
  • Link to PySTAC Introduction tutorial in tutorials index page (#​719)

v1.2.0

Compare Source

Added
  • Added Table-extension (#​646)
  • Stable support for Python 3.10 (#​656)
  • .python-version files are now ignored by Git (#​647)
  • Added a flag to allow users to skip transforming hierarchical link HREFs based on root catalog type (#​663)
Removed
  • Exclude tests from package distribution. This should make the package lighter (#​604)
Changed
  • Enable strict
    mode

    for mypy (#​591)
  • Links will get their title from their target if no title is provided (#​607)
  • Relax typing on LabelClasses from List to Sequence (#​627)
  • Upgraded datacube-extension to version 2.0.0 (#​645)
  • By default, ItemCollections will not modify Item HREFs based on root catalog type to avoid performance costs of root link reads (#​663)
Fixed
  • generate_subcatalogs can include multiple template values in a single subfolder layer
    (#​595)
  • Avoid implicit re-exports (#​591)
  • Fix issue that caused incorrect root links when constructing multi-leveled catalogs (#​658)
  • Regression where string Enum values were not serialized properly in methods like Link.to_dict (#​654)

v1.1.0

Compare Source

Added
  • Include type information during packaging for use with e.g. mypy (#​579)
  • Optional dest_href argument to Catalog.save to allow saving Catalog instances to
    locations other than their self href (#​565)
Changed

v1.0.1

Compare Source

Changed
  • HREFs in Link objects with rel == "self" are converted to absolute HREFs (#​574)

v1.0.0

Compare Source

Added
  • ProjectionExtension.crs_string to provide a single string to describe the coordinate reference system (CRS).
    Useful because projections can be defined by EPSG code, WKT, or projjson.
    (#​548)
  • SAR Extension summaries(#​556)
  • Migration for sar:type -> sar:product_type and sar:polarization ->
    sar:polarizations for pre-0.9 catalogs
    (#​556)
  • Migration from eo:epsg -> proj:epsg for pre-0.9 catalogs (#​557)
  • Collection summaries for Point Cloud Extension (#​558)
  • PhenomenologyType enum for recommended values of pc:type & SchemaType enum for
    valid values of type in Point Cloud Schema
    Objects

    (#​548)
  • to_dict and equality definition for extensions.item_asset.AssetDefinition (#​564)
  • Asset.common_metadata property (#​563)
Changed
  • The from_dict method on STACObjects will set the object's root link when a root parameter is present. An ItemCollection from_dict with a root parameter will set the root on each of it's Items. (#​549)
  • Calling ExtensionManagementMixin.validate_has_extension with add_if_missing = True
    on an ownerless Asset will raise a STACError (#​554)
  • PointcloudSchema -> Schema, PointcloudStatistic -> Statistic for consistency
    with naming convention in other extensions
    (#​548)
  • RequiredPropertyMissing always raised when trying to get a required property that is
    None (STACError or KeyError was previously being raised in some cases)
    (#​561)
Fixed
  • Added Collections as a type that can be extended for extensions whose fields can appear in collection summaries (#​547)
  • Allow resolved self links when getting an object's self href (#​555)
  • Fixed type annotation on SummariesLabelExtension.label_properties setter (#​562)
  • Allow comparable types with alternate parameter naming of lt method to pass structural type linting for RangeSummary (#​562)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/pystac-1.x branch 2 times, most recently from 15c009a to 109f409 Compare June 30, 2023 20:36
@renovate renovate bot changed the title Update dependency pystac to v1 chore(deps): update dependency pystac to v1 Oct 26, 2023
@anikaweinmann anikaweinmann merged commit 6b485d5 into main May 24, 2024
8 checks passed
@renovate renovate bot deleted the renovate/pystac-1.x branch May 24, 2024 09:30
@anikaweinmann anikaweinmann added this to the 4.14.0 milestone May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant