Skip to content

Commit a7b797e

Browse files
committed
Merge pull request #137 from r1chardj0n3s/document-pdm
Document using pdm for pyproject.toml
2 parents a3b489a + 0009d83 commit a7b797e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ on:
1515
jobs:
1616
build:
1717

18-
runs-on: ubuntu-latest
19-
2018
strategy:
2119
matrix:
2220
# These versions match the minimum and maximum versions of pip in
@@ -25,6 +23,9 @@ jobs:
2523
pip-version: ['==23.2', '']
2624
# The minimum version should be represented in setup.py.
2725
python-version: ["3.9", "3.10", "3.11", "3.12-dev"]
26+
os: [ubuntu-latest]
27+
28+
runs-on: ${{ matrix.os }}
2829

2930
steps:
3031
- uses: actions/checkout@v4

README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ check by name (or glob pattern) using `--ignore-module` (shorthand is `-m`)::
8585
pip-missing-reqs --ignore-module=spam --ignore-module=spam.* sample
8686

8787

88+
Using `pyproject.toml` instead of `requirements.txt`
89+
----------------------------------------------------
90+
91+
If your project uses `pyproject.toml` instead of `requirements.txt`, you can
92+
use an external tool like `pdm` to convert it to `requirements.txt`::
93+
94+
# requires `pip install pdm`
95+
pdm export --pyproject > requirements.txt
96+
97+
Then you can use `pip-missing-reqs` and `pip-extra-reqs` as usual.
98+
8899
With Thanks To
89100
--------------
90101

0 commit comments

Comments
 (0)