Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate to Python 3.11 #1162

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/autoblack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: 3.11
- name: Install Black
run: pip install black==22.10.0 click==8.1.3
- name: Run black --check .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.9]
python-version: [3.11]
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up python
uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: 3.11
- uses: abatilo/actions-poetry@v2.1.4
- name: Run poetry build
run: poetry build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quality_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.9"
- "3.11"

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
rev: 22.10.0
hooks:
- id: black
language_version: python3.9
language_version: python3.11

- repo: https://github.com/pycqa/flake8
rev: 3.9.2
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PYTHON_VERSION=3.9
ARG PYTHON_VERSION=3.11

# base python setup
# -----------------
Expand Down
4 changes: 2 additions & 2 deletions doc/how-to-guides/deployment/dev-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ This is an alternative if you are reluctant to use Docker, or have some other re
After cloning the repository:
1. Make sure a [recent version of Poetry is installed](https://python-poetry.org/docs/#installation)

2. Configure Poetry to use Python 3.9:
2. Configure Poetry to use Python 3.11:
```bash
poetry env use python3.9
poetry env use python3.11
```

3. Install the dependencies:
Expand Down
2 changes: 1 addition & 1 deletion doc/introduction/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@ Before you submit a pull request, check that it meets these guidelines:

1. The pull request should include tests.
2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring.
3. The pull request should work for Python 3.9. Check <https://github.com/openfoodfacts/robotoff/actions> and make sure that the tests pass for all supported Python versions.
3. The pull request should work for Python 3.11. Check <https://github.com/openfoodfacts/robotoff/actions> and make sure that the tests pass for all supported Python versions.

This contributing page was adapted from [Pyswarms documentation](https://github.com/ljvmiranda921/pyswarms/blob/master/CONTRIBUTING.rst).
2 changes: 1 addition & 1 deletion doc/references/package.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This document presents a brief, high-level overview of Robotoff’s library prim

## Install

Robotoff is currently compatible with Python 3.9.
Robotoff is currently compatible with Python 3.11.
Robotoff can be installed [following dev install doc](../how-to-guides/deployment/dev-install.md)

## Play with the Open Food Facts dataset
Expand Down
2 changes: 1 addition & 1 deletion docker/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ x-robotoff-dev: &robotoff-dev
args:
OFF_UID: ${OFF_UID:-1000}
OFF_GID: ${OFF_GID:-1000}
PYTHON_VERSION: ${PYTHON_VERSION:-3.9}
PYTHON_VERSION: ${PYTHON_VERSION:-3.11}
volumes:
# make updates to code available
- ./robotoff:/opt/robotoff/robotoff
Expand Down
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ theme:

markdown_extensions:
- footnotes
- mdx_truly_sane_lists
raphael0202 marked this conversation as resolved.
Show resolved Hide resolved
- pymdownx.highlight
- pymdownx.superfences

Expand Down
Loading
Loading