Docker image is now based on Python 3.11 (#6714)

This commit is contained in:
Bert Blommers 2023-08-23 07:28:42 +00:00 committed by GitHub
parent a853fd714d
commit 22dcdf86ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 6 deletions

View File

@ -36,8 +36,16 @@ jobs:
grep ${{ env.VERSION }} CHANGELOG.md || { echo "Ensure that the CHANGELOG contains an entry for ${{ env.VERSION }}" ; exit 1; }
- name: Set version number
run: python update_version_from_git.py ${{ env.VERSION }}
- name: Build
- name: Build Python
run: python -m build
- name: Build Docker release
run: |
docker build -t motoserver/moto . --tag moto:${{ env.VERSION }}
- name: Test Docker release
run: |
docker run -p 5000:5000 --name moto motoserver/moto &
TEST_SERVER_MODE=true pytest -sv tests/test_core tests/test_s3
docker stop moto
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
@ -46,9 +54,6 @@ jobs:
run: |
git tag ${{ env.VERSION }}
git push origin ${{ env.VERSION }}
- name: Build Docker release
run: |
docker build -t motoserver/moto . --tag moto:${{ env.VERSION }}
# Required to get the correct Digest
# See https://github.com/docker/build-push-action/issues/461
- name: Set up QEMU

View File

@ -1,6 +1,13 @@
Moto Changelog
==============
4.2.0
------
Docker Digest for 4.2.0: <autopopulateddigest>
General:
The Docker image is now based on Python 3.11 (instead of 3.7)
4.1.15
------
Docker Digest for 4.1.15: _sha256:eb63b1e0cbbd757e4596844e6ac1865660cbf8e358203b79e5404d57de94dd69_

View File

@ -1,4 +1,4 @@
FROM python:3.7-slim
FROM python:3.11-slim
ADD . /moto/
ENV PYTHONUNBUFFERED 1

View File

@ -210,7 +210,7 @@ mock_all = MockAll
# logging.getLogger('boto').setLevel(logging.CRITICAL)
__title__ = "moto"
__version__ = "4.1.16.dev"
__version__ = "4.2.0.dev"
try: