-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabling version bumps for path dependencies when using `UvPyprojectH…
…andler` (#303) * Adding `set_path_dependencies_to_version` for `UvPyprojectHandler` * Adding TODO * fmt * mute mypy complaints * changelog entry * Update kraken-build/src/kraken/std/python/buildsystem/uv.py Co-authored-by: Scott Stevenson <[email protected]> * adding check for "sources" to exist before pop * Updating pyproject.toml * Remove default value from relative dependecy * Fallback from removing `tool.uv.sources` * Adding test * Using `formatted_project_name = project_name.replace("-", "_")` * Removing TODO related to test * Add a dedicated uv project to test relative import build * Update examples/uv-project-relative-import/.kraken.py Co-authored-by: Antoine Broyelle <[email protected]> * trimming test * removing custom index * Update kraken-build/src/kraken/std/python/buildsystem/uv.py Co-authored-by: Scott Stevenson <[email protected]> * Changing version bump --------- Co-authored-by: Scott Stevenson <[email protected]> Co-authored-by: Antoine Broyelle <[email protected]>
- Loading branch information
1 parent
bba14b5
commit ae4fad4
Showing
7 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,3 +51,9 @@ id = "4d8e2872-d32f-4747-b2d6-aa5c1cb4ec75" | |
type = "fix" | ||
description = "Rename deprecated tool.poetry.dev-dependencies section" | ||
author = "[email protected]" | ||
|
||
[[entries]] | ||
id = "e3edc5a7-39ec-4e05-89c8-d06bf8cb0ee8" | ||
type = "feature" | ||
description = "Enabling `UvPyprojectHandler` to properly bump versions for path dependencies" | ||
author = "[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from kraken.std import python | ||
|
||
python.install() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[project] | ||
name = "uv-project-relative-import" | ||
version = "0.1.0" | ||
description = "Add your description here" | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"tqdm>=4.66.5", | ||
"uv-project", | ||
] | ||
|
||
[tool.uv.sources] | ||
uv-project = { path = "../uv-project", editable = true } | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" |
5 changes: 5 additions & 0 deletions
5
examples/uv-project-relative-import/src/uv_project_relative_import/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from uv_project import hello | ||
|
||
|
||
def main() -> None: | ||
hello() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters