uv/scripts/packages
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
..
anyio_local Consider installed packages during resolution (#2596) 2024-03-28 13:49:17 -05:00
black_editable Editable installs for uv tool (#5454) 2024-07-26 16:30:15 -04:00
built-by-uv Build backend: Default excludes (#9552) 2024-12-01 14:09:55 +01:00
dependent_locals Consider installed packages during resolution (#2596) 2024-03-28 13:49:17 -05:00
deptry_reproducer Set absolute URLs prior to uploading to PyPI (#5038) 2024-07-13 17:29:21 +00:00
hatchling_dynamic Avoid prepare_metadata_for_build_wheel calls for Hatch packages with dynamic dependencies (#2645) 2024-03-25 22:26:51 +00:00
hatchling_editable Rename scripts/editable-installs to scripts/packages (#2644) 2024-03-25 03:56:00 +00:00
keyring_test_plugin Publish: Warn when keyring has no password (#8827) 2024-11-27 20:54:49 +01:00
poetry_editable Move maturin test coverage into CI (#3714) 2024-05-21 19:17:48 +00:00
root_editable Rename scripts/editable-installs to scripts/packages (#2644) 2024-03-25 03:56:00 +00:00
setup_cfg_editable Rename scripts/editable-installs to scripts/packages (#2644) 2024-03-25 03:56:00 +00:00
setup_py_editable Rename scripts/editable-installs to scripts/packages (#2644) 2024-03-25 03:56:00 +00:00
setuptools_editable Rename scripts/editable-installs to scripts/packages (#2644) 2024-03-25 03:56:00 +00:00
README.md Use prettier to format the documentation (#5708) 2024-08-02 08:58:31 -05:00

packages

A collection of packages used to test editable installs and bespoke behaviors in packaging setups and definitions.