Skip to content

Conversation

@andrewfulton9
Copy link
Contributor

Adds a CI workflow for building wheel and pushing metadata to pypi. Note that for this to work, the tensorflow/fairness-indicators repo will need to be setup as a trusted publisher on the relevant pypi account.

I tested this workflow with the testpypi artifactory. You can see the results here of the CI run here.

This PR also depends on and includes code from PR #390. Once that is merged, I will rebase this one.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Comment on lines 37 to 47
mv dist/*.whl wheelhouse/
- name: List and check wheels
run: |
pip install twine pkginfo>=1.11.0
${{ matrix.ls || 'ls -lh' }} wheelhouse/
twine check wheelhouse/*
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.python-version }}
path: ./wheelhouse/*.whl
Copy link
Contributor

Choose a reason for hiding this comment

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

Moving only *.whl only copies the wheel to ./wheelhouse, so the .tar.gz isn't getting uploaded, I think. Can we just upload whatever is in dist/?

Copy link
Contributor

@peytondmurray peytondmurray left a comment

Choose a reason for hiding this comment

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

Thank you!

@peytondmurray peytondmurray merged commit 6c970e0 into tensorflow:master Aug 4, 2025
10 checks passed
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.

3 participants