From 273da661db48a4dd932702dc6b8466491343bc1c Mon Sep 17 00:00:00 2001 From: Michael Kelly Date: Fri, 24 Feb 2023 21:04:59 -0800 Subject: [PATCH] Add remaining nox sessions based on tox.ini This change introduces venv and bindep sessions based on the same testenvs from tox.ini. Change-Id: I4d2c92d8cd9e96cbcd1b54c6b4b565aedc9a60e3 --- noxfile.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/noxfile.py b/noxfile.py index 4ce4440..01146fb 100644 --- a/noxfile.py +++ b/noxfile.py @@ -52,3 +52,18 @@ def linters(session): set_standard_env_vars(session) session.install('flake8') session.run('flake8') + + +@nox.session(python='3') +def venv(session): + set_standard_env_vars(session) + session.install('-r', 'requirements.txt') + session.install('-e', '.') + session.run(*session.posargs) + + +@nox.session(python='3') +def bindep(session): + set_standard_env_vars(session) + session.install('bindep') + session.run('bindep', 'test')