diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 59aeb66b6a5..3e968577075 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -27,10 +27,10 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v3.1.0 - - name: Set up python 3.8 + - name: Set up python 3.9 uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.9 cache: 'pip' cache-dependency-path: 'setup.py' diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index bb590777fb4..f375b0673dd 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -7,10 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3.1.0 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.9 cache: 'pip' cache-dependency-path: 'setup.py' - name: Install Python dependencies diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index bd8cdac6a5a..34f7a4226b8 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.9 cache: 'pip' cache-dependency-path: 'setup.py' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9940caac264..bd905bc31e5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,10 +39,10 @@ jobs: ] steps: - uses: actions/checkout@v3.1.0 - - name: Set up python 3.8 + - name: Set up python 3.9 uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.9 cache: 'pip' cache-dependency-path: 'setup.py' diff --git a/.github/workflows/test_imports.yml b/.github/workflows/test_imports.yml index 90e5229bc86..1781f3457d6 100644 --- a/.github/workflows/test_imports.yml +++ b/.github/workflows/test_imports.yml @@ -27,10 +27,10 @@ jobs: ] steps: - uses: actions/checkout@v3.1.0 - - name: Set up python 3.8 + - name: Set up python 3.9 uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.9 cache: 'pip' cache-dependency-path: 'setup.py' diff --git a/docker/accelerate-cpu/Dockerfile b/docker/accelerate-cpu/Dockerfile index ac417634215..663abf63e96 100644 --- a/docker/accelerate-cpu/Dockerfile +++ b/docker/accelerate-cpu/Dockerfile @@ -1,7 +1,7 @@ # Builds CPU-only Docker image of PyTorch # Uses multi-staged approach to reduce size # Stage 1 -FROM python:3.8-slim as compile-image +FROM python:3.9-slim as compile-image ARG DEBIAN_FRONTEND=noninteractive @@ -25,7 +25,7 @@ RUN python3 -m pip install --no-cache-dir \ --extra-index-url https://download.pytorch.org/whl/cpu # Stage 2 -FROM python:3.8-slim AS build-image +FROM python:3.9-slim AS build-image COPY --from=compile-image /opt/venv /opt/venv RUN useradd -ms /bin/bash user USER user diff --git a/setup.py b/setup.py index 044066046a5..2cb3bac19e4 100644 --- a/setup.py +++ b/setup.py @@ -69,7 +69,7 @@ "accelerate-merge-weights=accelerate.commands.merge:main", ] }, - python_requires=">=3.8.0", + python_requires=">=3.9.0", install_requires=[ "numpy>=1.17,<3.0.0", "packaging>=20.0",