Skip to content

Commit 9927dd4

Browse files
Lotramryneeverett
authored andcommitted
Add pip dependency cooldown
1 parent 4fd40e5 commit 9927dd4

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/bugwarrior.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141
4242
python3 -m venv .venv
4343
source .venv/bin/activate
44-
pip install --upgrade "pip>=25.1" setuptools
44+
pip install --upgrade "pip>=26.1"
45+
pip config --site set install.uploaded-prior-to P3D
46+
pip install --upgrade setuptools
4547
4648
pip install -e ".[all]"
4749
pip install --group test
@@ -80,7 +82,9 @@ jobs:
8082
mkdir .venv
8183
python3 -m venv .venv
8284
source .venv/bin/activate
83-
pip install --upgrade "pip>=25.1" setuptools
85+
pip install --upgrade "pip>=26.1"
86+
pip config --site set install.uploaded-prior-to P3D
87+
pip install --upgrade setuptools
8488
8589
pip install -e .[all]
8690
pip install --group test

bugwarrior/docs/contributing.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,20 @@ Now use your favorite tool to attain an editable installation.
1919

2020
.. tab:: pip
2121

22-
Requires pip >= 25.1 for `dependency group <https://peps.python.org/pep-0735/>`_ support.
22+
Requires pip >= 26.1 for `dependency group <https://peps.python.org/pep-0735/>`_
23+
support and ``--uploaded-prior-to`` duration support. The commands below
24+
configure the virtual environment's pip installation to use the same ``P3D``
25+
dependency cooldown as the uv ``exclude-newer = "3 days"`` setting in
26+
``pyproject.toml``.
2327

2428
.. code-block:: bash
2529
2630
$ mkdir .venv
2731
$ python -m venv .venv
2832
$ source .venv/bin/activate
29-
$ pip install --upgrade "pip>=25.1"
33+
$ pip install --upgrade "pip>=26.1"
34+
$ pip config --site set install.uploaded-prior-to P3D
35+
$ pip install --upgrade setuptools
3036
$ pip install -e .[all]
3137
$ pip install --group test
3238

0 commit comments

Comments
 (0)