Skip to content

Commit bb2f767

Browse files
authored
Merge pull request pypa#4296 from pypa/feature/skeleton
Merge changes from skeleton
2 parents 6ee23bf + af38e1c commit bb2f767

File tree

7 files changed

+25
-11
lines changed

7 files changed

+25
-11
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ on:
44
merge_group:
55
push:
66
branches-ignore:
7-
# disabled for jaraco/skeleton#103
8-
# - gh-readonly-queue/** # Temporary merge queue-related GH-made branches
7+
# temporary GH branches relating to merge queues (jaraco/skeleton#93)
8+
- gh-readonly-queue/**
9+
tags:
10+
# required if branches-ignore is supplied (jaraco/skeleton#103)
11+
- '**'
912
pull_request:
1013
workflow_dispatch:
1114

@@ -39,7 +42,6 @@ jobs:
3942
matrix:
4043
python:
4144
- "3.8"
42-
- "3.11"
4345
- "3.12"
4446
platform:
4547
- ubuntu-latest
@@ -50,6 +52,8 @@ jobs:
5052
platform: ubuntu-latest
5153
- python: "3.10"
5254
platform: ubuntu-latest
55+
- python: "3.11"
56+
platform: ubuntu-latest
5357
- python: pypy3.10
5458
platform: ubuntu-latest
5559
distutils: stdlib

.readthedocs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ build:
1010
os: ubuntu-lts-latest
1111
tools:
1212
python: latest
13+
# post-checkout job to ensure the clone isn't shallow jaraco/skeleton#114
14+
jobs:
15+
post_checkout:
16+
- git fetch --unshallow || true

mypy.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ disable_error_code = attr-defined
2525
# https://github.com/pypa/setuptools/pull/3979#discussion_r1367968993
2626
# - distutils._modified has different errors on Python 3.8 [import-untyped], on Python 3.9+ [import-not-found]
2727
# - All jaraco modules are still untyped
28-
[mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*]
28+
# - _validate_project sometimes complains about trove_classifiers (#4296)
29+
[mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*,trove_classifiers]
2930
ignore_missing_imports = True
3031

3132
# - pkg_resources tests create modules that won't exists statically before the test is run.

pytest.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
norecursedirs=dist build .tox .eggs
33
addopts=
44
--doctest-modules
5+
--import-mode importlib
56
--doctest-glob=pkg_resources/api_tests.txt
67
-r sxX
7-
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
8+
consider_namespace_packages=true
89
filterwarnings=
910
# Fail on warnings
1011
error
@@ -84,3 +85,6 @@ filterwarnings=
8485

8586
# Ignore warnings about experimental features
8687
ignore:..tool\.distutils.. in .pyproject\.toml. is still .experimental.*
88+
89+
# Ignore warnings about consider_namespace_packages (jaraco/skeleton@6ff02e0eefcd)
90+
ignore:Unknown config option. consider_namespace_packages:pytest.PytestConfigWarning

ruff.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
[lint]
2+
extend-select = [
3+
"C901",
4+
"W",
5+
]
26
ignore = [
37
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
48
"W191",

setup.cfg

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ exclude =
4242
[options.extras_require]
4343
testing =
4444
# upstream
45-
pytest >= 6
45+
pytest >= 6, != 8.1.1
4646
pytest-checkdocs >= 2.4
4747
pytest-cov; \
4848
# coverage seems to make PyPy extremely slow
4949
python_implementation != "PyPy"
50-
pytest-mypy >= 0.9.1; \
51-
# workaround for jaraco/skeleton#22
52-
python_implementation != "PyPy"
50+
pytest-mypy
5351
pytest-enabler >= 2.2
5452
# workaround for pypa/setuptools#3921
5553
pytest-ruff >= 0.2.1; sys_platform != "cygwin"
@@ -95,8 +93,6 @@ testing-integration =
9593
docs =
9694
# upstream
9795
sphinx >= 3.5
98-
# workaround for sphinx/sphinx-doc#11662
99-
sphinx < 7.2.5
10096
jaraco.packaging >= 9.3
10197
rst.linker >= 1.9
10298
furo

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ commands =
3636
[testenv:diffcov]
3737
description = run tests and check that diff from main is covered
3838
deps =
39+
{[testenv]deps}
3940
diff-cover
4041
commands =
4142
pytest {posargs} --cov-report xml

0 commit comments

Comments
 (0)