Skip to content

Commit daed556

Browse files
authored
Merge pull request maxmind#226 from maxmind/greg/eng-2401
Switch to uv build
2 parents be13d93 + 83825a8 commit daed556

File tree

12 files changed

+25
-10
lines changed

12 files changed

+25
-10
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
@@ -4,6 +4,12 @@
44
History
55
-------
66

7+
5.2.0
8+
++++++++++++++++++
9+
10+
* Setuptools has been replaced with the uv build backend for building the
11+
package.
12+
713
5.1.0 (2025-05-05)
814
++++++++++++++++++
915

pyproject.toml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies = [
1313
requires-python = ">=3.9"
1414
readme = "README.rst"
1515
license = "Apache-2.0"
16+
license-files = ["LICENSE"]
1617
classifiers = [
1718
"Development Status :: 5 - Production/Stable",
1819
"Environment :: Web Environment",
@@ -41,11 +42,19 @@ lint = [
4142
]
4243

4344
[build-system]
44-
requires = [
45-
"setuptools>=77.0.3",
46-
"setuptools-scm",
45+
requires = ["uv_build>=0.7.19,<0.8.0"]
46+
build-backend = "uv_build"
47+
48+
[tool.uv.build-backend]
49+
source-include = [
50+
"HISTORY.rst",
51+
"README.rst",
52+
"LICENSE",
53+
"docs/html",
54+
"examples/*.py",
55+
"tests/*.py",
56+
"tests/data/test-data/*.mmdb"
4757
]
48-
build-backend = "setuptools.build_meta"
4958

5059
[project.urls]
5160
Homepage = "https://www.maxmind.com/"
@@ -81,12 +90,9 @@ ignore = [
8190

8291
[tool.ruff.lint.per-file-ignores]
8392
"docs/*" = ["ALL"]
84-
"geoip2/{models,records}.py" = [ "D107", "PLR0913" ]
93+
"src/geoip2/{models,records}.py" = [ "D107", "PLR0913" ]
8594
"tests/*" = ["ANN201", "D"]
8695

87-
[tool.setuptools.package-data]
88-
geoip2 = ["py.typed"]
89-
9096
[tool.tox]
9197
env_list = [
9298
"3.9",
@@ -114,7 +120,7 @@ dependency_groups = [
114120
"lint",
115121
]
116122
commands = [
117-
["mypy", "geoip2", "tests"],
123+
["mypy", "src", "tests"],
118124
["ruff", "check"],
119125
["ruff", "format", "--check", "--diff", "."],
120126
]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)