Skip to content

Commit

Permalink
Add workaround for unreleased PyNaCl
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Nov 17, 2023
1 parent b243818 commit 6553a44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ jobs:
echo "PRE_BUILT_SETUPTOOLS_SDIST=$(ls dist/*.tar.gz)" >> $GITHUB_ENV
echo "PRE_BUILT_SETUPTOOLS_WHEEL=$(ls dist/*.whl)" >> $GITHUB_ENV
rm -rf setuptools.egg-info # Avoid interfering with the other tests
- name: Workaround for unreleased PyNaCl (pyca/pynacl#805)
if: contains(matrix.python, 'pypy')
shell: bash
run: echo "SETUPTOOLS_ENFORCE_DEPRECATION=0" >> $GITHUB_ENV
- name: Install tox
run: |
python -m pip install tox
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ deps =
# ^-- use dev version while we wait for the new release
setenv =
PYTHONWARNDEFAULTENCODING = 1
SETUPTOOLS_ENFORCE_DEPRECATION = 1
SETUPTOOLS_ENFORCE_DEPRECATION = {env:SETUPTOOLS_ENFORCE_DEPRECATION:1}
commands =
pytest {posargs}
usedevelop = True
extras =
testing
pass_env =
SETUPTOOLS_USE_DISTUTILS
SETUPTOOLS_ENFORCE_DEPRECATION
PRE_BUILT_SETUPTOOLS_WHEEL
PRE_BUILT_SETUPTOOLS_SDIST
TIMEOUT_BACKEND_TEST # timeout (in seconds) for test_build_meta
Expand Down

0 comments on commit 6553a44

Please sign in to comment.