From 91a860eec58240ffe59f84fb5e795f65bfe86a04 Mon Sep 17 00:00:00 2001 From: Christoph Sieber Date: Tue, 7 Jan 2025 16:19:37 +0100 Subject: [PATCH] install only test requirements don't install complete list of dev requirements for the test execution as this could mask runtime dependencies to dev requirements as discussed in https://github.com/octodns/octodns-template/pull/42 --- script/cibuild-setup-py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/cibuild-setup-py b/script/cibuild-setup-py index 19065e4..b695823 100755 --- a/script/cibuild-setup-py +++ b/script/cibuild-setup-py @@ -18,6 +18,10 @@ python -m build --sdist --wheel echo "## validate wheel install ###################################################" pip install dist/*$VERSION*.whl echo "## validate tests can run against installed code ###############################" -pip install -r requirements-dev.txt +# filename needs to resolved independently as pip requires quoting and doesn't support +# wildcards when installing extra requirements +# (see: https://pip.pypa.io/en/stable/user_guide/#installing-from-wheels) +wheel_file=$(ls dist/*$VERSION*.whl) +pip install "${wheel_file}[test]" pytest --disable-network echo "## complete ####################################################################"