Skip to content

Commit

Permalink
🚨 🚨 🚨 Goodbye Python 3.8! 🚨 🚨 🚨 (#3194)
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr authored Oct 24, 2024
1 parent 2f39575 commit 85f3564
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
fail-fast: false
steps:
- uses: actions/[email protected]
- 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'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- 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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
]
steps:
- uses: actions/[email protected]
- 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'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_imports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
]
steps:
- uses: actions/[email protected]
- 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'

Expand Down
4 changes: 2 additions & 2 deletions docker/accelerate-cpu/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 85f3564

Please sign in to comment.