JRubics / poetry-publish

An action to build and publish python package to pypi (https://pypi.org/) using poetry (https://github.com/sdispater/poetry)
BSD 3-Clause "New" or "Revised" License
129 stars 17 forks source link

File name reuse #35

Closed edcohen08 closed 1 year ago

edcohen08 commented 1 year ago

Hey! We're using v1.13 for our package and hitting an issue from pypi about file name reuse. I updated the pyproject.toml to have version = "0.0.8" but in the workflow we have

Installing the current project: package (0.0.7)
Building package (0.0.7)
  - Building sdist
  - Built package-0.0.7.tar.gz
  - Building wheel
  - Built package-0.0.7-py3-none-any.whl
Using a plaintext file to store credentials

Publishing package (0.0.7) to PyPI
 - Uploading package-0.0.7-py3-none-any.whl 0%`
 - Uploading package-0.0.7-py3-none-any.whl 100%

HTTP Error 400: File already exists. See https://pypi.org/help/#file-name-reuse for more information. 

Wondering if I'm missing something?

JRubics commented 1 year ago

Hi, sorry for the late response. Did you use actions/checkout before this step?

edcohen08 commented 1 year ago

Hi @JRubics, no worries!

Here's our publish workflow https://github.com/Lightmatter/welkin-health/blob/85aa9b28e4c06a30eb575722342b74a0cda52c2a/.github/workflows/publish.yaml

JRubics commented 1 year ago

Hey, The problem is that you updated package version after the release, so in release it still had version 0.0.7 in pyproject.toml file. You can check here what is updated after the release :slightly_smiling_face:

edcohen08 commented 1 year ago

@JRubics whoooops thank you. That was totally my misunderstanding of releases and tags. Sorry to bother over this and really appreciate you taking that in depth of a look!

JRubics commented 1 year ago

Not a problem, happy to help! :tada: