Skip to content

Commit e67ee9f

Browse files
committed
Add a build helper session
1 parent c766f58 commit e67ee9f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

RELEASING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Releasing
33

44
1. Merge all intended and verified pull requests into the ``master`` branch.
55
2. Create a local build and test:
6-
- Run ``python -m build`` to create a source distribution and a wheel.
6+
- Run ``uv run noxfile.py -s build`` to create a source distribution and a wheel.
77
- Install both artifacts in a fresh virtual environment to ensure they work correctly.
88
3. Bump the version number in ``setup.py``. (May be included in the pull request.)
99
4. Update the changelog in ``CHANGES.rst``.

noxfile.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,12 @@ def dev(session):
9393
session.run(".venv/bin/pip", "install", "-e", ".", external=True)
9494

9595

96+
@nox.session(default=False)
97+
def build(session):
98+
"""Build the package."""
99+
session.install("build")
100+
session.run("python", "-m", "build")
101+
102+
96103
if __name__ == "__main__":
97104
nox.main()

0 commit comments

Comments
 (0)