Skip to main content

nox-pdm

Use PDM 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 pdm.lock file.

from nox_pdm import session, Session

@session(python=["3.10", "3.9"])
def tests(session: Session):
    # To install all packages in dependency group `tests` while using pdm.lock as constraint
    session.install(".[tests]")
    session.run("pytest")

Installation

Install nox-pdm from the Python Package Index:

pip install nox-pdm

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-pdm

Requirements

  • Python 3.9+
  • PDM >= 2.12.0

You need to have a PDM installation on your system. It does not have to be in the same environment, but at the very least running the command pdm should work. nox-pdm uses PDM via its command-line interface.

Credits

This project was inspired by Claudio Jolowicz's https://pypi.org/project/nox-poetry.

Metadata

Release files for nox-pdm 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nox-pdm 0.0.3
File Size Uploaded
nox_pdm-0.0.3.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nox-pdm 0.0.3
File Interpreter ABI Platform
nox_pdm-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / nox_pdm-0.0.3.tar.gz

Download URL nox_pdm-0.0.3.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8636111313e6c8cd87a25f51c7fd79ef9f6a831a77c8d195667199af7557ff58
BLAKE2b-256 checksum
How to use checksums
4b1a6dc68a351b9fa06533db73dc5b035473d2e5f4c0ddd751bd4e164a11db5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / nox_pdm-0.0.3-py3-none-any.whl

Download URL nox_pdm-0.0.3-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
025fe078d66d535fcff60ac3c543f1a7f69e1e9e290389752cb78e45242e0ca3
BLAKE2b-256 checksum
How to use checksums
8fced09c3e68e8274ad9f60b6e65adab4fae91a1da3bd11cc9a5ff088a05c007
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page