Skip to content

Commit

Permalink
Invoke Python with byteerrors in tox
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 11, 2022
1 parent 36f1852 commit 8eb9e32
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ deps =
-rrequirements/tests.in
commands_pre =
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-m \
OpenSSL.debug
commands =
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-m \
pytest \
{tty:--color=yes} \
{posargs:}
install_command =
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
{toxinidir}/bin/pip-wrapper \
'{envname}' \
Expand Down Expand Up @@ -88,7 +88,7 @@ commands =
# NOTE: The last tox supporting Python 3.4 is 3.14.0
# -d "{temp_dir}/.doctrees" \
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-m sphinx \
-j auto \
Expand All @@ -103,7 +103,7 @@ commands =

# Print out the output docs dir and a way to serve html:
-{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-c\
'import pathlib;\
Expand All @@ -130,7 +130,7 @@ commands =

# Doctest docs site:
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-m sphinx \
-j auto \
Expand All @@ -156,7 +156,7 @@ commands =

# Linkcheck docs site:
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-m sphinx \
-j auto \
Expand All @@ -182,7 +182,7 @@ commands =

# Spellcheck docs site:
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-m sphinx \
-j auto \
Expand Down Expand Up @@ -211,11 +211,11 @@ usedevelop = False
commands_pre =
commands =
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-m twine check .tox/dist/*
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-m setuptools_scm ls

Expand All @@ -231,7 +231,7 @@ setenv =
commands_pre =
commands =
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-c \
'import os, shutil, sys; dists_dir = os.getenv("PEP517_OUT_DIR"); shutil.rmtree(dists_dir, ignore_errors=True); sys.exit(os.path.exists(dists_dir))'
Expand All @@ -251,7 +251,7 @@ platform = darwin|linux
install_command =
env PIP_CONSTRAINT= \
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
{toxinidir}/bin/pip-wrapper \
'{envname}' \
Expand All @@ -274,7 +274,7 @@ commands =
# wheels are not dependent on the Git repo or anything
# external what may be missing from sdist.
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-m build \
--outdir '{env:PEP517_OUT_DIR}/' \
Expand All @@ -297,7 +297,7 @@ setenv =
{[dists]setenv}
commands =
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate}
-m twine check \
--strict \
Expand All @@ -316,12 +316,12 @@ setenv =
commands_pre =
commands =
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} \
-c "import path; path.Path('dist').rmtree_p()"
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} -m pep517.build .
{envpython} \
{[python-cli-options]bytewarnings} \
{[python-cli-options]byteerrors} \
{[python-cli-options]isolate} -m twine upload dist/*

0 comments on commit 8eb9e32

Please sign in to comment.