-
Notifications
You must be signed in to change notification settings - Fork 0
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 publish.yml GitHub Action job to upload urdfdom-py to PyPI #1
base: main
Are you sure you want to change the base?
Conversation
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.
Just aded macOS as I'm planning to use it on my Mac. :)
- ubuntu-24.04 | ||
|
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.
- ubuntu-24.04 | |
- ubuntu-24.04 | |
- macos-latest | |
this should be okay
name: Deploy to PyPI | ||
runs-on: ubuntu-24.04 |
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.
name: Deploy to PyPI | |
runs-on: ubuntu-24.04 | |
name: Deploy to PyPI | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- 3.11 | |
os: | |
- ubuntu-24.04 | |
- macos-latest | |
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.
The wheel is pure python, so I do not think we do not need to publish a different one for each os, just uploading it on Linux is fine and will produce a package that should work fine also on macos.
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.
ok! I wasn't sure about this, but you're probably right
I tried to do a test upload to TestPyPI with Trusted Publishers in the https://github.com/traversaro/urdfdom-py-pypi/tree/staging branch, with all the releases in https://github.com/traversaro/urdfdom-py-pypi/releases . However, the upload somehow is failing with:
I am not sure what is going on @haixuanTao if you want to look on that I gave you access to both the repo and the TestPyPI urdfdom-py project. |
Actually I could not found you on TestPyPI, do you have a user there (if I recall correctly the users are separated from PyPI). |
Lol, I'm not on test pypi. Let me create an account. |
There you go: https://test.pypi.org/user/haixuantao/ |
I think you need some setting, now it gives me an error:
|
Indeed. I just verified it. I think the issue with the CI is probably around how to pass the credentials. What I usually do is pass the credendials within a GitHub secret as an env variable. |
Yes, I was trying to set up Trusted Publishers to avoid setting the secrets, as it worked in other repos. But whatever works is fine for me. I added you on TestPyPI. |
So, I don't think I can add secret on this GitHub project. FYI. |
Ah, annoying, I can't make you admin of a personal repo. Let me add the token myself. |
I created the |
Implement ros/urdf_parser_py#85 (comment) . The package will be uploaded as soon as we tag a v1.2.1 release.