Skip to content
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

Move all configuration to pyproject.toml #145

Merged
merged 2 commits into from
Aug 21, 2024
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
9 changes: 0 additions & 9 deletions .coveragerc

This file was deleted.

6 changes: 3 additions & 3 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ function curl-harder() {
}


python -m pip install -U pip setuptools wheel
python -m pip install -U pip build
python -m pip --version

python setup.py sdist --formats=zip
python -m pip install dist/*.zip
python -m build
python -m pip install dist/*.whl

if [ "$CHECK_FORMATTING" = "1" ]; then
pip install black
Expand Down
91 changes: 91 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,98 @@
[build-system]
requires = ["setuptools >= 64"]
build-backend = "setuptools.build_meta"

[project]
name = "pytest-trio"
dynamic = ["version"]
authors = [
{ name="Emmanuel Leblond", email="[email protected]" },
]
description = "Pytest plugin for trio"
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Topic :: System :: Networking",
"Topic :: Software Development :: Testing",
"Framework :: Hypothesis",
"Framework :: Pytest",
"Framework :: Trio",
]
keywords = [
"async",
"pytest",
"testing",
"trio",
]
dependencies = [
"trio >= 0.25.1", # for upstream Hypothesis integration
"outcome >= 1.1.0",
"pytest >= 7.2.0", # for ExceptionGroup support
]

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

[project.urls]
"Homepage" = "https://github.com/python-trio/pytest-trio"
"Source" = "https://github.com/python-trio/pytest-trio"
"Bug Tracker" = "https://github.com/python-trio/pytest-trio/issues"

[project.entry-points.pytest11]
trio = "pytest_trio.plugin"

[tool.setuptools.packages]
find = {namespaces = false}

[tool.towncrier]
package = "pytest_trio"
filename = "docs/source/history.rst"
directory = "newsfragments"
title_format = "pytest-trio {version} ({project_date})"
underlines = ["-", "~", "^"]
issue_format = "`#{issue} <https://github.com/python-trio/pytest-trio/issues/{issue}>`__"

[tool.coverage.run]
branch = true
source_pkgs = ["pytest_trio"]

[tool.coverage.report]
precision = 1
skip_covered = true
exclude_lines = [
"pragma: no cover",
"abc.abstractmethod",
"if TYPE_CHECKING.*:",
"if _t.TYPE_CHECKING:",
"if t.TYPE_CHECKING:",
"@overload",
'class .*\bProtocol\b.*\):',
"raise NotImplementedError",
]
partial_branches = [
"pragma: no branch",
"if not TYPE_CHECKING:",
"if not _t.TYPE_CHECKING:",
"if not t.TYPE_CHECKING:",
"if .* or not TYPE_CHECKING:",
"if .* or not _t.TYPE_CHECKING:",
"if .* or not t.TYPE_CHECKING:",
]
2 changes: 1 addition & 1 deletion pytest_trio/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# This file is imported from __init__.py and exec'd from setup.py
# This file is imported from __init__.py and parsed by setuptools

__version__ = "0.8.0+dev"
50 changes: 0 additions & 50 deletions setup.py

This file was deleted.

Loading