pysal / spaghetti

SPAtial GrapHs: nETworks, Topology, & Inference
http://pysal.org/spaghetti/
BSD 3-Clause "New" or "Revised" License
260 stars 69 forks source link

Release action failing, trying to upload wrong `dist` files... #760

Closed jGaboardi closed 5 months ago

jGaboardi commented 5 months ago

Release action keeps failing saying that v1.7.5 already exists on PyPI (which it does not, I deleted it). Maybe not the best idea, but what's done is done. Problem is that when attempting to release a different version (tried v1.7.5post1 and v1.7.6), we're still seeing the same failure & message... I must be overlooking something rather obvious, but can't see it.

@martinfleis @knaaptime Any ideas?

martinfleis commented 5 months ago

PyPI does not allow for a filename to be reused, even once a project has been deleted and recreated. (source)

That answers the issue with 1.7.5.

A tag is attached to a commit. Since there were no commits between 1.7.5, 1.7.6 and 1.7.5.post1, all of them are attached to a single commit. When building a version on top of that commit, setuptools_scm has no way figuring out which of those tags did you want to use, so it uses the first one.

To fix this:

jGaboardi commented 5 months ago

That answers the issue with 1.7.5.

Could have sworn I did this before. Guess not though.

Thanks for the fix! Will try that now.

jGaboardi commented 5 months ago

Confirmed works. Thanks again @martinfleis !