Skip to content

Commit b7fb4ac

Browse files
mkoeppenicoddemus
andauthored
Migrate to pyproject.toml
Co-authored-by: Bruno Oliveira <[email protected]>
1 parent 0bbe7b7 commit b7fb4ac

File tree

3 files changed

+56
-47
lines changed

3 files changed

+56
-47
lines changed

CHANGELOG.rst

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ UNRELEASED
55
----------
66

77
* ``pytest-mock`` now requires ``pytest>=6.2.5``.
8+
* `#410 <https://github.com/pytest-dev/pytest-mock/pull/410>`_: pytest-mock's ``setup.py`` file is removed.
9+
If you relied on this file, e.g. to install pytest using ``setup.py install``,
10+
please see `Why you shouldn't invoke setup.py directly <https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary>`_ for alternatives.
811

912
3.12.0 (2023-10-19)
1013
-------------------

pyproject.toml

+53
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,59 @@ requires = [
55
]
66
build-backend = "setuptools.build_meta"
77

8+
[project]
9+
name = "pytest-mock"
10+
description = "Thin-wrapper around the mock package for easier use with pytest"
11+
authors = [
12+
{name = "Bruno Oliveira", email = "[email protected]"},
13+
]
14+
dependencies = [
15+
"pytest>=6.2.5",
16+
]
17+
dynamic = ["version"]
18+
requires-python = ">=3.8"
19+
readme = "README.rst"
20+
license = {text = "MIT"}
21+
keywords = ["pytest", "mock"]
22+
classifiers = [
23+
"Development Status :: 5 - Production/Stable",
24+
"Framework :: Pytest",
25+
"Intended Audience :: Developers",
26+
"License :: OSI Approved :: MIT License",
27+
"Operating System :: OS Independent",
28+
"Programming Language :: Python :: 3",
29+
"Programming Language :: Python :: 3 :: Only",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
35+
"Topic :: Software Development :: Testing",
36+
]
37+
38+
[project.urls]
39+
Homepage = "https://github.com/pytest-dev/pytest-mock/"
40+
Documentation = "https://pytest-mock.readthedocs.io/en/latest/"
41+
Changelog = "https://pytest-mock.readthedocs.io/en/latest/changelog.html"
42+
Source = "https://github.com/pytest-dev/pytest-mock/"
43+
Tracker = "https://github.com/pytest-dev/pytest-mock/issues"
44+
45+
[project.optional-dependencies]
46+
dev = [
47+
"pre-commit",
48+
"pytest-asyncio",
49+
"tox",
50+
]
51+
52+
[project.entry-points.pytest11]
53+
pytest_mock = "pytest_mock"
54+
55+
[tool.setuptools.package-data]
56+
pytest_mock = ["py.typed"]
57+
58+
[tool.setuptools_scm]
59+
write_to = "src/pytest_mock/_version.py"
60+
861
[tool.ruff.lint]
962
extend-select = ["I001"]
1063

setup.py

-47
This file was deleted.

0 commit comments

Comments
 (0)