mirror of
https://github.com/astral-sh/uv
synced 2026-01-20 21:10:10 -05: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:
@@ -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!")
|
||||
Reference in New Issue
Block a user