Skip to content

Commit a035fc8

Browse files
author
Denis Navarro
committed
chore(*): Remove Python 3.7 and Python 3.8 support and add Python 3.11, Python 3.12 and Python 3.13 support
1 parent 9564fa2 commit a035fc8

23 files changed

Lines changed: 167 additions & 171 deletions

.github/workflows/cd.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
env:
1616
VERSION: ${{ github.event.inputs.release_version }}
1717
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-python@v4
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v5
2020
with:
21-
python-version: '3.12'
21+
python-version: '3.13.0-rc.2'
2222
- name: version
2323
run: sed -i "s/__version__ = '.*'/__version__ = '$VERSION'/g" aioddd/__init__.py
2424
- name: deps
@@ -28,7 +28,8 @@ jobs:
2828
TWINE_USERNAME: ${{ secrets.POETRY_HTTP_BASIC_PYPI_USERNAME }}
2929
TWINE_PASSWORD: ${{ secrets.POETRY_HTTP_BASIC_PYPI_PASSWORD }}
3030
run: |
31-
git config user.name ${{ github.actor }}
31+
git config user.name "${{ github.actor }}"
32+
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
3233
git commit . -m "release: v${VERSION}"
3334
git push origin main
3435
git tag $VERSION

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ ubuntu-latest ]
17-
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
17+
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13.0-rc.2' ]
1818
steps:
19-
- uses: actions/checkout@v3
20-
- uses: actions/setup-python@v4
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323
- name: deps

Containerfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FROM docker.io/continuumio/miniconda3:latest AS miniconda3
2+
3+
WORKDIR /app
4+
5+
RUN conda install -y --download-only "python=3.12" && \
6+
conda install -y --download-only "python=3.11" && \
7+
conda install -y --download-only "python=3.10" && \
8+
conda install -y --download-only "python=3.9"
9+
10+
COPY . ./
11+
12+
ENTRYPOINT ["python3"]
13+
CMD ["run-script"]
14+
15+
FROM miniconda3 AS py312
16+
17+
RUN conda install -y "python=3.12"
18+
RUN --mount=type=cache,target=/root/.cache/pip python3 run-script dev-install
19+
20+
FROM miniconda3 AS py311
21+
22+
RUN conda install -y "python=3.11"
23+
RUN --mount=type=cache,target=/root/.cache/pip python3 run-script dev-install
24+
25+
FROM miniconda3 AS py310
26+
27+
RUN conda install -y "python=3.10"
28+
RUN --mount=type=cache,target=/root/.cache/pip python3 run-script dev-install
29+
30+
FROM miniconda3 AS py39
31+
32+
RUN conda install -y "python=3.9"
33+
RUN --mount=type=cache,target=/root/.cache/pip python3 run-script dev-install

Dockerfile

Lines changed: 0 additions & 26 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 - 2023 aiopy
3+
Copyright (c) 2020 - 2024 aiopy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if __name__ == '__main__':
7979

8080
## Requirements
8181

82-
- Python >= 3.7
82+
- Python >= 3.9
8383

8484
## Contributing
8585

aioddd/testing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import Any, Dict, List, Optional, Type, Union
22
from unittest.mock import AsyncMock, MagicMock, Mock, patch
33

4-
54
SanitizeObject = Union[Dict[Any, Any], List[Any]]
65

76

aioddd/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ def env(key: Optional[str] = None, typ: Optional[Type[_T]] = None) -> _T:
8383
return val # type: ignore
8484

8585

86-
env.resolver = lambda: None # type: ignore
86+
env.resolver = lambda: {} # type: ignore

compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
services:
2+
aioddd:
3+
build:
4+
context: .
5+
dockerfile: Containerfile
6+
# target: py39
7+
# target: py310
8+
# target: py311
9+
target: py312
10+
# image: ghcr.io/aiopy/python-aioddd:py39-${VERSION:-latest}
11+
# image: ghcr.io/aiopy/python-aioddd:py310-${VERSION:-latest}
12+
# image: ghcr.io/aiopy/python-aioddd:py311-${VERSION:-latest}
13+
image: ghcr.io/aiopy/python-aioddd:py312-${VERSION:-latest}
14+
volumes:
15+
- .:/app

docker-compose.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)