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

Add automatic development releases to pypi #368

Merged
merged 10 commits into from
Feb 19, 2025
Merged

Conversation

TShapinsky
Copy link
Member

@TShapinsky TShapinsky commented Feb 13, 2025

Trigger:

  • When a successful suite of tests completes on develop branch

Steps:

  1. Pull list of releases from PyPi
  2. Check for any development release with the same version components as in the pyproject.toml (major, minor, patch, pre-release, post-release, etc.)
  3. If a development build already exists for this version increment the build number (0.4.0.dev3 -> 0.4.0.dev4)
  4. If not development build has been released, append .dev1 to the current version.
  5. Build and push to pypi

If this works you should be able to get the latest development release by running pip install --pre buildingmotif

@TShapinsky TShapinsky marked this pull request as ready for review February 14, 2025 20:11
@TShapinsky
Copy link
Member Author

See https://pypi.org/project/buildingmotif/#history now contains 0.4.0.dev1 and I have been able to install it by running pip install --pre buildingmotif

Copy link
Collaborator

@gtfierro gtfierro left a comment

Choose a reason for hiding this comment

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

This is cool. Thanks for doing this! I think this will be a huge help with dissemination and prototyping

@TShapinsky
Copy link
Member Author

@MatthewSteen does this look good to you now?

@TShapinsky TShapinsky merged commit fd1d17a into develop Feb 19, 2025
13 checks passed
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.

3 participants