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
3 changes: 2 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Features:

Other changes:


* *Backwards-incompatible*: The ``AsyncParser`` class has been removed, since
``Parser`` now provides async functionality.
Users should use ``await parser.async_parse()`` to access the async features
Expand All @@ -21,7 +22,7 @@ Other changes:
changed their default `empty_value` from the empty string (`""`) to `missing`.
This allows nested fields with a `load_default` to be used to better customize
behavior.

* Drop support for marshmallow 3, which is EOL.
* Drop support for Python 3.9, which is EOL (:pr:`1019`).
* Drop support for Bottle < 0.13 (:pr:`1019`).
* Drop support for Flask < 3.1.0 (:pr:`1023`).
Expand Down
64 changes: 29 additions & 35 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ name = "webargs"
version = "8.7.1"
description = "Declarative parsing and validation of HTTP request objects, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, Falcon, and aiohttp."
readme = "README.rst"
license = { file = "LICENSE" }
authors = [{ name = "Steven Loria", email = "sloria1@gmail.com" }]
license = "MIT"
authors = [{ name = "Steven Loria", email = "oss@stevenloria.com" }]
maintainers = [
{ name = "Steven Loria", email = "sloria1@gmail.com" },
{ name = "Steven Loria", email = "oss@stevenloria.com" },
{ name = "Jérôme Lafréchoux", email = "[email protected]" },
{ name = "Stephen Rosen", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
Expand Down Expand Up @@ -42,10 +41,10 @@ keywords = [
]
requires-python = ">=3.10"
dependencies = [
"marshmallow>=4.0.0,<5.0.0",
"packaging>=17.0",
# depend on typing-extensions conditionally for annotations
'typing_extensions>=4.0; python_version<"3.10"',
"marshmallow>=4.0.0,<5.0.0",
"packaging>=17.0",
# depend on typing-extensions conditionally for annotations
'typing_extensions>=4.0; python_version<"3.10"',
]

[project.urls]
Expand All @@ -60,13 +59,7 @@ requires = ["flit_core<4"]
build-backend = "flit_core.buildapi"

[dependency-groups]
docs = [
"webargs",
"Sphinx==9.1.0",
"sphinx-issues==6.0.0",
"furo==2025.12.19",
]

docs = ["Sphinx", "sphinx-issues", "furo"]
tests = [
"pytest",
"pytest-asyncio",
Expand All @@ -75,34 +68,35 @@ tests = [
"pytest-aiohttp>=0.3.0",
"packaging>=17.0",
]
test-flask = ["Flask>=3.1.0", {include-group = "tests"}]
test-django = ["Django>=5.2.0", {include-group = "tests"}]
test-bottle = ["bottle>=0.13.0", {include-group = "tests"}]
test-tornado = ["tornado>=6.5.0", {include-group = "tests"}]
test-flask = ["Flask>=3.1.0", { include-group = "tests" }]
test-django = ["Django>=5.2.0", { include-group = "tests" }]
test-bottle = ["bottle>=0.13.0", { include-group = "tests" }]
test-tornado = ["tornado>=6.5.0", { include-group = "tests" }]
test-pyramid = [
"pyramid>=2.0.2", {include-group = "tests"},
# temporary pin: hold back `setuptools` so that `pyramid` testing works
# pyramid uses pkg_resources, which has been long deprecated and finally removed
#
# see https://github.com/Pylons/pyramid/issues/3731 for discussion within pyramid
"setuptools <82.0"
"pyramid>=2.0.2",
{ include-group = "tests" },
# temporary pin: hold back `setuptools` so that `pyramid` testing works
# pyramid uses pkg_resources, which has been long deprecated and finally removed
#
# see https://github.com/Pylons/pyramid/issues/3731 for discussion within pyramid
"setuptools <82.0",
]
test-falcon = ["falcon>=4.1.0", {include-group = "tests"}]
test-aiohttp = ["aiohttp>=3.13.0", {include-group = "tests"}]
test-falcon = ["falcon>=4.1.0", { include-group = "tests" }]
test-aiohttp = ["aiohttp>=3.13.0", { include-group = "tests" }]
# for efficiency of testing, we define this group and test all frameworks at once, because it works
# however, each is declared separately in case we ever encounter conflicts and need to break one off
# from the rest of the group
test-all-frameworks = [
{include-group = "test-flask"},
{include-group = "test-django"},
{include-group = "test-bottle"},
{include-group = "test-tornado"},
{include-group = "test-pyramid"},
{include-group = "test-falcon"},
{include-group = "test-aiohttp"},
{ include-group = "test-flask" },
{ include-group = "test-django" },
{ include-group = "test-bottle" },
{ include-group = "test-tornado" },
{ include-group = "test-pyramid" },
{ include-group = "test-falcon" },
{ include-group = "test-aiohttp" },
]

dev = ["tox", "pre-commit>=3.5,<5.0", {include-group = "tests"}]
dev = ["tox", "pre-commit>=3.5,<5.0", { include-group = "tests" }]

[tool.flit.sdist]
include = [
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ deps =
lowest: pyramid==2.0.2
lowest: falcon==4.1.0
lowest: aiohttp==3.13.0
lowest: marshmallow==3.13.0
lowest: marshmallow==4.0.0
commands = pytest {posargs}

[testenv:lint]
deps = pre-commit~=3.5
deps = pre-commit~=4.0
skip_install = true
commands = pre-commit run --all-files

Expand All @@ -42,7 +42,7 @@ commands = sphinx-build docs/ {posargs:docs/_build}

[testenv:docs-serve]
deps = sphinx-autobuild
extras = docs
dependency_groups = docs
commands = sphinx-autobuild --port=0 --open-browser --delay=2 docs/ docs/_build {posargs} --watch src --watch CONTRIBUTING.rst --watch README.rst

[testenv:readme-serve]
Expand Down
Loading