Repository navigation
Only install mpas_tools, not tests, into site-packages - #786
Merged
Merged
Conversation
Switch package discovery from an exclude-list to an allow-list so that the top-level `tests` package (and any stray directory picked up as a namespace package, such as a leftover `build/`) is no longer installed into site-packages, where it shadows downstream projects' own `tests`. Also: - replace MANIFEST.in with `[tool.setuptools.package-data]` globs, which picks up the previously missed `Publications.bib` - add a test that the package-data patterns match every non-Python file git tracks under `mpas_tools` - use a PEP 639 license expression and `license-files` (setuptools>=77) and drop the deprecated license classifier - symlink LICENSE and README.md into conda_package so setuptools can find them - make the description a single line, as setuptools requires Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
TestingI built the wheel with
I also ran the new
I also ran a local recipe build with |
This matches the build-system requirement in pyproject.toml, which is needed for the PEP 639 license metadata. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The recipe switched from dask to dask-core, but the test was not updated, so it failed in a source checkout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pass ${CMAKE_ARGS} to cmake (needed for cross-compiling) and drop
netcdf4, which is not needed at build time, from the host requirements.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Take the hdf5 2 variants from the feedstock's .ci_support (newer compilers, docker image, hdf5 and libnetcdf), keeping the local file names that the build workflow expects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
mpas_toolspackage currently installs a top-leveltestspackage intosite-packages. This shadows thetestspackage of downstream projects. For example,pytest testsin Polaris fails withNo module named 'tests.test_task'.This PR:
mpas_tools,mpas_tools.*), so onlympas_toolsis installedMANIFEST.inwith[tool.setuptools.package-data]inpyproject.toml, which also picks up a previously missedPublications.bibmpas_toolsLICENSEandREADME.mdsymlinks (setuptools couldn't find either), and puts the description on one linesetuptools >=77inrecipe.yaml,dev-spec.txtandpixi.tomlto matchpyproject.tomltest_dependencies.py, which was failing onmasterbecause it didn't mapdask-core(recipe) todask(PyPI)ci/variant files up to date with the conda-forge feedstock:${CMAKE_ARGS}inbuild.sh, nonetcdf4at build time, and the feedstock's hdf5 2 variants (newer compilers, hdf5 and libnetcdf)Once this is released, the feedstock needs a new build to remove
tests/from existing environments.🤖 Generated with Claude Code