From 8c920b5c4b87fd8b54fd566c462c47f9e7f47693 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 17 Apr 2021 15:47:18 +0000 Subject: [PATCH] Make dist checking directory-agnostic Use the toxindir replacement macro in tox.ini to properly anchor the base directory for dist building and checking. This ensures it will run successfully even if the current working directory is not the top level directory of the source tree. --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 7c88da9..f9074fa 100644 --- a/tox.ini +++ b/tox.ini @@ -55,9 +55,9 @@ deps = twine wheel commands = - rm -fr dist + rm -fr {toxinidir}/dist python setup.py bdist_wheel sdist - twine check --strict dist/* + twine check --strict {toxinidir}/dist/* usedevelop = False [testenv:docs] -- 2.11.0