diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f56fca9c3..a1468804f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,8 +21,8 @@ jobs: with: persist-credentials: false - - name: Install toml - run: pip install toml + - name: Install eachdist dependencies + run: python -m pip install -c dev-requirements.txt toml - name: Set environment variables run: | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6a4645af6c..f2cdcc51d2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,6 +69,8 @@ You can run `tox` with the following arguments: - `tox -e ruff` to run ruff linter and formatter checks against the entire codebase - `tox -e typecheck` to run pyright against entire code base. - `tox -e public-symbols-check` to run public_symbols_checker.py. +- `tox -e eachdist -- ` to run `scripts/eachdist.py` in an isolated environment, + for example `tox -e eachdist -- version --mode stable`. - `tox -e docker-tests-{otlpexporter,opencensus}` to run tests in both or either one location. - `tox -e tracecontext` to run integration tests for tracecontext. - `tox -e precommit` to run all `pre-commit` actions diff --git a/dev-requirements.txt b/dev-requirements.txt index caa46ac0c4..d035411e8b 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -21,4 +21,5 @@ psutil==7.2.2 GitPython==3.2.1 pre-commit==3.7.0 ruff==0.16.1 +toml==0.10.2 testcontainers==4.13.3 diff --git a/tox.ini b/tox.ini index 9b0a2e6743..cf239e2036 100644 --- a/tox.ini +++ b/tox.ini @@ -481,6 +481,14 @@ commands = python {toxinidir}/scripts/griffe_check.py python {toxinidir}/scripts/public_symbols_checker.py +[testenv:eachdist] +deps = + -c {toxinidir}/dev-requirements.txt + toml +commands_pre = +commands = + python {toxinidir}/scripts/eachdist.py {posargs:--help} + [testenv:generate-workflows] deps = tox