-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5e282be
Showing
1 changed file
with
24 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Demo of a python project packaged with uv | ||
|
||
The repository demonstrates following uv features: | ||
- use a dedicated python version per project | ||
- isolate 3rd party packages per project | ||
- cross platform deterministic locking | ||
- sing semantic versioning policy and upgrade backwards compatible changes | ||
- dependabot automatic dependency upgrades | ||
|
||
NOTE: Dependabot currently does neither support uv.lock nor uv pip compile (See [dependabot-core#10478](https://github.com/dependabot/dependabot-core/issues/10478)). | ||
A workaround is implemented for simulating pip-compile workflow (See [check-uv.sh](./bin/check-uv.sh) and [workflows/push.yml](.github/workflows/push.yml])). | ||
|
||
Run with: | ||
|
||
```bash | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
uv run pytest test | ||
``` | ||
|
||
To upgrade dependencies but stay within defined semver policy in pyproject.toml: | ||
|
||
``` | ||
uv lock -U | ||
``` |