mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
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:
parent
19c3c08bf3
commit
d283fff153
6 changed files with 32 additions and 3 deletions
|
@ -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"]
|
||||
|
|
2
scripts/packages/built-by-uv/src/built_by_uv/cli.py
Normal file
2
scripts/packages/built-by-uv/src/built_by_uv/cli.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
def hello():
|
||||
print("Hi from a script!")
|
Loading…
Add table
Add a link
Reference in a new issue