GithubHelp home page GithubHelp logo

Comments (7)

Jeronymous avatar Jeronymous commented on June 12, 2024 2

It finally worked \o/

Thanks again for your kind help @bennyo27

from whisper-timestamped.

bennyo27 avatar bennyo27 commented on June 12, 2024 1

I see, we can try manually inputting the pkg-name, as per the instructions here https://github.com/etils-actions/pypi-auto-publish.
image

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

from whisper-timestamped.

bennyo27 avatar bennyo27 commented on June 12, 2024 1

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

from whisper-timestamped.

Jeronymous avatar Jeronymous commented on June 12, 2024

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 ...

from whisper-timestamped.

Jeronymous avatar Jeronymous commented on June 12, 2024

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).

from whisper-timestamped.

bennyo27 avatar bennyo27 commented on June 12, 2024

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.

from whisper-timestamped.

bennyo27 avatar bennyo27 commented on June 12, 2024

That is great to hear!

from whisper-timestamped.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.