Skip to content

Commit

Permalink
Maintenance: Update to Python 3.11, and modernize dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jun 3, 2024
1 parent 3598b76 commit 8410979
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip pre-commit
Expand All @@ -45,7 +45,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install ".[docs]"
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade -e ".[testing]"
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Changelog
Unreleased
----------

* Maintenance: Update to Python 3.11, and modernize dependencies

2.39.0 (2024-05-22)
-------------------

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build container
FROM python:3.8-slim AS build
FROM python:3.11-slim AS build

RUN mkdir -pv /src

Expand All @@ -14,7 +14,7 @@ RUN python -m pip install -U setuptools==65.5.1 && \


# Run container
FROM python:3.8-slim
FROM python:3.11-slim

LABEL license="Apache License 2.0" \
maintainer="Crate.IO GmbH <[email protected]>" \
Expand Down
31 changes: 17 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ def read(path: str) -> str:
package_data={"crate.operator": ["data/*"]},
setup_requires=["setuptools>=58", "setuptools_scm>=6.2"],
install_requires=[
"aiopg==1.4.0",
"bitmath==1.3.3.1",
"kopf==1.35.6",
"aiopg<1.5",
"bitmath<1.4",
"kopf<1.37",
# Careful with 22+ - it is currently not compatible
# and results in various "permission denied" errors.
"kubernetes-asyncio==21.7.1",
"PyYAML<7.0",
"prometheus_client==0.20.0",
"aiohttp==3.9.5",
"wrapt==1.16.0",
"kubernetes-asyncio<22",
"PyYAML<7",
"prometheus_client<0.21",
"aiohttp<3.10",
"wrapt<1.17",
],
extras_require={
"docs": [
Expand All @@ -70,12 +70,12 @@ def read(path: str) -> str:
"alabaster==0.7.13",
],
"testing": [
"faker==18.3.1",
"pytest==8.2.1",
"pytest-aiohttp==1.0.5",
"pytest-asyncio==0.23.6",
"pytest-xdist==3.6.1", # enables parallel testing
"filelock==3.14.0", # used for locks when running in parallel mode
"faker<19",
"pytest<9",
"pytest-aiohttp<2",
"pytest-asyncio<0.24",
"pytest-xdist<3.7", # enables parallel testing
"filelock<3.15", # used for locks when running in parallel mode
],
"develop": [
"black==22.3.0",
Expand All @@ -90,6 +90,9 @@ def read(path: str) -> str:
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
use_scm_version=True,
)

0 comments on commit 8410979

Please sign in to comment.