Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test SETUPTOOLS_USE_DISTUTILS = stdlib, local on GH Actions #2865

Merged
merged 14 commits into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ jobs:
test:
strategy:
matrix:
distutils:
- stdlib
- local
python:
- pypy3
- 3.6
Expand All @@ -15,7 +18,10 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
fail-fast: false
jaraco marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ${{ matrix.platform }}
env:
SETUPTOOLS_USE_DISTUTILS: ${{ matrix.distutils }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
Expand Down
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ toxworkdir={env:TOX_WORK_DIR:.tox}

[testenv]
deps =
pytest
# workaround for sphinx-doc/sphinx#9562
# TODO: remove after Sphinx>4.1.2 is available.
sphinx@git+https://github.com/sphinx-doc/sphinx; python_version>="3.10"
commands =
pytest {posargs}
# We invoke pytest like this to avoid the warning:
# UserWarning: Distutils was imported before Setuptools,
# but importing Setuptools also replaces the `distutils`
# module in `sys.modules`.
pytest -c 'import setuptools; import pytest; pytest.main("{posargs}".split())'
jaraco marked this conversation as resolved.
Show resolved Hide resolved
usedevelop = True
extras = testing
passenv =
SETUPTOOLS_USE_DISTUTILS
windir # required for test_pkg_resources

[testenv:docs]
Expand Down