ISI-MIP/isimip-qa

pyproject.toml [tool.setuptools]

Closed this issue · 1 comments

thiasB commented

isimip-qa/pyproject.toml

Lines 49 to 50 in 6043e6c

[tool.setuptools]
packages = ["isimip_qa"]

I had to remove this section in the QC-Tool as the building of new releases for PyPi struggled with including all project modules (subfolders). I don't know exactly why but after removing, python -m build again autodetects all submodules. Explicitly defining only the main package excludes (changes in) the submodules, it seems.

Yes, this was a bug here, the trick is to include:

[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

The setuptools-scm looks for all packages in the repo. I think without packages = ["isimip_qa"] build would also pick up other python modules in the repo, like a possible testing directory, which we might not want. I will double check if I add tests to https://github.com/ISI-MIP/isimip-qc .