Skip to content

Commit fc738c0

Browse files
authored
Pin tox version (#1480)
1 parent 25a6535 commit fc738c0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
python-version: ${{ env[matrix.python-version] }}
3636
- name: Install tox
37-
run: pip install -U tox-factor
37+
run: pip install tox==3.27.1 tox-factor
3838
- name: Cache tox environment
3939
# Preserves .tox directory between runs for faster installs
4040
uses: actions/cache@v1
@@ -107,7 +107,7 @@ jobs:
107107
with:
108108
python-version: 3.9
109109
- name: Install tox
110-
run: pip install -U tox
110+
run: pip install tox==3.27.1
111111
- name: Install libsnappy-dev
112112
if: ${{ matrix.tox-environment == 'lint' }}
113113
run: sudo apt-get install -y libsnappy-dev

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ some aspects of development, including testing against multiple Python versions.
3232
To install `tox`, run:
3333

3434
```console
35-
$ pip install tox
35+
$ pip install tox==3.27.1
3636
```
3737

3838
You can run `tox` with the following arguments:
@@ -103,7 +103,7 @@ Run tests:
103103

104104
```sh
105105
# make sure you have all supported versions of Python installed
106-
$ pip install tox # only first time.
106+
$ pip install tox==3.27.1 # only first time.
107107
$ tox # execute in the root of the repository
108108
```
109109

@@ -162,7 +162,7 @@ For a deeper discussion, see: https://github.com/open-telemetry/opentelemetry-sp
162162
## Running Tests Locally
163163

164164
1. Go to your Contrib repo directory. `git clone [email protected]:open-telemetry/opentelemetry-python-contrib.git && cd opentelemetry-python-contrib`.
165-
2. Make sure you have `tox` installed. `pip install tox`.
165+
2. Make sure you have `tox` installed. `pip install tox==3.27.1`.
166166
3. Run `tox` without any arguments to run tests for all the packages. Read more about [tox](https://tox.readthedocs.io/en/latest/).
167167

168168
### Testing against a different Core repo branch/commit

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Emeritus Maintainers:
124124
1. Go to your Contrib repo directory. `cd ~/git/opentelemetry-python-contrib`.
125125
2. Create a virtual env in your Contrib repo directory. `python3 -m venv my_test_venv`.
126126
3. Activate your virtual env. `source my_test_venv/bin/activate`.
127-
4. Make sure you have `tox` installed. `pip install tox`.
127+
4. Make sure you have `tox` installed. `pip install tox==3.27.1`.
128128
5. Run tests for a package. (e.g. `tox -e test-instrumentation-flask`.)
129129

130130
### Thanks to all the people who already contributed!

0 commit comments

Comments
 (0)