Repository: pypa/readme_renderer (language: python)

Issue:
chore: remove legacy check command and distutils
The `check` command was ported to `twine check` in 2018.
Refs: #122

Python 3.10 and 3.11 have marked `distutils` as deprecated.
Refs: https://peps.python.org/pep-0632/#specification

Signed-off-by: Mike Fiedler <miketheman@gmail.com>


Discussion / hints:
Uncovered during work on #231 and would simplify that implementation once this is removed.
Thanks!

Fix patch:
diff --git a/.coveragerc b/.coveragerc
deleted file mode 100644
index 398ff08..0000000
--- a/.coveragerc
+++ /dev/null
@@ -1,2 +0,0 @@
-[run]
-branch = True
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cda83a8..5730b5d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,11 +9,12 @@ jobs:
         python-version: ["pypy-3.7", "3.7", "3.8", "3.9", "3.10"]
     steps:
       - name: Check out repository
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
       - name: Install Python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python-version }}
+          check-latest: true
       - name: Install dependencies
         run: python -m pip install tox
       - name: Run tests
@@ -23,11 +24,12 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Check out repository
-        uses: actions/checkout@v1
+        uses: actions/checkout@v3
       - name: Install Python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v4
         with:
           python-version: "3.x"
+          check-latest: true
       - name: Install dependencies
         run: python -m pip install tox
       - name: Run linting
@@ -39,11 +41,12 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Check out repository
-        uses: actions/checkout@v1
+        uses: actions/checkout@v3
       - name: Install Python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v4
         with:
           python-version: "3.x"
+          check-latest: true
       - name: Install dependencies
         run: python -m pip install tox
       - name: Test packaging
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5bb5123..be12984 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -7,11 +7,14 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - name: Checkout
-      uses: actions/checkout@v2
+      uses: actions/checkout@v3
       with:
         ref: ${{ github.event.release.tag_name }}
     - name: Set up Python
-      uses: actions/setup-python@v2
+      uses: actions/setup-python@v4
+      with:
+        python-version: "3.x"
+        check-latest: true
     - name: Install build dependencies
       run: pip install -U setuptools wheel build
     - name: Build
diff --git a/.gitignore b/.gitignore
index 142b10c..962e2f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,5 +12,7 @@ htmlcov/
 *.eggs
 *.py[co]
 .pytest_cache/
+.python-version
 
 .idea/
+.vscode/
diff --git a/MANIFEST.in b/MANIFEST.in
index 1533bc0..5242524 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,5 +1,5 @@
 include LICENSE README.rst CHANGES.rst
-include tox.ini .coveragerc pytest.ini
+include tox.ini
 include readme_renderer/py.typed
 
 recursive-include tests *.html
diff --git a/pyproject.toml b/pyproject.toml
index 1fdc514..609a620 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,6 +6,9 @@ build-backend = "setuptools.build_meta"
 [tool.check-manifest]
 ignore = [".gitpod.yml"]
 
+[tool.coverage.run]
+branch = true
+
 [tool.mypy]
 strict = true
 warn_unused_configs = true
diff --git a/tox.ini b/tox.ini
index 0e79d08..7e77737 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,8 +5,9 @@ isolated_build = True
 [testenv]
 deps =
     pytest
+    pytest-cov
 commands =
-    pytest --strict-markers {posargs}
+    pytest --strict-markers --cov {posargs}
 extras = md
 
 [testenv:mypy]


Test patch:
diff --git a/pytest.ini b/pytest.ini
deleted file mode 100644
index 5d6dbaf..0000000
--- a/pytest.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[pytest]
-markers =
-    filterwarnings: built-in maker to silence warnings, not recognized by --strict.