From a042ec8ecd75ba3d2f17c4bab7e4b38c8071b47f Mon Sep 17 00:00:00 2001 From: insolor <2442833+insolor@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:59:19 +0300 Subject: [PATCH] Add minimal needed parameters to pyproject.toml for compatibility with uv --- .gitignore | 3 +++ README.md | 6 ++++++ pyproject.toml | 11 +++++++++++ 3 files changed, 20 insertions(+) diff --git a/.gitignore b/.gitignore index e81691d..e0a9aa7 100644 --- a/.gitignore +++ b/.gitignore @@ -161,3 +161,6 @@ cython_debug/ /offsets_*.toml .config.yaml + +# Disable watching of uv.lock until full migration from poetry to uv +uv.lock diff --git a/README.md b/README.md index 57fc1a4..35173d0 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,12 @@ poetry run search path="C:/path/to/Dwarf Fortress/Dwarf Fortress.exe" ``` + or: + + ```shell + uv run search path="C:/path/to/Dwarf Fortress/Dwarf Fortress.exe" + ``` + Alternatively, you can add a yaml config in the root of the project instead of using the CLI options: `.config.yaml:` diff --git a/pyproject.toml b/pyproject.toml index e89f45e..b0ac8d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,8 @@ +[project] +name = "search-offsets" +version = "0.1.0" +requires-python = ">=3.10" + [tool.poetry] name = "search-offsets" version = "0.1.0" @@ -28,6 +33,12 @@ name = "dfint" url = "https://dfint.github.io/pypi-index/" priority = "explicit" +[tool.uv] +extra-index-url = ["https://dfint.github.io/pypi-index/"] + +[tool.uv.sources] +"peclasses" = {index = "dfint"} + [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"