Closed barneydobson closed 1 month ago
It seems that netcomp
was included in the source application but not in the wheel, so when installed from PyPI, it is not there. Let's see what I need to do to make that happen. This will require another release, I'm affraid, and mark the previous one as wrong
, so no one installs it.
OK great thanks - how do I mark as wrong
?
closed by #293
@barneydobson make sure to yank the release. Can be done by the manager of the package on https://pypi.org/ which I think is @dalonsoa?
I think @dalonsoa did 👍
@dalonsoa new bug with the distribution:
Run if [[ "false" != 'true' ]]; then
/tmp/baipp/dist/swmmanywhere-0.1.2-py3-none-any.whl: W009: Wheel contains multiple toplevel library entries:
netcomp/
swmmanywhere/
Error: Process completed with exit code 1.
You need to move the netcomp
folder under swmmanywhere
as a subpackage.
I've just seen it, but I don't understand why that is a problem. The wheel works and it is not uncommon to distribute multiple packages together. If we move netcomp
to within swmmanywhere
, we need to change all of import statements for netcomp
.
looking at examples - could we move both into src
?
That's what I was starting to think, to be honest.
I second the src-layout (I use it for all my projects). You have to make a couple of changes to pyproject.toml
for hatchling
, pytest
, and coverage
.
On it...
OK still failing: https://github.com/ImperialCollegeLondon/SWMManywhere/actions/runs/11036163538/job/30654221348
I guess we're not fixing this today - but any ideas from @cheginit or @dalonsoa are welcome!
( I will first try the suggestion here )
(nope didn't help)
Assuming have copied config and updated accordingly. @dalonsoa it'd be amazing if you could take a look please.