ImperialCollegeLondon / wsi

WSIMOD is a software for simulating water quality and quantity
https://imperialcollegelondon.github.io/wsi/
BSD 3-Clause "New" or "Revised" License
13 stars 2 forks source link

issue releasing to pypi #127

Closed barneydobson closed 1 day ago

barneydobson commented 1 week ago

https://github.com/ImperialCollegeLondon/wsi/actions/runs/11932607759/job/33258089433

seems to work on the test deployment but not on actual publish... any ideas @dalonsoa ?

dalonsoa commented 1 week ago

Contrary to SWMManywhere, that uses hatchling to build the package, WSIMOD uses the good old setuptools. That means that creating a release with the corresponding tag does not automatically update the version number. The one set for WSIMOD is still 0.4.0, as indicated in pyproject.toml, which already exist in PyPI, regadless of the what they resease says and how many tags you create.

The options are:

barneydobson commented 1 week ago

I have found hatchling easier with SWMManywhere - but will that get confused since we have a variety of releases that do not follow 0.X.X convention? I remember that being an issues with SWMManywhere

dalonsoa commented 1 week ago

Not sure, to be honest. I've as much experience with hatchling as you do. I don't thin it should be a problem, but cannot say for sure. Maybe ask Taher.