Skip to content

Commit 7f0fe2e

Browse files
committed
Update package metadata
1 parent ad9b2ad commit 7f0fe2e

File tree

9 files changed

+90
-219
lines changed

9 files changed

+90
-219
lines changed

.bumpversion.cfg

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ current_version = 4.0.0
33
commit = True
44
tag = True
55

6-
[bumpversion:file:setup.py]
7-
search = version='{current_version}'
8-
replace = version='{new_version}'
6+
[bumpversion:file:pyproject.toml]
7+
search = version = "{current_version}"
8+
replace = version = "{new_version}"
99

1010
[bumpversion:file (badge):README.rst]
1111
search = /v{current_version}.svg

.github/workflows/test.yml

-18
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,6 @@ jobs:
6060
toxpython: 'python3.9'
6161
tox_env: 'docs'
6262
os: 'ubuntu-latest'
63-
- name: 'py36-pytest70-xdist250-coverage62 (ubuntu)'
64-
python: '3.6'
65-
toxpython: 'python3.6'
66-
python_arch: 'x64'
67-
tox_env: 'py36-pytest70-xdist250-coverage62'
68-
os: 'ubuntu-latest'
69-
- name: 'py36-pytest70-xdist250-coverage62 (windows)'
70-
python: '3.6'
71-
toxpython: 'python3.6'
72-
python_arch: 'x64'
73-
tox_env: 'py36-pytest70-xdist250-coverage62'
74-
os: 'windows-latest'
75-
- name: 'py36-pytest70-xdist250-coverage62 (macos)'
76-
python: '3.6'
77-
toxpython: 'python3.6'
78-
python_arch: 'x64'
79-
tox_env: 'py36-pytest70-xdist250-coverage62'
80-
os: 'macos-latest'
8163
- name: 'py37-pytest71-xdist250-coverage64 (ubuntu)'
8264
python: '3.7'
8365
toxpython: 'python3.7'

MANIFEST.in

-28
This file was deleted.

docs/releasing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ The process for releasing should follow these steps:
2121
#. Make sure you have a clean checkout, run ``git status`` to verify.
2222
#. Manually clean temporary files (that are ignored and won't show up in ``git status``)::
2323

24-
rm -rf dist build src/*.egg-info
24+
rm -rf dist
2525

2626
These files need to be removed to force distutils/setuptools to rebuild everything and recreate the egg-info metadata.
2727
#. Build the dists::
2828

29-
python3 setup.py clean --all sdist bdist_wheel
29+
python -m build
3030

3131
#. Verify that the resulting archives (found in ``dist/``) are good.
3232
#. Upload the sdist and wheel with twine::

pyproject.toml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
[build-system]
2+
requires = ["hatchling", "hatch-fancy-pypi-readme"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "pytest-cov"
7+
dynamic = ["readme"]
8+
version = "3.0.0"
9+
description = "Pytest plugin for measuring coverage."
10+
license = "MIT"
11+
requires-python = ">=3.7"
12+
authors = [
13+
{ name = "Marc Schlaich", email = "[email protected]" },
14+
]
15+
keywords = [
16+
"cover",
17+
"coverage",
18+
"distributed",
19+
"parallel",
20+
"py.test",
21+
"pytest",
22+
]
23+
classifiers = [
24+
"Development Status :: 5 - Production/Stable",
25+
"Framework :: Pytest",
26+
"Intended Audience :: Developers",
27+
"License :: OSI Approved :: MIT License",
28+
"Operating System :: Microsoft :: Windows",
29+
"Operating System :: POSIX",
30+
"Operating System :: Unix",
31+
"Programming Language :: Python",
32+
"Programming Language :: Python :: 3",
33+
"Programming Language :: Python :: 3 :: Only",
34+
"Programming Language :: Python :: 3.7",
35+
"Programming Language :: Python :: 3.8",
36+
"Programming Language :: Python :: 3.9",
37+
"Programming Language :: Python :: 3.10",
38+
"Programming Language :: Python :: Implementation :: CPython",
39+
"Programming Language :: Python :: Implementation :: PyPy",
40+
"Topic :: Software Development :: Testing",
41+
"Topic :: Utilities",
42+
]
43+
dependencies = [
44+
"coverage[toml]>=5.2.1",
45+
"pytest>=4.6",
46+
]
47+
48+
[project.optional-dependencies]
49+
testing = [
50+
"fields",
51+
"hunter",
52+
"process-tests",
53+
"pytest-xdist",
54+
"six",
55+
"virtualenv",
56+
]
57+
58+
[project.entry-points.pytest11]
59+
pytest_cov = "pytest_cov.plugin"
60+
61+
[project.urls]
62+
Changelog = "https://pytest-cov.readthedocs.io/en/latest/changelog.html"
63+
Documentation = "https://pytest-cov.readthedocs.io/"
64+
Homepage = "https://github.com/pytest-dev/pytest-cov"
65+
"Issue Tracker" = "https://github.com/pytest-dev/pytest-cov/issues"
66+
67+
[tool.hatch.metadata.hooks.fancy-pypi-readme]
68+
content-type = "text/x-rst"
69+
fragments = [
70+
{ path = "README.rst" },
71+
{ path = "CHANGELOG.rst" },
72+
]
73+
74+
[tool.hatch.build.targets.wheel.hooks.autorun]
75+
dependencies = ["hatch-autorun"]
76+
file = "src/pytest-cov.embed"

setup.py

-159
This file was deleted.

src/pytest-cov.pth

-1
This file was deleted.

tests/test_pytest_cov.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1777,8 +1777,8 @@ def test_append_coverage_subprocess(testdir):
17771777

17781778

17791779
def test_pth_failure(monkeypatch):
1780-
with open('src/pytest-cov.pth') as fh:
1781-
payload = fh.read()
1780+
with open('src/pytest-cov.embed') as fh:
1781+
payload = f'import os, sys;exec({fh.read()!r})'
17821782

17831783
class SpecificError(Exception):
17841784
pass

tox.ini

+7-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ passenv =
1010
; a generative tox configuration, see: https://tox.readthedocs.io/en/latest/config.html#generative-envlist
1111

1212
[tox]
13+
isolated_build = true
1314
envlist =
1415
check
15-
py{36}-pytest{70}-xdist250-coverage{62}
1616
py{37,38,39,310,py37,py38}-pytest{71}-xdist250-coverage{64}
1717
docs
1818

@@ -87,16 +87,17 @@ commands =
8787

8888
[testenv:check]
8989
deps =
90+
build
91+
twine
9092
docutils
91-
check-manifest
9293
flake8
9394
readme-renderer
9495
pygments
9596
isort
9697
skip_install = true
9798
usedevelop = false
9899
commands =
99-
python setup.py check --strict --metadata --restructuredtext
100-
check-manifest {toxinidir}
101-
flake8 src tests setup.py
102-
isort --check-only --diff src tests setup.py
100+
python -m build
101+
twine check dist/*
102+
flake8 src tests
103+
isort --check-only --diff src tests

0 commit comments

Comments
 (0)