Skip to content

Commit b3e88b9

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

File tree

12 files changed

+24
-20
lines changed

12 files changed

+24
-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: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies = [
1616
requires-python = ">=3.9"
1717
readme = "README.rst"
1818
license = "Apache-2.0"
19+
license-files = ["LICENSE"]
1920
classifiers = [
2021
"Development Status :: 5 - Production/Stable",
2122
"Environment :: Web Environment",
@@ -50,11 +51,18 @@ Documentation = "https://minfraud.readthedocs.org/"
5051
"Issue Tracker" = "https://github.com/maxmind/minfraud-api-python/issues"
5152

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

5967
[tool.ruff.lint]
6068
select = ["ALL"]
@@ -87,12 +95,9 @@ ignorelist = ["id"]
8795

8896
[tool.ruff.lint.per-file-ignores]
8997
"docs/*" = ["ALL"]
90-
"minfraud/models.py" = [ "PLR0913" ]
98+
"src/minfraud/models.py" = [ "PLR0913" ]
9199
"tests/*" = ["ANN201", "D"]
92100

93-
[tool.setuptools.package-data]
94-
minfraud = ["py.typed"]
95-
96101
[tool.tox]
97102
env_list = [
98103
"3.9",
@@ -120,7 +125,7 @@ dependency_groups = [
120125
"lint",
121126
]
122127
commands = [
123-
["mypy", "minfraud", "tests"],
128+
["mypy", "src", "tests"],
124129
["ruff", "check"],
125130
["ruff", "format", "--check", "--diff", "."],
126131
]
File renamed without changes.

0 commit comments

Comments
 (0)