Skip to content

Commit

Permalink
feat: Python 3.12 update
Browse files Browse the repository at this point in the history
`tox -e docs` still fails
  • Loading branch information
dalpasso authored and sbrunato committed Nov 7, 2023
1 parent 790df60 commit 20aa426
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, "3.11"]
python-version: [3.8, "3.12"]
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout the repo
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
uses: 5monkeys/cobertura-action@master
if: ${{ github.event_name == 'pull_request' }}
with:
path: artifacts/unit-test-results-python3.11-ubuntu-latest/coverage.xml
path: artifacts/unit-test-results-python3.12-ubuntu-latest/coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
pull_request_number: ${{ github.pull_request.number }}
minimum_coverage: 70
Expand All @@ -107,7 +107,7 @@ jobs:
uses: 5monkeys/cobertura-action@master
if: ${{ github.event_name == 'pull_request' }}
with:
path: artifacts/unit-test-results-python3.11-windows-latest/coverage.xml
path: artifacts/unit-test-results-python3.12-windows-latest/coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
pull_request_number: ${{ github.pull_request.number }}
minimum_coverage: 70
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -19,7 +19,7 @@ repos:
- id: check-merge-conflict

- repo: 'https://github.com/PyCQA/flake8'
rev: 5.0.4 # needed for py < 3.8.1
rev: 6.1.0 # needed for py < 3.8.1
hooks:
- id: flake8
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Expand Up @@ -75,7 +75,7 @@ To run the entire tests (units, integration and end-to-end):
you, please `install <https://pandoc.org/installing.html>`_ pandoc and try
again.

* eodag is tested against python versions 3.8, 3.9, 3.10 and 3.11. Ensure you have
* eodag is tested against python versions 3.8, 3.9, 3.10, 3.11 and 3.12. Ensure you have
these versions installed before you run tox. You can use
`pyenv <https://github.com/pyenv/pyenv>`_ to manage many different versions
of python
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -26,6 +26,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Topic :: Internet :: WWW/HTTP :: Indexing/Search
Topic :: Scientific/Engineering :: GIS
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Expand Up @@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
[tox]
envlist = py38, py39, py310, py311, docs, pypi, linters
envlist = py38, py39, py310, py311, py312, docs, pypi, linters
skipdist = true

# Mapping required by tox-gh-actions, only used in CI
Expand All @@ -26,6 +26,7 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[testenv]
commands =
Expand Down

0 comments on commit 20aa426

Please sign in to comment.