Skip to content

Commit

Permalink
Remove redundant Python 2 code
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 7, 2021
1 parent cace54c commit 7a96fb9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions setup.cfg
Expand Up @@ -107,8 +107,6 @@ exclude_lines =
pragma: no cover
# This excludes typing-specific code, which will be validated by mypy anyway.
if TYPE_CHECKING
# Can be set to exclude e.g. `if PY2:` on Python 3
${PIP_CI_COVERAGE_EXCLUDES}

[metadata]
license_file = LICENSE.txt
4 changes: 0 additions & 4 deletions tox.ini
Expand Up @@ -11,11 +11,9 @@ pip = python {toxinidir}/tools/tox_pip.py
mkdirp = python -c 'import os, sys; os.path.exists(sys.argv[1]) or os.mkdir(sys.argv[1])'

[testenv]
# Remove USERNAME once we drop PY2.
passenv =
CI
GIT_SSL_CAINFO
USERNAME
HTTP_PROXY
HTTPS_PROXY
NO_PROXY
Expand Down Expand Up @@ -43,8 +41,6 @@ setenv =
# Ensure coverage is enabled in child processes in virtual environments
# since they won't already have been enabled by pytest-cov.
COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
# Used in coverage configuration in setup.cfg.
PIP_CI_COVERAGE_EXCLUDES = if PY2

[testenv:docs]
# Don't skip install here since pip_sphinxext uses pip's internals.
Expand Down

0 comments on commit 7a96fb9

Please sign in to comment.