Skip to content

Use pyproject.toml for project setup #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2025
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 .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.13]
python-version: [3.9, 3.13]
env:
OS: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

### Infrastructure
* use trusted publisher for release (see https://docs.pypi.org/trusted-publishers/)
* pin Python 3.7 builds to ubuntu 22.04 (not available in 24.04)
* use `pyproject.toml` for project setup

### Documentation
* added use case for ordering test modules (see [#51](https://github.com/pytest-dev/pytest-order/issues/51))
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import os
import sys

sys.path.insert(0, os.path.abspath("../.."))
sys.path.insert(0, os.path.abspath("../../src"))

from pytest_order import __version__ # noqa: E402

Expand Down
19 changes: 0 additions & 19 deletions mypy.ini

This file was deleted.

79 changes: 79 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
[build-system]
requires = [
"setuptools>=77.0.3",
]
build-backend = "setuptools.build_meta"

[project]
name = "pytest-order"
description = "pytest plugin to run tests in a specific order"
readme = "README.md"
keywords = [
"testing",
"pytest",
"ordering",
]
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.9"
dynamic = ["version"]
dependencies = [
"pytest>=5.0; python_version < '3.10'",
"pytest>=6.2.4; python_version >= '3.10'",
]
authors = [
{name = "mrbean-bremen", email = "hansemrbean@googlemail.com"}
]
classifiers = [
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Utilities",
]

[project.optional-dependencies]
dev = [
"pytest-mock>=1.11.0",
"pytest-xdist>=1.29.0",
"pytest-dependency>=0.5.1",
]

[project.urls]
homepage = "https://github.com/pytest-dev/pytest-order"
documentation = "https://pytest-order.readthedocs.io/"
download = "https://github.com/pytest-dev/pytest-order/archive/main.zip"
repository = "https://github.com/pytest-dev/pytest-order"
changelog = "https://github.com/pytest-dev/pytest-order/blob/main/CHANGELOG.md"
issues = "https://github.com/pytest-dev/pytest-order/issues"

[project.entry-points.pytest11]
pytest_order = "pytest_order.plugin"

[tool.setuptools.dynamic]
version = {attr = "pytest_order.__version__"}

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.mypy]
mypy_path = "src/"
no_namespace_packages = true
check_untyped_defs = true
no_implicit_optional = true
disallow_any_generics = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
ignore_missing_imports = true
show_column_numbers = true
7 changes: 0 additions & 7 deletions setup.cfg

This file was deleted.

56 changes: 0 additions & 56 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from pytest_order.settings import Scope

pytest_plugins = ["pytester"]
Expand Down