uv/scripts
konsti bb70382dac
Build backend: Default excludes (#9552)
When adding excludes, we usually don't want to include python cache
files. On the contrary, I haven't seen any project in my ecosystem
research that would want any of `__pycache__`, `*.pyc`, `*.pyo` to be
included. By moving them behind a `default-excludes` toggle, they are
always active even when defining custom excludes, but can be deactivated
if the user so chooses.

With includes and excludes being this small again, we can roll back the
include-exclude anchored difference to always using anchored globs (i.e.
you would need to use `**/build-*.h` below).

A pyproject.toml with custom settings with the change applied:

```toml
[project]
name = "foo"
version = "0.1.0"
readme = "README.md"
license-files = ["LICENSE*", "third-party-licenses/*"]

[tool.uv.build-backend]
# A file we need for the source dist -> wheel step, but not in the wheel itself (currently unused)
source-include = ["data/build-script.py"]
# A temporary or generated file we want to ignore
source-exclude = ["/src/foo/not-packaged.txt"]
# Headers are build-only
wheel-exclude = ["build-*.h"]

[tool.uv.build-backend.data]
scripts = "scripts"
data = "assets"
headers = "header"

[build-system]
requires = ["uv>=0.5.5,<0.6"]
build-backend = "uv"
```
2024-12-01 14:09:55 +01: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: Default excludes (#9552) 2024-12-01 14:09:55 +01: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