Skip to content

Commit 0c9c0f5

Browse files
committed
Use pyproject.toml for project setup
- use src layout for package
1 parent 42f3275 commit 0c9c0f5

File tree

12 files changed

+82
-84
lines changed

12 files changed

+82
-84
lines changed

.github/workflows/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest]
17-
python-version: [3.8, 3.13]
17+
python-version: [3.9, 3.13]
1818
env:
1919
OS: ${{ matrix.os }}
2020
steps:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

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

1212
### Documentation
1313
* added use case for ordering test modules (see [#51](https://github.com/pytest-dev/pytest-order/issues/51))

mypy.ini

Lines changed: 0 additions & 19 deletions
This file was deleted.

pyproject.toml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=77.0.3",
4+
]
5+
build-backend = "setuptools.build_meta"
6+
7+
[project]
8+
name = "pytest-order"
9+
description = "pytest plugin to run tests in a specific order"
10+
readme = "README.md"
11+
keywords = [
12+
"testing",
13+
"pytest",
14+
"ordering",
15+
]
16+
license = "MIT"
17+
license-files = ["LICENSE"]
18+
requires-python = ">=3.9"
19+
dynamic = ["version"]
20+
dependencies = [
21+
"pytest>=5.0; python_version < '3.10'",
22+
"pytest>=6.2.4; python_version >= '3.10'",
23+
]
24+
authors = [
25+
{name = "mrbean-bremen", email = "hansemrbean@googlemail.com"}
26+
]
27+
classifiers = [
28+
"Intended Audience :: Developers",
29+
"Development Status :: 5 - Production/Stable",
30+
"Environment :: Console",
31+
"Programming Language :: Python",
32+
"Programming Language :: Python :: 3.9",
33+
"Programming Language :: Python :: 3.10",
34+
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
36+
"Programming Language :: Python :: 3.13",
37+
"Operating System :: POSIX :: Linux",
38+
"Operating System :: MacOS",
39+
"Operating System :: Microsoft :: Windows",
40+
"Topic :: Software Development :: Testing",
41+
"Topic :: Software Development :: Quality Assurance",
42+
"Topic :: Utilities",
43+
]
44+
45+
[project.optional-dependencies]
46+
dev = [
47+
"pytest-mock>=1.11.0",
48+
"pytest-xdist>=1.29.0",
49+
"pytest-dependency>=0.5.1",
50+
]
51+
52+
[project.urls]
53+
homepage = "https://github.com/pytest-dev/pytest-order"
54+
documentation = "https://pytest-order.readthedocs.io/"
55+
download = "https://github.com/pytest-dev/pytest-order/archive/main.zip"
56+
repository = "https://github.com/pytest-dev/pytest-order"
57+
changelog = "https://github.com/pytest-dev/pytest-order/blob/main/CHANGELOG.md"
58+
issues = "https://github.com/pytest-dev/pytest-order/issues"
59+
60+
[project.entry-points.pytest11]
61+
pytest_order = "pytest_order.plugin"
62+
63+
[tool.setuptools.dynamic]
64+
version = {attr = "pytest_order.__version__"}
65+
66+
[tool.pytest.ini_options]
67+
testpaths = ["tests"]
68+
69+
[tool.mypy]
70+
mypy_path = "src/"
71+
no_namespace_packages = true
72+
check_untyped_defs = true
73+
no_implicit_optional = true
74+
disallow_any_generics = true
75+
warn_redundant_casts = true
76+
warn_unused_ignores = true
77+
show_error_codes = true
78+
ignore_missing_imports = true
79+
show_column_numbers = true

setup.cfg

Lines changed: 0 additions & 7 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 56 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
23
from pytest_order.settings import Scope
34

45
pytest_plugins = ["pytester"]

0 commit comments

Comments
 (0)