Skip to content

Commit 2e2a040

Browse files
committed
Add scripts for downstream testing
Fix #406
1 parent 8c9866d commit 2e2a040

File tree

9 files changed

+76
-0
lines changed

9 files changed

+76
-0
lines changed

RELEASING.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Release Procedure
22
-----------------
33

4+
#. Dependening on the magnitude of the changes in the release, consider testing
5+
some of the large downstream users of pluggy against the upcoming release.
6+
You can do so using the scripts in the ``downstream/`` directory.
7+
48
#. From a clean work tree, execute::
59

610
tox -e release -- VERSION

downstream/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/conda/
2+
/datasette/
3+
/devpi/
4+
/hatch/
5+
/pytest/
6+
/tox/

downstream/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This directory contains scripts for testing some downstream projects
2+
against your current pluggy worktree.

downstream/conda.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
set -eux -o pipefail
3+
if [[ ! -d conda ]]; then
4+
git clone https://github.com/conda/conda
5+
fi
6+
pushd conda && trap popd EXIT
7+
git pull
8+
set +eu
9+
source dev/start
10+
set -eu
11+
pip install -e ../../
12+
pytest -m "not integration and not installed"

downstream/datasette.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -eux -o pipefail
3+
if [[ ! -d datasette ]]; then
4+
git clone https://github.com/simonw/datasette
5+
fi
6+
pushd datasette && trap popd EXIT
7+
git pull
8+
python -m venv venv
9+
venv/bin/pip install -e .[test] -e ../..
10+
venv/bin/pytest

downstream/devpi.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
set -eux -o pipefail
3+
if [[ ! -d devpi ]]; then
4+
git clone https://github.com/devpi/devpi
5+
fi
6+
pushd devpi && trap popd EXIT
7+
git pull
8+
python -m venv venv
9+
venv/bin/pip install -r dev-requirements.txt -e ../..
10+
venv/bin/pytest common
11+
venv/bin/pytest server
12+
venv/bin/pytest client
13+
venv/bin/pytest web

downstream/hatch.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -eux -o pipefail
3+
if [[ ! -d hatch ]]; then
4+
git clone https://github.com/pypa/hatch
5+
fi
6+
pushd hatch && trap popd EXIT
7+
git pull
8+
python -m venv venv
9+
venv/bin/pip install -e . -e ./backend -e ../..
10+
venv/bin/hatch run dev

downstream/pytest.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -eux -o pipefail
3+
if [[ ! -d pytest ]]; then
4+
git clone https://github.com/pytest-dev/pytest
5+
fi
6+
pushd pytest && trap popd EXIT
7+
git pull
8+
python -m venv venv
9+
venv/bin/pip install -e .[testing] -e ../..
10+
venv/bin/pytest

downstream/tox.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
set -eux -o pipefail
3+
if [[ ! -d tox ]]; then
4+
git clone https://github.com/tox-dev/tox
5+
fi
6+
pushd tox && trap popd EXIT
7+
python -m venv venv
8+
venv/bin/pip install -e .[testing] -e ../..
9+
venv/bin/pytest

0 commit comments

Comments
 (0)