Skip to content

Commit

Permalink
ci: Remove Python 3.8; add Python 3.11 and 3.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niloth-p committed Dec 3, 2024
1 parent fb73220 commit b7c73dd
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 18 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/zulip-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# server release.
name: Zulip server CI

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

defaults:
run:
Expand All @@ -17,12 +17,6 @@ jobs:
fail-fast: false
matrix:
include:
# Focal ships with Python 3.8.10.
- docker_image: zulip/ci:focal
name: Ubuntu 20.04 (Python 3.8, backend)
os: focal
legacy_client_interface: "3"
server_version: refs/tags/3.2
# Bullseye ships with Python 3.9.2.
- docker_image: zulip/ci:bullseye
name: Debian 11 (Python 3.9, backend)
Expand All @@ -35,6 +29,18 @@ jobs:
os: jammy
legacy_client_interface: "6"
server_version: refs/tags/6.0
# Debian 12 ships with Python 3.11.2.
- docker_image: zulip/ci:bookworm
name: Debian 12 (Python 3.11, backend + documentation)
os: bookworm
include_documentation_tests: true
include_frontend_tests: false
# Ubuntu 24.04 ships with Python 3.12.2.
- docker_image: zulip/ci:noble
name: Ubuntu 24.04 (Python 3.12, backend)
os: noble
legacy_client_interface: "7"
server_version: refs/tags/7.0

runs-on: ubuntu-latest
name: ${{ matrix.name }} (Zulip ${{matrix.server_version}})
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/zulip-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- ci-update
pull_request:

jobs:
Expand All @@ -13,10 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.9"

- name: Install dependencies
run: tools/provision --force
Expand All @@ -32,7 +33,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 100
target-version = ["py38"]
target-version = ["py39"]

[tool.isort]
src_paths = [
Expand Down
2 changes: 1 addition & 1 deletion zulip/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The [Zulip API](https://zulip.com/api) Python bindings require the
following dependencies:

* **Python (version >= 3.8)**
* **Python (version >= 3.9)**
* requests (version >= 0.12.1)

**Note**: If you'd like to use the Zulip bindings with Python 2, we
Expand Down
4 changes: 2 additions & 2 deletions zulip/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ def recur_expand(target_root: Any, dir: Any) -> Generator[Tuple[str, List[str]],
"License :: OSI Approved :: Apache Software License",
"Topic :: Communications :: Chat",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
python_requires=">=3.8",
python_requires=">=3.9",
url="https://www.zulip.org/",
project_urls={
"Source": "https://github.com/zulip/python-zulip-api/",
Expand Down
4 changes: 2 additions & 2 deletions zulip_bots/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
"License :: OSI Approved :: Apache Software License",
"Topic :: Communications :: Chat",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
python_requires=">=3.8",
python_requires=">=3.9",
url="https://www.zulip.org/",
project_urls={
"Source": "https://github.com/zulip/python-zulip-api/",
Expand Down
4 changes: 2 additions & 2 deletions zulip_botserver/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"License :: OSI Approved :: Apache Software License",
"Topic :: Communications :: Chat",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
python_requires=">=3.8",
python_requires=">=3.9",
url="https://www.zulip.org/",
project_urls={
"Source": "https://github.com/zulip/python-zulip-api/",
Expand Down

0 comments on commit b7c73dd

Please sign in to comment.