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

Used trusted publisher for PyPi #698

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Conversation

woodsp-ibm
Copy link
Member

@woodsp-ibm woodsp-ibm commented Oct 12, 2023

Summary

This PR follows Qiskit/rustworkx#1001 to update the release CI workflow to use PyPI's trusted publisher mechanism.

Details and comments

@woodsp-ibm woodsp-ibm added on hold 🛑 Can not fix yet type: ci 🔧 Related to Continuous Integration workflows labels Oct 12, 2023
Comment on lines +35 to +37
run: pip install -U pip setuptools virtualenv wheel
- name: Build sdist
run: python3 setup.py sdist bdist_wheel
Copy link
Collaborator

Choose a reason for hiding this comment

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

The future proof way to do this is to use:

Suggested change
run: pip install -U pip setuptools virtualenv wheel
- name: Build sdist
run: python3 setup.py sdist bdist_wheel
run: pip install -U pip setuptools build
- name: Build sdist
run: python3 -m build .

but for now this works fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, sounds good for the future.

@mtreinish
Copy link
Collaborator

This LGTM, you'll need to add a release environment but otherwise this is fine. I left an inline comment, but that's more future facing and we can look at that in a follow up PR as it's not related to using a new publishing mechanism

@coveralls
Copy link

coveralls commented Oct 12, 2023

Pull Request Test Coverage Report for Build 6564885980

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.689%

Totals Coverage Status
Change from base Build 6538800431: 0.0%
Covered Lines: 1851
Relevant Lines: 1997

💛 - Coveralls

@woodsp-ibm woodsp-ibm added automerge and removed on hold 🛑 Can not fix yet labels Oct 18, 2023
@mergify mergify bot merged commit b4402c2 into qiskit-community:main Oct 18, 2023
15 checks passed
@woodsp-ibm woodsp-ibm deleted the pypi branch October 18, 2023 18:56
oscar-wallis pushed a commit that referenced this pull request Feb 16, 2024
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: ci 🔧 Related to Continuous Integration workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants