Closed Jeronymous closed 11 months ago
I see, we can try manually inputting the pkg-name, as per the instructions here https://github.com/etils-actions/pypi-auto-publish.
name: Auto-publish
on: [push, workflow_dispatch]
jobs:
publish-job:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: etils-actions/pypi-auto-publish@v1
with:
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
gh-token: ${{ secrets.GITHUB_TOKEN }}
parse-changelog: false
pkg-name: "package_name" # Replace with actual package name
Thank you @bennyo27 Maybe it was because of the "dash" <-> "underscore" confusion somewhere...
I had another error that I fixed by modifying the setup.py
Getting closer but... Now there is this one on https://github.com/linto-ai/whisper-timestamped/actions/runs/7144443381/job/19458040933
ERROR `long_description` has syntax errors in markup and would not be
rendered on PyPI.
No content rendered from RST source.
I don't see any "long_description" field defined, neither documented somewhere...
Is there by chance a way to test the build locally, without pushing modification?
And I still wonder how it worked with the 2 first builds...
I just wonder how it previously worked for version 1.13.3 ...
For that issue, I think we should just be able to use the readme?
with open("README.md", encoding='utf-8') as f:
long_description = f.read()
setup(
# Add long description from README file
long_description=long_description,
long_description_content_type='text/markdown',
I think there is a way to test github actions locally but I'm not familiar with it https://github.com/nektos/act
It could be that github actions adds something to the flow of the pypi upload and that's why there are discrepancies in the builds
Thanks a lot :pray:
I see, long_description
is an option of the setup.py
I first try with a simple one, not the README.md, which is quite complicated (and maybe that was the reason of the failure : I suspect it was taking this by default).
Thanks a lot 🙏 I see,
long_description
is an option of the setup.py I first try with a simple one, not the README.md, which is quite complicated (and maybe that was the reason of the failure : I suspect it was taking this by default).
Oh yea that may be why.
It finally worked \o/
Thanks again for your kind help @bennyo27
That is great to hear!
see https://github.com/linto-ai/whisper-timestamped/actions/runs/7142325918/job/19451389880 There is an error
@beveradb @bennyo27 Any idea how to fix this?
Note: The name of the package is defined in setup.py
Also for the record : I noticed the package was not automatically published on https://pypi.org/project/whisper-timestamped/#history So I did this change to fix this: https://github.com/linto-ai/whisper-timestamped/commit/66f54ca71d44b8e3020963149eaee1e643443983 (it seems that the name of the branch was wrong) Now I just wonder how it previously worked for version 1.13.3 ...