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

[CI/CD] Add PyPI release workflow to dev branch #2675

Merged
merged 1 commit into from
Dec 24, 2023
Merged

[CI/CD] Add PyPI release workflow to dev branch #2675

merged 1 commit into from
Dec 24, 2023

Conversation

MichaIng
Copy link
Member

@MichaIng MichaIng commented Dec 23, 2022

and apply alpha "a1" version suffix while testing build and upload to testpypi.

When this works well, beta releases can be done with "bX" suffix to real PyPI, from a new beta branch.

ToDo

  • Switch from TestPyPI to PyPI
  • If everyone agrees, bump version to 0.43.1b1 for first beta release, to allow pip install -U --pre motioneye upgrades for those which installed v0.43.0 directly from this repo's dev branch already.

@MichaIng
Copy link
Member Author

MichaIng commented Dec 23, 2022

Looks good: https://test.pypi.org/project/motioneye/0.43.0a1/#files

Little issue: Since the version of current dev branch is 0.43.0, indicating a stable release (no pre-release suffix), pip install -U --pre motioneye wouldn't apply the update. So for this to work for everyone who did already install the version from dev branch, we'd need to use e.g. 0.43.1b1 as first beta release. But I'll verify this behaviour.

EDIT: Verified:

pip install -U --pre -i https://test.pypi.org/simple/ motioneye

works from v0.43.0.dev202206070118 but not from v0.43.0 when installed before via

pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'

@MichaIng MichaIng marked this pull request as ready for review December 23, 2022 06:04
@MichaIng MichaIng requested a review from tunkio December 23, 2022 06:10
This was linked to issues Dec 23, 2022
@MichaIng MichaIng mentioned this pull request Dec 23, 2022
@MichaIng MichaIng changed the title [CI/CD] Add PyPi release workflow to dev branch [CI/CD] Add PyPI release workflow to dev branch Dec 23, 2022
@MichaIng MichaIng force-pushed the pypi_release branch 2 times, most recently from e8657e2 to 77eabfa Compare March 12, 2023 22:16
@MichaIng
Copy link
Member Author

Upload to test.pypi.org successful: https://test.pypi.org/project/motioneye/0.43.1a1/

Apply beta "b1" version suffix for a pre-release on PyPI.

Bump version string to 0.43.1b1 for simpler upgrades from 0.43.0, which did not have a pre-release suffix.

Update install instructions to pull pre-release from PyPI instead of GitHub.

Additionally add instructions to work around the "error: externally-managed-environment" error on recent Debian and Ubuntu versions.

Signed-off-by: MichaIng <[email protected]>
@MichaIng MichaIng merged commit 2862efe into dev Dec 24, 2023
16 checks passed
@MichaIng MichaIng deleted the pypi_release branch December 24, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

next release motionEye v0.43.1 release
1 participant