Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ jobs:
submodules: true
persist-credentials: false

- name: Install the latest version of uv
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # 6.3.1

- name: Build
run: pipx run build
run: uv build

- uses: actions/upload-artifact@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
History
-------

3.2.0
++++++++++++++++++

* Setuptools has been replaced with the uv build backend for building the
package.

3.1.0 (2025-05-23)
++++++++++++++++++

Expand Down
10 changes: 0 additions & 10 deletions MANIFEST.in

This file was deleted.

23 changes: 14 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies = [
requires-python = ">=3.9"
readme = "README.rst"
license = "Apache-2.0"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
Expand Down Expand Up @@ -50,11 +51,18 @@ Documentation = "https://minfraud.readthedocs.org/"
"Issue Tracker" = "https://github.com/maxmind/minfraud-api-python/issues"

[build-system]
requires = [
"setuptools>=77.0.3",
"setuptools-scm",
requires = ["uv_build>=0.7.19,<0.8.0"]
build-backend = "uv_build"

[tool.uv.build-backend]
source-include = [
"HISTORY.rst",
"README.rst",
"LICENSE",
"docs/html",
"examples/*.py",
"tests/*.py",
]
build-backend = "setuptools.build_meta"

[tool.ruff.lint]
select = ["ALL"]
Expand Down Expand Up @@ -87,12 +95,9 @@ ignorelist = ["id"]

[tool.ruff.lint.per-file-ignores]
"docs/*" = ["ALL"]
"minfraud/models.py" = [ "PLR0913" ]
"src/minfraud/models.py" = [ "PLR0913" ]
"tests/*" = ["ANN201", "D"]

[tool.setuptools.package-data]
minfraud = ["py.typed"]

[tool.tox]
env_list = [
"3.9",
Expand Down Expand Up @@ -120,7 +125,7 @@ dependency_groups = [
"lint",
]
commands = [
["mypy", "minfraud", "tests"],
["mypy", "src", "tests"],
["ruff", "check"],
["ruff", "format", "--check", "--diff", "."],
]
Expand Down
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.
File renamed without changes.
Loading