uv/scripts
konsti dfcceb6a1d
Build backend: Revamp include/exclude (#9525)
When building the source distribution, we always need to include
`pyproject.toml` and the module, when building the wheel, we always
include the module but nothing else at top level. Since we only allow a
single module per wheel, that means that there are no specific wheel
includes. This means we have source includes, source excludes, wheel
excludes, but no wheel includes: This is defined by the module root,
plus the metadata files and data directories separately.

Extra source dist includes are currently unused (they can't end up in
the wheel currently), but it makes sense to model them here, they will
be needed for any sort of procedural build step.

This results in the following fields being relevant for inclusions and
exclusion:

* `pyproject.toml` (always included in the source dist)
* project.readme: PEP 621
* project.license-files: PEP 639
* module_root: `Path`
* source_include: `Vec<Glob>`
* source_exclude: `Vec<Glob>`
* wheel_exclude: `Vec<Glob>`
* data: `Map<KnownDataName, Path>`

An opinionated choice is that that wheel excludes always contain the
source excludes: Otherwise you could have a path A in the source tree
that gets included when building the wheel directly from the source
tree, but not when going through the source dist as intermediary,
because A is in source excludes, but not in the wheel excludes. This has
been a source of errors previously.

In the process, I fixed a bug where we would skip directories and only
include the files and were missing license due to absolute globs.
2024-12-01 11:32:35 +00:00
..
benchmark Update BENCHMARKS.md (#6258) 2024-08-20 16:42:57 +00:00
links Add test case for wheel installation with different path (#4396) 2024-06-19 09:39:55 -05:00
packages Build backend: Revamp include/exclude (#9525) 2024-12-01 11:32:35 +00:00
popular_packages Use sets rather than vectors for lockfile requirements (#6107) 2024-08-15 13:00:35 +00:00
publish Upload: All metadata incl. PEP 639 (#9442) 2024-11-27 00:25:08 +01:00
requirements Add bad backtracking test cases for (#8171) 2024-10-14 20:54:08 +00:00
scenarios Implement PEP 440-compliant local version semantics (#8797) 2024-11-07 14:29:54 -06:00
workspaces Skip files when detecting workspace members (#5735) 2024-08-02 19:44:43 +00:00
check_cache_compat.py Set absolute URLs prior to uploading to PyPI (#5038) 2024-07-13 17:29:21 +00:00
check_embedded_python.py Set absolute URLs prior to uploading to PyPI (#5038) 2024-07-13 17:29:21 +00:00
check_system_python.py Allow explicitly requesting an system interpreter version in check_system_python (#7306) 2024-09-11 19:41:42 +00:00
release.sh Remove the preview changelog (#6259) 2024-08-20 16:47:46 +00:00
sync_scenarios.sh Add shellcheck CI (#7888) 2024-10-08 13:58:00 -05:00
transform_readme.py Fix benchmark image in documentation (#5102) 2024-07-16 13:54:06 +00:00
update_schemastore.py Update SchemaStore script (#5024) 2024-07-12 17:49:38 -04:00
uv-run-remote-script-test.py Pin rich==13.7.1 for --exclude-newer in tests (#7713) 2024-09-26 11:54:50 -04:00