Skip to content

Commit

Permalink
Add minimal needed parameters to pyproject.toml for compatibility wit…
Browse files Browse the repository at this point in the history
…h uv
  • Loading branch information
insolor committed Oct 2, 2024
1 parent dc5b167 commit 54b91d6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,6 @@ cython_debug/

/offsets_*.toml
.config.yaml

# Disable watching of uv.lock until full migration from poetry to uv
uv.lock
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:`
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 54b91d6

Please sign in to comment.