Skip to content

Commit

Permalink
Update package metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Aug 26, 2022
1 parent 00713b3 commit da3db18
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 217 deletions.
6 changes: 3 additions & 3 deletions .bumpversion.cfg
Expand Up @@ -3,9 +3,9 @@ current_version = 3.0.0
commit = True
tag = True

[bumpversion:file:setup.py]
search = version='{current_version}'
replace = version='{new_version}'
[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file (badge):README.rst]
search = /v{current_version}.svg
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/test.yml
Expand Up @@ -60,24 +60,6 @@ jobs:
toxpython: 'python3.9'
tox_env: 'docs'
os: 'ubuntu-latest'
- name: 'py36-pytest70-xdist250-coverage62 (ubuntu)'
python: '3.6'
toxpython: 'python3.6'
python_arch: 'x64'
tox_env: 'py36-pytest70-xdist250-coverage62'
os: 'ubuntu-latest'
- name: 'py36-pytest70-xdist250-coverage62 (windows)'
python: '3.6'
toxpython: 'python3.6'
python_arch: 'x64'
tox_env: 'py36-pytest70-xdist250-coverage62'
os: 'windows-latest'
- name: 'py36-pytest70-xdist250-coverage62 (macos)'
python: '3.6'
toxpython: 'python3.6'
python_arch: 'x64'
tox_env: 'py36-pytest70-xdist250-coverage62'
os: 'macos-latest'
- name: 'py37-pytest71-xdist250-coverage64 (ubuntu)'
python: '3.7'
toxpython: 'python3.7'
Expand Down
28 changes: 0 additions & 28 deletions MANIFEST.in

This file was deleted.

4 changes: 2 additions & 2 deletions docs/releasing.rst
Expand Up @@ -21,12 +21,12 @@ The process for releasing should follow these steps:
#. Make sure you have a clean checkout, run ``git status`` to verify.
#. Manually clean temporary files (that are ignored and won't show up in ``git status``)::

rm -rf dist build src/*.egg-info
rm -rf dist

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

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

#. Verify that the resulting archives (found in ``dist/``) are good.
#. Upload the sdist and wheel with twine::
Expand Down
76 changes: 76 additions & 0 deletions pyproject.toml
@@ -0,0 +1,76 @@
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"

[project]
name = "pytest-cov"
dynamic = ["readme"]
version = "3.0.0"
description = "Pytest plugin for measuring coverage."
license = "MIT"
requires-python = ">=3.7"
authors = [
{ name = "Marc Schlaich", email = "marc.schlaich@gmail.com" },
]
keywords = [
"cover",
"coverage",
"distributed",
"parallel",
"py.test",
"pytest",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
]
dependencies = [
"coverage[toml]>=5.2.1",
"pytest>=4.6",
]

[project.optional-dependencies]
testing = [
"fields",
"hunter",
"process-tests",
"pytest-xdist",
"six",
"virtualenv",
]

[project.entry-points.pytest11]
pytest_cov = "pytest_cov.plugin"

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

[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/x-rst"
fragments = [
{ path = "README.rst" },
{ path = "CHANGELOG.rst" },
]

[tool.hatch.build.targets.wheel.hooks.autorun]
dependencies = ["hatch-autorun"]
file = "src/pytest-cov.embed"
159 changes: 0 additions & 159 deletions setup.py

This file was deleted.

1 change: 0 additions & 1 deletion src/pytest-cov.pth

This file was deleted.

13 changes: 7 additions & 6 deletions tox.ini
Expand Up @@ -10,9 +10,9 @@ passenv =
; a generative tox configuration, see: https://tox.readthedocs.io/en/latest/config.html#generative-envlist

[tox]
isolated_build = true
envlist =
check
py{36}-pytest{70}-xdist250-coverage{62}
py{37,38,39,310,py37,py38}-pytest{71}-xdist250-coverage{64}
docs

Expand Down Expand Up @@ -87,16 +87,17 @@ commands =

[testenv:check]
deps =
build
twine
docutils
check-manifest
flake8
readme-renderer
pygments
isort
skip_install = true
usedevelop = false
commands =
python setup.py check --strict --metadata --restructuredtext
check-manifest {toxinidir}
flake8 src tests setup.py
isort --check-only --diff src tests setup.py
python -m build
twine check dist/*
flake8 src tests
isort --check-only --diff src tests

0 comments on commit da3db18

Please sign in to comment.