Skip to content

Commit bf1ef3f

Browse files
committed
Switch to uv build
1 parent 715f5e8 commit bf1ef3f

File tree

12 files changed

+23
-20
lines changed

12 files changed

+23
-20
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ jobs:
2222
submodules: true
2323
persist-credentials: false
2424

25+
- name: Install the latest version of uv
26+
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # 6.3.1
27+
2528
- name: Build
26-
run: pipx run build
29+
run: uv build
2730

2831
- uses: actions/upload-artifact@v4
2932
with:

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
History
44
-------
55

6+
3.2.0
7+
++++++++++++++++++
8+
9+
* Setuptools has been replaced with the uv build backend for building the
10+
package.
11+
612
3.1.0 (2025-05-23)
713
++++++++++++++++++
814

MANIFEST.in

Lines changed: 0 additions & 10 deletions
This file was deleted.

pyproject.toml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,18 @@ Documentation = "https://minfraud.readthedocs.org/"
5050
"Issue Tracker" = "https://github.com/maxmind/minfraud-api-python/issues"
5151

5252
[build-system]
53-
requires = [
54-
"setuptools>=77.0.3",
55-
"setuptools-scm",
53+
requires = ["uv_build>=0.7.19,<0.8.0"]
54+
build-backend = "uv_build"
55+
56+
[tool.uv.build-backend]
57+
source-include = [
58+
"HISTORY.rst",
59+
"README.rst",
60+
"LICENSE",
61+
"docs/html",
62+
"examples/*.py",
63+
"tests/*.py",
5664
]
57-
build-backend = "setuptools.build_meta"
5865

5966
[tool.ruff.lint]
6067
select = ["ALL"]
@@ -87,12 +94,9 @@ ignorelist = ["id"]
8794

8895
[tool.ruff.lint.per-file-ignores]
8996
"docs/*" = ["ALL"]
90-
"minfraud/models.py" = [ "PLR0913" ]
97+
"src/minfraud/models.py" = [ "PLR0913" ]
9198
"tests/*" = ["ANN201", "D"]
9299

93-
[tool.setuptools.package-data]
94-
minfraud = ["py.typed"]
95-
96100
[tool.tox]
97101
env_list = [
98102
"3.9",
@@ -120,7 +124,7 @@ dependency_groups = [
120124
"lint",
121125
]
122126
commands = [
123-
["mypy", "minfraud", "tests"],
127+
["mypy", "src", "tests"],
124128
["ruff", "check"],
125129
["ruff", "format", "--check", "--diff", "."],
126130
]
File renamed without changes.

0 commit comments

Comments
 (0)