nox-poetry
Low maintenance activity. Last release 21 months ago, commits in 3 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install nox-poetrynox-poetry
Use Poetry inside Nox sessions
This package provides a drop-in replacement for the nox.session decorator,
and for the nox.Session object passed to user-defined session functions.
This enables session.install to install packages at the versions specified in the Poetry lock file.
from nox_poetry import session
@session(python=["3.10", "3.9"])
def tests(session):
session.install("pytest", ".")
session.run("pytest")
Disclaimer: This project is not affiliated with Nox, and not an official Nox plugin.
Installation
Install nox-poetry from the Python Package Index:
$ pip install nox-poetry
Important: This package must be installed into the same environment that Nox is run from. If you installed Nox using pipx, use the following command to install this package into the same environment:
$ pipx inject nox nox-poetry
nox-poetry relies on functionality from
, which
is bundled by default in Poetry 1, but not in Poetry >= 2. In Poetry 2, define it
as a required plugin in your :