-
Notifications
You must be signed in to change notification settings - Fork 70
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
Conversation
83c3909
to
524701f
Compare
e744eca
to
e5d9b5b
Compare
bb264eb
to
4e56ebf
Compare
4e56ebf
to
fa5044f
Compare
@@ -38,7 +38,7 @@ runs: | |||
- name: Install Python software dependencies | |||
shell: bash | |||
run: | | |||
python3 -m ensurepip --upgrade | |||
python3 -m ensurepip --upgrade || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
There was a problem hiding this comment.
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 ...
fa5044f
to
eadce24
Compare
9947926
to
ec6c9f2
Compare
ec6c9f2
to
ba94261
Compare
Rebased over #681 and #682