Skip to content

Commit

Permalink
Migrate to pyproject.toml
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Oliveira <bruno@soliv.dev>
  • Loading branch information
mkoeppe and nicoddemus committed Feb 12, 2024
1 parent 0bbe7b7 commit b7fb4ac
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 47 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ UNRELEASED
----------

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

3.12.0 (2023-10-19)
-------------------
Expand Down
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,59 @@ requires = [
]
build-backend = "setuptools.build_meta"

[project]
name = "pytest-mock"
description = "Thin-wrapper around the mock package for easier use with pytest"
authors = [
{name = "Bruno Oliveira", email = "nicoddemus@gmail.com"},
]
dependencies = [
"pytest>=6.2.5",
]
dynamic = ["version"]
requires-python = ">=3.8"
readme = "README.rst"
license = {text = "MIT"}
keywords = ["pytest", "mock"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Testing",
]

[project.urls]
Homepage = "https://github.com/pytest-dev/pytest-mock/"
Documentation = "https://pytest-mock.readthedocs.io/en/latest/"
Changelog = "https://pytest-mock.readthedocs.io/en/latest/changelog.html"
Source = "https://github.com/pytest-dev/pytest-mock/"
Tracker = "https://github.com/pytest-dev/pytest-mock/issues"

[project.optional-dependencies]
dev = [
"pre-commit",
"pytest-asyncio",
"tox",
]

[project.entry-points.pytest11]
pytest_mock = "pytest_mock"

[tool.setuptools.package-data]
pytest_mock = ["py.typed"]

[tool.setuptools_scm]
write_to = "src/pytest_mock/_version.py"

[tool.ruff.lint]
extend-select = ["I001"]

Expand Down
47 changes: 0 additions & 47 deletions setup.py

This file was deleted.

0 comments on commit b7fb4ac

Please sign in to comment.