Build backend: Add integration test for scripts (#9635)

Scripts (`project.scripts` and `project.gui-scripts`) are already
supported, but did not have an integration test.
This commit is contained in:
konsti 2024-12-04 11:57:08 +01:00 committed by GitHub
parent 19c3c08bf3
commit d283fff153
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 32 additions and 3 deletions

View file

@ -7,6 +7,9 @@ requires-python = ">=3.12"
dependencies = ["anyio>=4,<5"]
license-files = ["LICENSE*", "third-party-licenses/*"]
[project.scripts]
say-hi = "built_by_uv.cli:hello"
[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"]

View file

@ -0,0 +1,2 @@
def hello():
print("Hi from a script!")