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

Script and CI action to validate backwards compatibility #205

Merged
merged 5 commits into from
Sep 14, 2022

Conversation

amyreese
Copy link
Member

Adds a simple script that parses the PyPI JSON API for public (non-yanked) releases
of usort >= 1.0, and then checks those old versions against sorting from the
current/local version, and passes only if all of those previous versions produce
no changes.

Example output:

$ make backcompat
python check_backcompat.py
discovered versions 1.0.4, 1.0.2, 1.0.1, 1.0.0

sorting with local version ...
usort, version 1.0.3.dev47+g6cc5725.d20220913
done

checking version 1.0.4 ...
usort, version 1.0.4
clean

checking version 1.0.2 ...
usort, version 1.0.2
clean

checking version 1.0.1 ...
usort, version 1.0.1
clean

checking version 1.0.0 ...
usort, version 1.0.0
clean

success!

@amyreese amyreese added this to the 1.0.x milestone Sep 14, 2022
@amyreese amyreese requested a review from thatch September 14, 2022 00:05
@amyreese amyreese self-assigned this Sep 14, 2022
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 14, 2022
@amyreese amyreese merged commit 7af32cb into facebook:main Sep 14, 2022
@amyreese amyreese deleted the backwards-compat branch September 14, 2022 00:31
amyreese added a commit to amyreese/usort that referenced this pull request Sep 14, 2022
Script and CI action to validate backwards compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants