Skip to content

Commit b97814a

Browse files
committed
Add workaround for unreleased PyNaCl
1 parent b243818 commit b97814a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ jobs:
8181
echo "PRE_BUILT_SETUPTOOLS_SDIST=$(ls dist/*.tar.gz)" >> $GITHUB_ENV
8282
echo "PRE_BUILT_SETUPTOOLS_WHEEL=$(ls dist/*.whl)" >> $GITHUB_ENV
8383
rm -rf setuptools.egg-info # Avoid interfering with the other tests
84+
- name: Workaround for unreleased PyNaCl (pyca/pynacl#805)
85+
if: contains(matrix.python, 'pypy')
86+
run: echo "SETUPTOOLS_ENFORCE_DEPRECATION=0" >> $GITHUB_ENV
8487
- name: Install tox
8588
run: |
8689
python -m pip install tox

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ deps =
66
# ^-- use dev version while we wait for the new release
77
setenv =
88
PYTHONWARNDEFAULTENCODING = 1
9-
SETUPTOOLS_ENFORCE_DEPRECATION = 1
9+
SETUPTOOLS_ENFORCE_DEPRECATION = {env:SETUPTOOLS_ENFORCE_DEPRECATION:1}
1010
commands =
1111
pytest {posargs}
1212
usedevelop = True
1313
extras =
1414
testing
1515
pass_env =
1616
SETUPTOOLS_USE_DISTUTILS
17+
SETUPTOOLS_ENFORCE_DEPRECATION
1718
PRE_BUILT_SETUPTOOLS_WHEEL
1819
PRE_BUILT_SETUPTOOLS_SDIST
1920
TIMEOUT_BACKEND_TEST # timeout (in seconds) for test_build_meta

0 commit comments

Comments
 (0)