jpadilla / pyjwt

JSON Web Token implementation in Python
https://pyjwt.readthedocs.io
MIT License
5k stars 675 forks source link

Build and upload PyPI package #884

Closed jpadilla closed 1 year ago

jpadilla commented 1 year ago

Shamelessly copied from https://github.com/hynek/structlog/blob/main/.github/workflows/pypi-package.yml All credit goes to @hynek

hynek commented 1 year ago

Would you like some help debugging it? 😇

FWIW there's two things you probably need to do:

  1. you have to activate OCID in the PyPI project (prod and test separately) to fix this
CleanShot 2023-04-25 at 09 57 13@2x

That's really easy, just log in and find it in the project settings.

  1. for the test PyPI thing to work, you'll need to change the versioning of the project, because every upload's version must be unique. That's easiest achieved using setuptools-scm / hatch-vcs but not sure if you want to re-do that part.

lmk if you have any questions, i'm still at the PyCon sprints

jpadilla commented 1 year ago

@hynek thanks for chiming in! It seems like someone else published the project to the TestPyPI instance https://test.pypi.org/project/PyJWT/ so I think I'm kinda blocked there. Reached out directly to see if it can be transferred 🤷‍♂️

Re: versioning. gonna take a further look at those.

jpadilla commented 1 year ago

@di random question, but know anyone that could look into this https://github.com/pypi/support/issues/2790 ?

di commented 1 year ago

@jpadilla Done!

hynek commented 1 year ago

@di any chance for looking into https://github.com/pypi/support/issues/2891 while we're having fun? 😇

di commented 1 year ago

@hynek Also done!