Skip to content

feat(build): officially support Python 3.11 #2343

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

Merged
merged 1 commit into from
Oct 26, 2022
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/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4.3.0
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: pip install tox
- name: Build docs
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4.3.0
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: pip install tox twine wheel
- name: Check twine readme rendering
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v4.3.0
with:
python-version: "3.10"
python-version: "3.11"
- run: pip install --upgrade tox
- name: Run commitizen (https://commitizen-tools.github.io/commitizen/)
run: tox -e cz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v3.1.0
- uses: actions/setup-python@v4.3.0
with:
python-version: "3.10"
python-version: "3.11"
- name: install tox
run: pip install tox==3.26.0
- name: pre-commit
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ jobs:
os: [ubuntu-latest]
python:
- version: "3.7"
toxenv: py37
toxenv: py37,smoke
- version: "3.8"
toxenv: py38
toxenv: py38,smoke
- version: "3.9"
toxenv: py39
toxenv: py39,smoke
- version: "3.10"
toxenv: py310,smoke
- version: '3.11.0-alpha - 3.11' # SemVer's version range syntax
- version: "3.11"
toxenv: py311,smoke
include:
- os: macos-latest
python:
version: "3.10"
version: "3.11"
toxenv: py310,smoke
- os: windows-latest
python:
version: "3.10"
version: "3.11"
toxenv: py310,smoke
steps:
- uses: actions/checkout@v3.1.0
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4.3.0
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: pip install tox
- name: Run tests
Expand All @@ -88,7 +88,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.3.0
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: pip install tox
- name: Run tests
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ARG PYTHON_FLAVOR=alpine
FROM python:3.10-${PYTHON_FLAVOR} AS build
FROM python:3.11-${PYTHON_FLAVOR} AS build

WORKDIR /opt/python-gitlab
COPY . .
RUN python setup.py bdist_wheel

FROM python:3.10-${PYTHON_FLAVOR}
FROM python:3.11-${PYTHON_FLAVOR}

WORKDIR /opt/python-gitlab
COPY --from=build /opt/python-gitlab/dist dist/
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def get_version() -> str:
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
extras_require={
"autocompletion": ["argcomplete>=1.10.0,<3"],
Expand Down