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 version extension #1262

Merged
merged 14 commits into from
Oct 16, 2023
Merged

Update version extension #1262

merged 14 commits into from
Oct 16, 2023

Conversation

gadomski
Copy link
Member

@gadomski gadomski commented Oct 13, 2023

Related Issue(s):

Description:

Implement version v1.2.0. Most of it was easy, except for the whole "assets can't have links" part. That I implemented by splitting the extension functionality into BaseVersionExtension, which doesn't have link stuff, and VersionExtension, which inherits and does. Should be non-breaking?

Apologies for the diff explosion -- I couldn't resist updating import styles to align with #1259 when I saw the chance.

PR Checklist:

  • pre-commit hooks pass locally
  • Tests pass (run scripts/test)
  • Documentation has been updated to reflect changes, if applicable
  • This PR maintains or improves overall codebase code coverage.
  • Changes are added to the CHANGELOG. See the docs for information about adding to the changelog.

@gadomski gadomski self-assigned this Oct 13, 2023
@gadomski gadomski force-pushed the issues/1257-version-extension branch from 37282b3 to 8bf6cdc Compare October 13, 2023 18:42
@gadomski gadomski marked this pull request as ready for review October 13, 2023 18:42
@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Files Coverage Δ
pystac/catalog.py 93.44% <100.00%> (+0.05%) ⬆️
pystac/extensions/ext.py 96.64% <92.30%> (+0.11%) ⬆️
pystac/extensions/version.py 90.69% <87.27%> (-5.92%) ⬇️

📢 Thoughts on this report? Let us know!.

Copy link
Member

@jsignell jsignell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and I like the clean ups! Just one comment about nullibility

pystac/extensions/version.py Outdated Show resolved Hide resolved
@gadomski gadomski added this pull request to the merge queue Oct 16, 2023
Merged via the queue into main with commit 7bf4f6e Oct 16, 2023
19 checks passed
@gadomski gadomski deleted the issues/1257-version-extension branch October 16, 2023 21:11
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.

Update version extension to v1.2.0
2 participants