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
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
History
-------

3.2.0
3.2.0 (2025-11-20)
++++++++++++++++++

* IMPORTANT: Python 3.10 or greater is required. If you are using an older
Expand Down
12 changes: 10 additions & 2 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

set -eu -o pipefail

# Check that we're not on the main branch
current_branch=$(git branch --show-current)
if [ "$current_branch" = "main" ]; then
echo "Error: Releases should not be done directly on the main branch."
echo "Please create a release branch and run this script from there."
exit 1
fi

changelog=$(cat HISTORY.rst)

regex='
Expand Down Expand Up @@ -33,11 +41,11 @@ if [ -n "$(git status --porcelain)" ]; then
exit 1
fi

perl -pi -e "s/(?<=__version__ = \").+?(?=\")/$version/g" minfraud/version.py
perl -pi -e "s/(?<=__version__ = \").+?(?=\")/$version/g" src/minfraud/version.py
perl -pi -e "s/(?<=^version = \").+?(?=\")/$version/gsm" pyproject.toml

echo $"Test results:"
tox
uv run tox

echo $'\nDiff:'
git diff
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = "minfraud"
version = "3.1.0"
version = "3.2.0"
description = "MaxMind minFraud API"
authors = [
{name = "Gregory Oschwald", email = "[email protected]"},
]
dependencies = [
"aiohttp>=3.6.2,<4.0.0",
"email_validator>=2.0.0,<3.0.0",
"geoip2>=5.1.0,<6.0.0",
"geoip2>=5.2.0,<6.0.0",
"requests>=2.24.0,<3.0.0",
"typing-extensions>=4.13.2",
"voluptuous",
Expand Down Expand Up @@ -37,6 +37,7 @@ classifiers = [
dev = [
"pytest>=8.3.5",
"pytest-httpserver>=1.0.10",
"tox-uv>=1.29.0",
]
lint = [
"mypy>=1.15.0",
Expand Down
2 changes: 1 addition & 1 deletion src/minfraud/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Internal module for version (to prevent cyclic imports)."""

__version__ = "3.1.0"
__version__ = "3.2.0"
Loading
Loading