Skip to content

Commit a369890

Browse files
authored
chore: switch build backend to uv (#527)
Signed-off-by: gruebel <[email protected]>
1 parent a5b3aa9 commit a369890

File tree

5 files changed

+237
-271
lines changed

5 files changed

+237
-271
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
44
rev: v0.12.4
55
hooks:
6-
- id: ruff
6+
- id: ruff-check
77
args: [--fix]
88
- id: ruff-format
99

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To install uv, follow the [installation guide](https://docs.astral.sh/uv/getting
2626

2727
2. **Install dependencies:**
2828
```bash
29-
uv sync
29+
uv sync --frozen
3030
```
3131

3232
### Testing

pyproject.toml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# pyproject.toml
22
[build-system]
3-
requires = ["hatchling"]
4-
build-backend = "hatchling.build"
3+
requires = ["uv_build~=0.8.0"]
4+
build-backend = "uv_build"
55

66
[project]
77
name = "openfeature_sdk"
@@ -33,19 +33,16 @@ dev = [
3333
"coverage[toml]>=6.5",
3434
"pytest",
3535
"pytest-asyncio",
36-
"mypy",
3736
"pre-commit"
3837
]
3938

40-
[tool.hatch.build.targets.sdist]
41-
exclude = [
42-
".gitignore",
43-
"test-harness",
44-
"venv",
45-
]
39+
[tool.uv]
40+
required-version = "~=0.8.0"
4641

47-
[tool.hatch.build.targets.wheel]
48-
packages = ["openfeature"]
42+
[tool.uv.build-backend]
43+
module-name = "openfeature"
44+
module-root = ""
45+
namespace = true
4946

5047
[tool.mypy]
5148
files = "openfeature"

renovate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
},
99
"pre-commit": {
1010
"enabled": true
11+
},
12+
"lockFileMaintenance": {
13+
"enabled": true
1114
}
1215
}

0 commit comments

Comments
 (0)