Skip to content
Open
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
14 changes: 0 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ jobs:
os: ['ubuntu-latest']
# The forced pytest versions correspond with the lower bounds in tox.ini
versions:
- python: '3.7'
min-deps: '--force-dep pytest==4.6'
os: 'ubuntu-22.04'
- python: '3.8'
min-deps: '--force-dep pytest==4.6'
- python: '3.9'
min-deps: '--force-dep pytest==4.6'
- python: '3.10'
min-deps: '--force-dep pytest==6.2.4'
- python: '3.11'
Expand All @@ -38,13 +31,6 @@ jobs:
min-deps: '--force-dep pytest==7.3.2'
- python: '3.15'
min-deps: '--force-dep pytest==7.3.2'
- python: 'pypy-3.7'
min-deps: '--force-dep pytest==4.6'
os: 'ubuntu-22.04'
- python: 'pypy-3.8'
min-deps: '--force-dep pytest==4.6'
- python: 'pypy-3.9'
min-deps: '--force-dep pytest==4.6'
- python: 'pypy-3.10'
min-deps: '--force-dep pytest==6.2.4'
- python: 'pypy-3.11'
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ repos:
rev: v3.22.0
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py310-plus]

- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
Expand Down
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ Raphael Boidol <boidolr@users.noreply.github.com>
Pierre Sassoulas <pierre.sassoulas@gmail.com>
Alissa Huskey <alissa.huskey@gmail.com>
Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Tomas Zarate <102381901+TOMASEZARATE@users.noreply.github.com>
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Unreleased
----------

Drop Python 3.7, 3.8 and 3.9 support
Move project metadata from setup.py to pyproject.toml

0.10.0 (2026-10-12)
-------------------

Expand Down
57 changes: 54 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,61 @@
[build-system]
requires = ["setuptools >=42", "setuptools_scm[toml] >=3.4.1"]
requires = ["setuptools>=77", "setuptools-scm>=10"]
build-backend = "setuptools.build_meta"

[project]
name = "pytest-localserver"
dynamic = ["version"]
description = "pytest plugin to test server connections locally."
readme = "README.rst"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{name = "Sebastian Rahlf", email = "basti@redtoad.de"},
]
maintainers = [
{name = "David Zaslavsky", email = "diazona@ellipsix.net"},
]
requires-python = ">=3.10"
keywords = ["pytest", "server", "localhost", "http", "smtp"]
classifiers = [
"Framework :: Pytest",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Software Development :: Testing",
]
dependencies = [
"werkzeug>=0.10",
]

[project.optional-dependencies]
smtp = [
"aiosmtpd",
]

[project.urls]
Homepage = "https://github.com/pytest-dev/pytest-localserver"

[project.entry-points.pytest11]
localserver = "pytest_localserver.plugin"

[tool.setuptools]
packages = ["pytest_localserver"]
include-package-data = true
zip-safe = false

[tool.setuptools_scm]
write_to = "pytest_localserver/_version.py"
version_file = "pytest_localserver/_version.py"
write_to_source = true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional nitpick - we may not need write_to_source


[tool.black]
target-version = ['py37']
target-version = ['py310']
line-length = 120
3 changes: 0 additions & 3 deletions setup.cfg

This file was deleted.

54 changes: 0 additions & 54 deletions setup.py

This file was deleted.

3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{37,38,39,310,311,312,313,314,315,py3}{,-smtp},lint
envlist = py{310,311,312,313,314,315,py3}{,-smtp},lint

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

followup note - i am under the impression no need to do the smpt thing for all python versions, maybe this can be reduced

recreate = True
isolated_build = True

Expand All @@ -22,7 +22,6 @@ deps =
# works with your code. Don't forget to modify the corresponding entries in
# the Github workflows configuration file if you do change these lower
# bounds.
pytest >=4.6, <10; python_version <'3.10'
pytest >=6.2.4, <10; python_version >='3.10' and python_version <'3.14'
pytest >=7.3.2, <10; python_version >='3.14'
pytest-cov !=6.2.0
Expand Down