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

Switch stub versioning to calver #114

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Switch stub versioning to calver #114

merged 2 commits into from
Dec 19, 2023

Conversation

srittau
Copy link
Contributor

@srittau srittau commented Nov 2, 2023

@srittau
Copy link
Contributor Author

srittau commented Nov 2, 2023

Integration tests fail, see #113.

Edit: Or maybe not? I'm confused ...

@srittau srittau marked this pull request as ready for review November 2, 2023 17:08
Copy link
Contributor

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!

stub_uploader/get_version.py Outdated Show resolved Hide resolved
stub_uploader/get_version.py Outdated Show resolved Hide resolved
tests/test_unit.py Outdated Show resolved Hide resolved
tests/test_unit.py Show resolved Hide resolved
def compute_incremented_version(
version_spec: str, published_versions: list[Version]
def compute_stub_version(
version_spec: str, published_versions: list[Version], date: datetime.date
Copy link
Contributor

Choose a reason for hiding this comment

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

ignorable nit: should we try to give a more specific error if given date isn't in the future? (I know we'll error on the assert new_version > max_published, but that is a sort of catch-all)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We call it once with the current date, and it would make unit testing harder, so I would prefer not to check this here.

@srittau srittau requested a review from hauntsaninja December 3, 2023 12:56
@srittau
Copy link
Contributor Author

srittau commented Dec 18, 2023

Bumpity bump. I'd like to get this in this year if possible.

Copy link
Contributor

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks for bumping (my github notifications are a mess), this lgtm! I don't have write on this repo, so you'll need to merge

(I still think it would be nice to find a way to give a clearer error if this is run twice in the same day, but that's a non-blocking nit)

@srittau srittau merged commit f1b8ea7 into main Dec 19, 2023
6 checks passed
@srittau srittau deleted the calver branch December 19, 2023 07:36
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.

Communicating our versioning policy better
2 participants