Skip to content

Commit

Permalink
Merge pull request #4296 from pypa/feature/skeleton
Browse files Browse the repository at this point in the history
Merge changes from skeleton
  • Loading branch information
jaraco authored Apr 11, 2024
2 parents 6ee23bf + af38e1c commit bb2f767
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 11 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ on:
merge_group:
push:
branches-ignore:
# disabled for jaraco/skeleton#103
# - gh-readonly-queue/** # Temporary merge queue-related GH-made branches
# temporary GH branches relating to merge queues (jaraco/skeleton#93)
- gh-readonly-queue/**
tags:
# required if branches-ignore is supplied (jaraco/skeleton#103)
- '**'
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -39,7 +42,6 @@ jobs:
matrix:
python:
- "3.8"
- "3.11"
- "3.12"
platform:
- ubuntu-latest
Expand All @@ -50,6 +52,8 @@ jobs:
platform: ubuntu-latest
- python: "3.10"
platform: ubuntu-latest
- python: "3.11"
platform: ubuntu-latest
- python: pypy3.10
platform: ubuntu-latest
distutils: stdlib
Expand Down
4 changes: 4 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ build:
os: ubuntu-lts-latest
tools:
python: latest
# post-checkout job to ensure the clone isn't shallow jaraco/skeleton#114
jobs:
post_checkout:
- git fetch --unshallow || true
3 changes: 2 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ disable_error_code = attr-defined
# https://github.com/pypa/setuptools/pull/3979#discussion_r1367968993
# - distutils._modified has different errors on Python 3.8 [import-untyped], on Python 3.9+ [import-not-found]
# - All jaraco modules are still untyped
[mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*]
# - _validate_project sometimes complains about trove_classifiers (#4296)
[mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*,trove_classifiers]
ignore_missing_imports = True

# - pkg_resources tests create modules that won't exists statically before the test is run.
Expand Down
6 changes: 5 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
norecursedirs=dist build .tox .eggs
addopts=
--doctest-modules
--import-mode importlib
--doctest-glob=pkg_resources/api_tests.txt
-r sxX
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
consider_namespace_packages=true
filterwarnings=
# Fail on warnings
error
Expand Down Expand Up @@ -84,3 +85,6 @@ filterwarnings=

# Ignore warnings about experimental features
ignore:..tool\.distutils.. in .pyproject\.toml. is still .experimental.*

# Ignore warnings about consider_namespace_packages (jaraco/skeleton@6ff02e0eefcd)
ignore:Unknown config option. consider_namespace_packages:pytest.PytestConfigWarning
4 changes: 4 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[lint]
extend-select = [
"C901",
"W",
]
ignore = [
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
Expand Down
8 changes: 2 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,12 @@ exclude =
[options.extras_require]
testing =
# upstream
pytest >= 6
pytest >= 6, != 8.1.1
pytest-checkdocs >= 2.4
pytest-cov; \
# coverage seems to make PyPy extremely slow
python_implementation != "PyPy"
pytest-mypy >= 0.9.1; \
# workaround for jaraco/skeleton#22
python_implementation != "PyPy"
pytest-mypy
pytest-enabler >= 2.2
# workaround for pypa/setuptools#3921
pytest-ruff >= 0.2.1; sys_platform != "cygwin"
Expand Down Expand Up @@ -95,8 +93,6 @@ testing-integration =
docs =
# upstream
sphinx >= 3.5
# workaround for sphinx/sphinx-doc#11662
sphinx < 7.2.5
jaraco.packaging >= 9.3
rst.linker >= 1.9
furo
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ commands =
[testenv:diffcov]
description = run tests and check that diff from main is covered
deps =
{[testenv]deps}
diff-cover
commands =
pytest {posargs} --cov-report xml
Expand Down

0 comments on commit bb2f767

Please sign in to comment.