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 CD workflow for publishing to PyPi #661

Merged
merged 3 commits into from
Dec 15, 2023
Merged

Add CD workflow for publishing to PyPi #661

merged 3 commits into from
Dec 15, 2023

Conversation

barshaul
Copy link
Collaborator

@barshaul barshaul commented Dec 7, 2023

Rebased over #681 and #682

@barshaul barshaul force-pushed the pypi_release branch 30 times, most recently from 83c3909 to 524701f Compare December 13, 2023 14:41
@barshaul barshaul force-pushed the pypi_release branch 2 times, most recently from bb264eb to 4e56ebf Compare December 14, 2023 14:05
@barshaul barshaul marked this pull request as ready for review December 14, 2023 14:08
@barshaul barshaul requested a review from a team as a code owner December 14, 2023 14:08
@@ -38,7 +38,7 @@ runs:
- name: Install Python software dependencies
shell: bash
run: |
python3 -m ensurepip --upgrade
python3 -m ensurepip --upgrade || true
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

On some ubuntu platforms this command isn't allowed and we install pip in another way so we can skip it if it fails

if: matrix.build.PYPI_PUBLISH == true && !contains(matrix.build.RUNNER, 'self-hosted')
uses: actions/setup-python@v4
with:
python-version: "3.10"
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't we use 3.6, to ensure that we support it?

Copy link
Collaborator Author

@barshaul barshaul Dec 14, 2023

Choose a reason for hiding this comment

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

we're building for all python versions (8-12), but this stage is only required to have some local installs. anyway python3.8 setup isn't supported on some of the platforms, thus I chose this version

@@ -1,6 +1,6 @@
[package]
name = "pybushka"
version = "0.1.0"
version = "255.255.255"
Copy link
Contributor

Choose a reason for hiding this comment

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

revert

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's on purpose, I need to have some version that will be override by the workflow with the version tag. Cargo doesn't allow to put there some other place holder such as ${package_version) or x.x.x ...

@barshaul barshaul force-pushed the pypi_release branch 7 times, most recently from 9947926 to ec6c9f2 Compare December 15, 2023 10:08
@barshaul barshaul changed the title Pypi release Added CD workflow for publishing to PyPi Dec 15, 2023
@barshaul barshaul changed the title Added CD workflow for publishing to PyPi AddCD workflow for publishing to PyPi Dec 15, 2023
@barshaul barshaul changed the title AddCD workflow for publishing to PyPi Add CD workflow for publishing to PyPi Dec 15, 2023
@barshaul barshaul merged commit 9f40f7c into main Dec 15, 2023
11 checks passed
@barshaul barshaul deleted the pypi_release branch December 15, 2023 17:37
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.

2 participants