Skip to content

Commit 2f57a92

Browse files
Jon Duckworthdependabot[bot]lossyrobvincentsaragofnattino
authored
Merge v1.2.0 changes into release branch (#664)
* build(deps): bump ipython from 7.25.0 to 7.26.0 (#592) Bumps [ipython](https://github.com/ipython/ipython) from 7.25.0 to 7.26.0. - [Release notes](https://github.com/ipython/ipython/releases) - [Commits](ipython/ipython@7.25.0...7.26.0) --- updated-dependencies: - dependency-name: ipython dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump nbsphinx from 0.8.6 to 0.8.7 Bumps [nbsphinx](https://github.com/spatialaudio/nbsphinx) from 0.8.6 to 0.8.7. - [Release notes](https://github.com/spatialaudio/nbsphinx/releases) - [Changelog](https://github.com/spatialaudio/nbsphinx/blob/master/NEWS.rst) - [Commits](spatialaudio/nbsphinx@0.8.6...0.8.7) --- updated-dependencies: - dependency-name: nbsphinx dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Avoid implicit re-exports (#591) * Remove implicit re-exports * Enable mypy strict mode * Update CHANGELOG for #591 * build(deps): bump orjson from 3.6.0 to 3.6.1 (#596) Bumps [orjson](https://github.com/ijl/orjson) from 3.6.0 to 3.6.1. - [Release notes](https://github.com/ijl/orjson/releases) - [Changelog](https://github.com/ijl/orjson/blob/master/CHANGELOG.md) - [Commits](ijl/orjson@3.6.0...3.6.1) --- updated-dependencies: - dependency-name: orjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump pre-commit from 2.13.0 to 2.14.0 (#600) Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 2.13.0 to 2.14.0. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v2.13.0...v2.14.0) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump types-orjson from 0.1.1 to 3.6.0 (#599) Bumps [types-orjson](https://github.com/python/typeshed) from 0.1.1 to 3.6.0. - [Release notes](https://github.com/python/typeshed/releases) - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-orjson dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump types-python-dateutil from 0.1.4 to 0.1.6 (#598) Bumps [types-python-dateutil](https://github.com/python/typeshed) from 0.1.4 to 0.1.6. - [Release notes](https://github.com/python/typeshed/releases) - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-python-dateutil dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * exclude tests from package distribution (#604) * exclude tests from package distribution * update changelog * Get link title from target, when possible (#607) * Get link title from target, when possible * Update CHANGELOG for #607 * Add tests for serialization and title in init * Better control on subfolders in `generate_subcatalogs` (#595) * LayoutTemplate.get_template_values -> .substitute * test that template elements can be merged in a subdir * fix test to use "/" as separator in template * fix docs on the use of "/" as template path separator * add changes to CHANGELOG.md * build(deps): bump orjson from 3.6.1 to 3.6.3 (#610) Bumps [orjson](https://github.com/ijl/orjson) from 3.6.1 to 3.6.3. - [Release notes](https://github.com/ijl/orjson/releases) - [Changelog](https://github.com/ijl/orjson/blob/master/CHANGELOG.md) - [Commits](ijl/orjson@3.6.1...3.6.3) --- updated-dependencies: - dependency-name: orjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Apply StacIO instance from root in Catalog.set_root (#590) * Use root StacIO in Catalog.set_root * Add "public" Catalog.stac_io property * Update CHANGELOG for #590 * Revert "Add "public" Catalog.stac_io property" This reverts commit 9c229d0. * Fix some docstrings in catalog.py * Fix remaining Catalog.stac_io reference * Remove outdated CHANGELOG entry * Update PR template for main branch rename (#613) * build(deps): bump black from 21.7b0 to 21.8b0 (#614) Bumps [black](https://github.com/psf/black) from 21.7b0 to 21.8b0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/commits) --- updated-dependencies: - dependency-name: black dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump codecov/codecov-action from 2.0.2 to 2.0.3 (#612) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.0.2 to 2.0.3. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md) - [Commits](codecov/codecov-action@v2.0.2...v2.0.3) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump ipython from 7.26.0 to 7.27.0 (#615) * build(deps): bump ipython from 7.26.0 to 7.27.0 Bumps [ipython](https://github.com/ipython/ipython) from 7.26.0 to 7.27.0. - [Release notes](https://github.com/ipython/ipython/releases) - [Commits](ipython/ipython@7.26.0...7.27.0) --- updated-dependencies: - dependency-name: ipython dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update Python 3.10 CI version * Use stable toolchain for orjson build Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Duckworth <[email protected]> * build(deps): bump pre-commit from 2.14.0 to 2.14.1 (#616) Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 2.14.0 to 2.14.1. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v2.14.0...v2.14.1) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump types-python-dateutil from 0.1.6 to 2.8.0 (#620) Bumps [types-python-dateutil](https://github.com/python/typeshed) from 0.1.6 to 2.8.0. - [Release notes](https://github.com/python/typeshed/releases) - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-python-dateutil dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump pre-commit from 2.14.1 to 2.15.0 (#621) Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 2.14.1 to 2.15.0. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v2.14.1...v2.15.0) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Use Sequence for annotations for label classes (#627) * Use Sequence for annotations for label classes Per https://mypy.readthedocs.io/en/stable/common_issues.html#variance, `List` is invariant, so the LabelClasses.classes type annotation is unncessarily strict. This commit relaxes the type annotation to use `Sequence`, including a simple unit test. * Update CHANGELOG for #627 * build(deps): bump codecov/codecov-action from 2.0.3 to 2.1.0 (#623) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.0.3 to 2.1.0. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md) - [Commits](codecov/codecov-action@v2.0.3...v2.1.0) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump doc8 from 0.9.0 to 0.9.1 (#628) Bumps [doc8](https://github.com/pycqa/doc8) from 0.9.0 to 0.9.1. - [Release notes](https://github.com/pycqa/doc8/releases) - [Commits](PyCQA/doc8@0.9.0...0.9.1) --- updated-dependencies: - dependency-name: doc8 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump sphinx from 4.1.2 to 4.2.0 (#624) Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.1.2 to 4.2.0. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](sphinx-doc/sphinx@v4.1.2...v4.2.0) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump black from 21.8b0 to 21.9b0 (#625) Bumps [black](https://github.com/psf/black) from 21.8b0 to 21.9b0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/commits) --- updated-dependencies: - dependency-name: black dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump ipython from 7.27.0 to 7.28.0 (#629) Bumps [ipython](https://github.com/ipython/ipython) from 7.27.0 to 7.28.0. - [Release notes](https://github.com/ipython/ipython/releases) - [Commits](ipython/ipython@7.27.0...7.28.0) --- updated-dependencies: - dependency-name: ipython dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump jsonschema from 3.2.0 to 4.0.1 (#630) Bumps [jsonschema](https://github.com/Julian/jsonschema) from 3.2.0 to 4.0.1. - [Release notes](https://github.com/Julian/jsonschema/releases) - [Changelog](https://github.com/Julian/jsonschema/blob/main/CHANGELOG.rst) - [Commits](python-jsonschema/jsonschema@v3.2.0...v4.0.1) --- updated-dependencies: - dependency-name: jsonschema dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump coverage from 5.5 to 6.0 (#632) Bumps [coverage](https://github.com/nedbat/coveragepy) from 5.5 to 6.0. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@coverage-5.5...6.0) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump orjson from 3.6.3 to 3.6.4 (#631) Bumps [orjson](https://github.com/ijl/orjson) from 3.6.3 to 3.6.4. - [Release notes](https://github.com/ijl/orjson/releases) - [Changelog](https://github.com/ijl/orjson/blob/master/CHANGELOG.md) - [Commits](ijl/orjson@3.6.3...3.6.4) --- updated-dependencies: - dependency-name: orjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump coverage from 6.0 to 6.0.1 (#636) Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.0 to 6.0.1. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@6.0...6.0.1) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump flake8 from 3.9.2 to 4.0.1 (#637) Bumps [flake8](https://github.com/pycqa/flake8) from 3.9.2 to 4.0.1. - [Release notes](https://github.com/pycqa/flake8/releases) - [Commits](PyCQA/flake8@3.9.2...4.0.1) --- updated-dependencies: - dependency-name: flake8 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump types-orjson from 3.6.0 to 3.6.1 (#640) Bumps [types-orjson](https://github.com/python/typeshed) from 3.6.0 to 3.6.1. - [Release notes](https://github.com/python/typeshed/releases) - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-orjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump jsonschema from 4.0.1 to 4.1.1 (#643) Bumps [jsonschema](https://github.com/Julian/jsonschema) from 4.0.1 to 4.1.1. - [Release notes](https://github.com/Julian/jsonschema/releases) - [Changelog](https://github.com/Julian/jsonschema/blob/main/CHANGELOG.rst) - [Commits](python-jsonschema/jsonschema@v4.0.1...v4.1.1) --- updated-dependencies: - dependency-name: jsonschema dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump types-python-dateutil from 2.8.0 to 2.8.2 (#642) Bumps [types-python-dateutil](https://github.com/python/typeshed) from 2.8.0 to 2.8.2. - [Release notes](https://github.com/python/typeshed/releases) - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-python-dateutil dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump coverage from 6.0.1 to 6.0.2 (#639) Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@6.0.1...6.0.2) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump jsonschema from 4.1.1 to 4.1.2 (#644) Bumps [jsonschema](https://github.com/Julian/jsonschema) from 4.1.1 to 4.1.2. - [Release notes](https://github.com/Julian/jsonschema/releases) - [Changelog](https://github.com/Julian/jsonschema/blob/main/CHANGELOG.rst) - [Commits](python-jsonschema/jsonschema@v4.1.1...v4.1.2) --- updated-dependencies: - dependency-name: jsonschema dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Revert "Apply StacIO instance from root in Catalog.set_root (#590)" (#633) This reverts commit 5ddfa83. * Extension/datacube - added variable property (#645) * Extension/datacube - added variable property * Extension/datacube - complied with pre-commit hooks * Extension/datacube - applied suggest changes from pr #645 * Extension/datacube - applied suggest changes from pr #645 Co-authored-by: Thomas Li Fredriksen <[email protected]> * build(deps): bump coverage from 6.0.2 to 6.1.1 (#650) Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.0.2 to 6.1.1. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@6.0.2...6.1.1) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump black from 21.9b0 to 21.10b0 (#649) Bumps [black](https://github.com/psf/black) from 21.9b0 to 21.10b0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/commits) --- updated-dependencies: - dependency-name: black dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Extension/Table - Added extension (#646) * Extension/table - created extension * Extension/table - Added extension hook. Added unittests * Extension/table - Removed deepcopy usage * Extension/table - Implemented changes proposed in PR #646 * Extension/table - Updated docs for PR #646 * Extension/table - Updated changelog for PR #646 Co-authored-by: Thomas Li Fredriksen <[email protected]> * build(deps): bump ipython from 7.28.0 to 7.29.0 (#648) Bumps [ipython](https://github.com/ipython/ipython) from 7.28.0 to 7.29.0. - [Release notes](https://github.com/ipython/ipython/releases) - [Commits](ipython/ipython@7.28.0...7.29.0) --- updated-dependencies: - dependency-name: ipython dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump jsonschema from 4.1.2 to 4.2.0 (#651) Bumps [jsonschema](https://github.com/Julian/jsonschema) from 4.1.2 to 4.2.0. - [Release notes](https://github.com/Julian/jsonschema/releases) - [Changelog](https://github.com/Julian/jsonschema/blob/main/CHANGELOG.rst) - [Commits](python-jsonschema/jsonschema@v4.1.2...v4.2.0) --- updated-dependencies: - dependency-name: jsonschema dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump jsonschema from 4.2.0 to 4.2.1 (#655) Bumps [jsonschema](https://github.com/Julian/jsonschema) from 4.2.0 to 4.2.1. - [Release notes](https://github.com/Julian/jsonschema/releases) - [Changelog](https://github.com/Julian/jsonschema/blob/main/CHANGELOG.rst) - [Commits](python-jsonschema/jsonschema@v4.2.0...v4.2.1) --- updated-dependencies: - dependency-name: jsonschema dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Use stable Python 3.10 in CI (#656) * Use stable python 3.10 in CI * Add CHANGELOG entry for 656 * Update README.md Co-authored-by: Pete Gadomski <[email protected]> * Update .github/workflows/continuous-integration.yml Co-authored-by: Pete Gadomski <[email protected]> Co-authored-by: Pete Gadomski <[email protected]> * Packaging: Add Trove Classifier for Python 3.10 (#659) * gitignore .python-version file (#647) * Gitignore .python-version file * Add CHANGELOG entry for #647 * Fix string enum serialization (#654) * Add failing test for RelType serialization * Fix serialization of string Enum classes * Add CHANGELOG entry for 654 * Use assertEqual instead of assert + == * Use StringEnum in remaining classes inheriting from str, Enum * Add an extra SELF_CONTAINED catalog test (#658) * Add an extra SELF_CONTAINED catalog test * Improve unit test * Run pre-commit * Make linter happy * Update test to avoid checking 'self' link 'self' link is always absolute; PySTAC avoids writing the link if the Catalog is self contained or relative published (besides the root catalog in the latter case). * Inline test issue-specific catalog; check raw json * Set root on resolved links when setting on Catalog When setting the root on a Catalog, also set the root on any child or item objects that are resolved. This handles the case where child items and catalogs were created, added to a catalog, and then that catalog added to another catalog, invalidating the originally set root links of the leaf items and catalogs. * Close file properly in test * Message which catalog failed for better debugging * Don't recursively clear the root of children/items When clearing the root link of a Catalog, avoid clearing the root link of the children/items. This is to avoid the root link clearing in the "clone" method to avoid touching the un-cloned linked STAC Objects. * Use STACObject.set_root in full_copy This avoids logic in the child class implementations that are incompatible with the full_copy logic, such as the Catalog's call of set_root on of child and item links. This crawling logic is handled by full_copy itself. * Update CHANGELOG Co-authored-by: Rob Emanuele <[email protected]> * build(deps): bump coverage from 6.1.1 to 6.1.2 (#660) Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.1.1 to 6.1.2. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@6.1.1...6.1.2) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump sphinx from 4.2.0 to 4.3.0 (#661) Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.2.0 to 4.3.0. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](sphinx-doc/sphinx@v4.2.0...v4.3.0) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump doc8 from 0.9.1 to 0.10.1 (#662) Bumps [doc8](https://github.com/pycqa/doc8) from 0.9.1 to 0.10.1. - [Release notes](https://github.com/pycqa/doc8/releases) - [Commits](PyCQA/doc8@0.9.1...0.10.1) --- updated-dependencies: - dependency-name: doc8 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Allow PySTAC to skip transforming hrefs to relative or absolute based on CatalogType (#663) * Use clone_item to determine preserve_dict Currently the clone_item parameter only affects the case where the items are pystac.Items. The analogous use for a list of Dicts representing the Items is by using preserve_dict if the Items should be "cloned". This allows users to use clone_item=False to speed up reading ItemCollections in the case that they are passing in a list of Dicts. * Take a Callable instead of a Type for set_default This shouldn't break any client code as a Type[StacIO] is itself a Callable[[], StacIO]. This allows flexibility in how we generate the StacIO object, which is useful in cases like mocking the StacIO object. * Add MockDefaultStacIO This allows the default StacIO to be set inside a context manager for tests that want to utilize a mock as the default StacIO. * Test ItemCollection.to_dict won't read item roots This test, which fails without a subsequent fix, tests that there should only be a single read operation when convering an ItemCollection to a dict. This test fails due to the root link being read for each item in the logic that determines if heirarchial links should be absolute or relative. * Allow link href transformation logic to be skipped This adds a new option to determine if a link's href should be transformed based on the link's owner's root catalog type. The current implementation always checks the link's owner for a root catalog, and if it exists and if that root catalog is of type RELATIVE_PUBLISHED or SELF_CONTAINED, and that link is a hierarchical link, then the link's href is transformed to be relative to the link's owner's root catalog. The default option is to maintain this behavior for the default to_dict method, along with the Catalog, Collection and Item to_dict methods; but this flag now allows users to skip this link href transformation, saving reads. The ItemCollection.to_dict method was modified to skip link transformation by default. If Items exist in an ItemCollection, the likely desired behavior is not to modify the link hrefs based on the root catalog type, and the result of transforming hrefs in situations where the ItemCollection does not itself have a root catalog results in a root link resolution for each Item, which can be very slow. * Update CHANGELOG * Bump to v1.2.0 (#653) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rob Emanuele <[email protected]> Co-authored-by: Vincent Sarago <[email protected]> Co-authored-by: Francesco Nattino <[email protected]> Co-authored-by: Pete Gadomski <[email protected]> Co-authored-by: Thomas Li Fredriksen <[email protected]> Co-authored-by: Thomas Li Fredriksen <[email protected]> Co-authored-by: Tyler Battle <[email protected]> Co-authored-by: Grigory <[email protected]>
1 parent 0e4a87e commit 2f57a92

Some content is hidden

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

50 files changed

+1254
-147
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
- [ ] Tests pass (run `scripts/test`)
1111
- [ ] Documentation has been updated to reflect changes, if applicable
1212
- [ ] This PR maintains or improves overall codebase code coverage.
13-
- [ ] Changes are added to the [CHANGELOG](https://github.com/stac-utils/pystac/blob/develop/CHANGELOG.md). See [the docs](https://pystac.readthedocs.io/en/latest/contributing.html#changelog) for information about adding to the changelog.
13+
- [ ] Changes are added to the [CHANGELOG](https://github.com/stac-utils/pystac/blob/main/CHANGELOG.md). See [the docs](https://pystac.readthedocs.io/en/latest/contributing.html#changelog) for information about adding to the changelog.

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
test:
1515
name: test
1616
runs-on: ${{ matrix.os }}
17-
continue-on-error: ${{ startsWith(matrix.python-version, '3.10')}}
1817
strategy:
1918
# Allow other matrix jobs to complete if 1 fails
2019
fail-fast: false
@@ -23,7 +22,7 @@ jobs:
2322
- "3.7"
2423
- "3.8"
2524
- "3.9"
26-
- "3.10.0-beta.3"
25+
- "3.10"
2726
os:
2827
- ubuntu-latest
2928
- windows-latest
@@ -38,13 +37,11 @@ jobs:
3837
python-version: ${{ matrix.python-version }}
3938

4039
- uses: actions-rs/toolchain@v1
41-
# No wheels exist for orjson on Python 3.10 on MacOS or Windows, and the Linux
42-
# wheels are sometimes not uploaded until after the package is initially
43-
# published. This sets up the Rust nightly toolchain so we can build the orjson
44-
# wheel.
40+
# Wheels for orjson on Python 3.10 are still spotty on MacOS or Windows. This sets up the Rust
41+
# toolchain so we can build the orjson wheel.
4542
if: ${{ startsWith(matrix.python-version, '3.10')}}
4643
with:
47-
toolchain: nightly-2021-04-27
44+
toolchain: stable
4845
override: true
4946
default: true
5047
profile: minimal
@@ -120,7 +117,7 @@ jobs:
120117
run: coverage xml --fail-under 0
121118

122119
- name: Upload All coverage to Codecov
123-
uses: codecov/codecov-action@v2.0.2
120+
uses: codecov/codecov-action@v2.1.0
124121
if: ${{ env.GITHUB_REPOSITORY }} == 'stac-utils/pystac'
125122
with:
126123
token: ${{ secrets.CODECOV_TOKEN }}
@@ -142,7 +139,7 @@ jobs:
142139
- "3.7"
143140
- "3.8"
144141
- "3.9"
145-
- "3.10.0-beta.3"
142+
- "3.10"
146143

147144
steps:
148145
- uses: actions/checkout@v2

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ ipython_config.py
106106
# pyenv
107107
# For a library or package, you might want to ignore these files since the code is
108108
# intended to run in multiple environments; otherwise, check them in:
109-
# .python-version
109+
.python-version
110110

111111
# pipenv
112112
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
113113
# However, in case of collaboration, if having platform-specific dependencies or dependencies
114114
# having no cross-platform support, pipenv may install dependencies that don't work, or not
115115
# install all needed dependencies.
116-
#Pipfile.lock
116+
# Pipfile.lock
117117

118118
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
119119
__pypackages__/

CHANGELOG.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,37 @@
1212

1313
### Deprecated
1414

15+
## [v1.2.0]
16+
17+
### Added
18+
19+
- Added Table-extension ([#646](https://github.com/stac-utils/pystac/pull/646))
20+
- Stable support for Python 3.10 ([#656](https://github.com/stac-utils/pystac/pull/656))
21+
- `.python-version` files are now ignored by Git ([#647](https://github.com/stac-utils/pystac/pull/647))
22+
- Added a flag to allow users to skip transforming hierarchical link HREFs based on root catalog type ([#663](https://github.com/stac-utils/pystac/pull/663))
23+
24+
### Removed
25+
26+
- Exclude `tests` from package distribution. This should make the package lighter ([#604](https://github.com/stac-utils/pystac/pull/604))
27+
28+
### Changed
29+
30+
- Enable [strict
31+
mode](https://mypy.readthedocs.io/en/latest/command_line.html?highlight=strict%20mode#cmdoption-mypy-strict)
32+
for `mypy` ([#591](https://github.com/stac-utils/pystac/pull/591))
33+
- Links will get their `title` from their target if no `title` is provided ([#607](https://github.com/stac-utils/pystac/pull/607))
34+
- Relax typing on `LabelClasses` from `List` to `Sequence` ([#627](https://github.com/stac-utils/pystac/pull/627))
35+
- Upgraded datacube-extension to version 2.0.0 ([#645](https://github.com/stac-utils/pystac/pull/645))
36+
- By default, ItemCollections will not modify Item HREFs based on root catalog type to avoid performance costs of root link reads ([#663](https://github.com/stac-utils/pystac/pull/663))
37+
38+
### Fixed
39+
40+
- `generate_subcatalogs` can include multiple template values in a single subfolder layer
41+
([#595](https://github.com/stac-utils/pystac/pull/595))
42+
- Avoid implicit re-exports ([#591](https://github.com/stac-utils/pystac/pull/591))
43+
- Fix issue that caused incorrect root links when constructing multi-leveled catalogs ([#658](https://github.com/stac-utils/pystac/pull/658))
44+
- Regression where string `Enum` values were not serialized properly in methods like `Link.to_dict` ([#654](https://github.com/stac-utils/pystac/pull/654))
45+
1546
## [v1.1.0]
1647

1748
### Added
@@ -494,7 +525,8 @@ use `Band.create`
494525

495526
Initial release.
496527

497-
[Unreleased]: <https://github.com/stac-utils/pystac/compare/v1.1.0..main>
528+
[Unreleased]: <https://github.com/stac-utils/pystac/compare/v1.2.0..main>
529+
[v1.2.0]: <https://github.com/stac-utils/pystac/compare/v1.1.0..v1.2.0>
498530
[v1.1.0]: <https://github.com/stac-utils/pystac/compare/v1.0.1..v1.1.0>
499531
[v1.0.1]: <https://github.com/stac-utils/pystac/compare/v1.0.0..v1.0.1>
500532
[v1.0.0]: <https://github.com/stac-utils/pystac/compare/v1.0.0-rc.3..v1.0.0>

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ for Python versions. This means that users can expect support for Python 3.7 to
1616
removed from the `main` branch after Dec 26, 2021 and therefore from the next release
1717
after that date.
1818

19-
*Support for Python >= 3.10 should be considered experimental
20-
until further notice.*
19+
Note that while we support Python 3.10.\*, wheels for the `orjson` library are not always immediately available for all
20+
platforms. If you install PySTAC with the `orjson` extra, you may need to have the Rust toolchain installed (e.g. via [rustup](https://rustup.rs/)) in order to
21+
build the package from source.
2122

2223
PySTAC has a single required dependency (`python-dateutil`).
2324
PySTAC can be installed from pip or the source repository.

docs/api.rst

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,22 @@ AdditionalDimension
362362
:show-inheritance:
363363
:inherited-members:
364364

365+
VariableType
366+
~~~~~~~~~~~~
367+
368+
.. autoclass:: pystac.extensions.datacube.VariableType
369+
:members:
370+
:show-inheritance:
371+
:inherited-members:
372+
373+
Variable
374+
~~~~~~~~
375+
376+
.. autoclass:: pystac.extensions.datacube.Variable
377+
:members:
378+
:show-inheritance:
379+
:inherited-members:
380+
365381
DatacubeExtension
366382
~~~~~~~~~~~~~~~~~
367383

@@ -793,6 +809,39 @@ ItemScientificExtension
793809
:members:
794810
:show-inheritance:
795811

812+
Table Extension
813+
---------------
814+
815+
These classes are representations of the :stac-ext:`Table Extension Spec <tables>`.
816+
817+
TableExtension
818+
~~~~~~~~~~~~~~
819+
820+
.. autoclass:: pystac.extensions.table.TableExtension
821+
:members:
822+
:show-inheritance:
823+
824+
CollectionTableExtension
825+
~~~~~~~~~~~~~~~~~~~~~~~~
826+
827+
.. autoclass:: pystac.extensions.table.CollectionTableExtension
828+
:members:
829+
:show-inheritance:
830+
831+
ItemTableExtension
832+
~~~~~~~~~~~~~~~~~~
833+
834+
.. autoclass:: pystac.extensions.table.ItemTableExtension
835+
:members:
836+
:show-inheritance:
837+
838+
AssetTableExtension
839+
~~~~~~~~~~~~~~~~~~~
840+
841+
.. autoclass:: pystac.extensions.table.AssetTableExtension
842+
:members:
843+
:show-inheritance:
844+
796845
Timestamps Extension
797846
--------------------
798847

docs/concepts.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ To use them you can pass in a strategy to the normalize_hrefs call.
6969
Using templates
7070
'''''''''''''''
7171

72-
You can utilze template strings to determine the file paths of HREFs set on Catalogs,
72+
You can utilize template strings to determine the file paths of HREFs set on Catalogs,
7373
Collection or Items. These templates use python format strings, which can name
7474
the property or attribute of the item you want to use for replacing the template
7575
variable. For example:
@@ -84,7 +84,9 @@ variable. For example:
8484
8585
The above code will save items in subfolders based on the collection ID, year and month
8686
of it's datetime (or start_datetime if a date range is defined and no datetime is
87-
defined).
87+
defined). Note that the forward slash (``/``) should be used as path separator in the
88+
template string regardless of the system path separator (thus both in POSIX-compliant
89+
and Windows environments).
8890

8991
You can use dot notation to specify attributes of objects or keys in dictionaries for
9092
template variables. PySTAC will look at the object, it's ``properties`` and its

mypy.ini

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
[mypy]
2-
check_untyped_defs = True
3-
disallow_any_generics = True
4-
disallow_incomplete_defs = True
5-
disallow_subclassing_any = True
6-
disallow_untyped_calls = True
7-
disallow_untyped_decorators = True
8-
disallow_untyped_defs = True
9-
no_implicit_optional = True
102
show_error_codes = True
11-
strict_equality = True
12-
warn_redundant_casts = True
13-
warn_return_any = True
14-
warn_unused_configs = True
15-
warn_unused_ignores = True
3+
strict = True
164

175
[mypy-jsonschema.*]
186
ignore_missing_imports = True

pystac/__init__.py

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
11
"""
22
PySTAC is a library for working with SpatioTemporal Asset Catalogs (STACs)
33
"""
4+
__all__ = [
5+
"__version__",
6+
"STACError",
7+
"STACTypeError",
8+
"DuplicateObjectKeyError",
9+
"ExtensionAlreadyExistsError",
10+
"ExtensionNotImplemented",
11+
"ExtensionTypeError",
12+
"RequiredPropertyMissing",
13+
"STACValidationError",
14+
"MediaType",
15+
"RelType",
16+
"StacIO",
17+
"STACObject",
18+
"STACObjectType",
19+
"Link",
20+
"HIERARCHICAL_LINKS",
21+
"Catalog",
22+
"CatalogType",
23+
"Collection",
24+
"Extent",
25+
"SpatialExtent",
26+
"TemporalExtent",
27+
"Summaries",
28+
"CommonMetadata",
29+
"RangeSummary",
30+
"Item",
31+
"Asset",
32+
"ItemCollection",
33+
"Provider",
34+
"ProviderRole",
35+
"read_file",
36+
"read_dict",
37+
"write_file",
38+
"get_stac_version",
39+
"set_stac_version",
40+
]
441

542
from pystac.errors import (
643
STACError,
@@ -30,11 +67,11 @@
3067
Extent,
3168
SpatialExtent,
3269
TemporalExtent,
33-
Summaries,
3470
)
3571
from pystac.common_metadata import CommonMetadata
36-
from pystac.summaries import RangeSummary
37-
from pystac.item import Item, Asset
72+
from pystac.summaries import RangeSummary, Summaries
73+
from pystac.asset import Asset
74+
from pystac.item import Item
3875
from pystac.item_collection import ItemCollection
3976
from pystac.provider import ProviderRole, Provider
4077
import pystac.validation
@@ -50,6 +87,7 @@
5087
import pystac.extensions.sar
5188
import pystac.extensions.sat
5289
import pystac.extensions.scientific
90+
import pystac.extensions.table
5391
import pystac.extensions.timestamps
5492
import pystac.extensions.version
5593
import pystac.extensions.view
@@ -66,6 +104,7 @@
66104
pystac.extensions.sar.SAR_EXTENSION_HOOKS,
67105
pystac.extensions.sat.SAT_EXTENSION_HOOKS,
68106
pystac.extensions.scientific.SCIENTIFIC_EXTENSION_HOOKS,
107+
pystac.extensions.table.TABLE_EXTENSION_HOOKS,
69108
pystac.extensions.timestamps.TIMESTAMPS_EXTENSION_HOOKS,
70109
pystac.extensions.version.VERSION_EXTENSION_HOOKS,
71110
pystac.extensions.view.VIEW_EXTENSION_HOOKS,

0 commit comments

Comments
 (0)