]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: force the use of tox 3
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 7 Dec 2022 22:14:20 +0000 (22:14 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 7 Dec 2022 22:14:20 +0000 (22:14 +0000)
Work around https://github.com/tox-dev/tox/issues/2619

.github/workflows/lint.yml
.github/workflows/tests.yml
README.rst

index 424ed02ae9faaeae13735e1facfb5ba3e363ee62..e891abf11583690e3fbce7826e7b65ea97e2d655 100644 (file)
@@ -20,7 +20,7 @@ jobs:
       - uses: actions/checkout@v3
       - uses: actions/setup-python@v4
       - name: Install tox
-        run: pip install tox
+        run: pip install "tox < 4"
       - name: Run black
         run: tox -e black
       - name: Run flake8
index 75f4a4451d82ea62ad232ff898dabe072afbc87c..fd1d255f317546e2d3643bafe2efe7226cf5dce7 100644 (file)
@@ -86,7 +86,8 @@ jobs:
             "libpq-dev=${pqver}" "libpq5=${pqver}"
 
       - name: Install tox
-        run: pip install tox
+        # https://github.com/tox-dev/tox/issues/2619
+        run: pip install "tox < 4"
 
       - name: Run tests (Python implementation)
         if: ${{ matrix.impl == 'python' }}
@@ -169,7 +170,7 @@ jobs:
           python-version: ${{ matrix.python }}
 
       - name: Install tox
-        run: pip install tox
+        run: pip install "tox < 4"
 
       - name: Run tests (Python implementation)
         if: ${{ matrix.impl == 'python' }}
@@ -221,7 +222,7 @@ jobs:
           python-version: ${{ matrix.python }}
 
       - name: Install tox
-        run: pip install tox wheel
+        run: pip install "tox < 4" wheel
 
       - name: Run tests (Python implementation)
         if: ${{ matrix.impl == 'python' }}
@@ -310,7 +311,7 @@ jobs:
           sudo apt-get -qq -y install "libpq-dev=${pqver}" "libpq5=${pqver}"
 
       - name: Install tox
-        run: pip install tox
+        run: pip install "tox < 4"
 
       - name: Run tests (Python implementation)
         if: ${{ matrix.impl == 'python' }}
index 040c9c158cb1ef69f9c2a31435e6cca642ca0fef..68c93a63433eeb865f81b4aa6765b644fcd11957 100644 (file)
@@ -70,7 +70,7 @@ Please add ``--config-settings editable_mode=strict`` to the ``pip install
 
 Now hack away! You can use tox to validate the code::
 
-    pip install tox
+    pip install "tox < 4"
     tox -p4
 
 and to run the tests::