Skip to content

update python to 3.10 and Keras to 3.6 #2292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ jobs:
version: [keras-stable]
include:
- backend: jax
version: keras-3.5
version: keras-3.8
- backend: jax
version: keras-nightly
runs-on: ubuntu-latest
env:
KERAS_BACKEND: ${{ matrix.backend }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.10'
- name: Get pip cache dir
id: pip-cache
run: |
Expand All @@ -48,11 +48,11 @@ jobs:
run: |
pip install -r requirements.txt --progress-bar off
pip install --no-deps -e "." --progress-bar off
- name: Pin Keras 3.5
if: ${{ matrix.version == 'keras-3.5'}}
- name: Pin Keras 3.8
if: ${{ matrix.version == 'keras-3.8'}}
run: |
pip uninstall -y keras
pip install keras==3.5.0 --progress-bar off
pip install keras==3.8.0 --progress-bar off
- name: Pin Keras Nightly
if: ${{ matrix.version == 'keras-nightly'}}
run: |
Expand All @@ -75,10 +75,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.10'
- name: Get pip cache dir
id: pip-cache
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.10'
- name: Get pip cache dir
id: pip-cache
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.10'
- name: Get pip cache dir
id: pip-cache
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stale-issue-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
- cron: "30 1 * * *"
jobs:
close-issues:
# only runs in main repo, skips forks
if: github.repository == 'keras-team/keras-hub'
runs-on: ubuntu-latest
permissions:
issues: write
Expand All @@ -12,6 +14,7 @@ jobs:
- name: Awaiting response issues
uses: actions/stale@v9
with:
operations-per-run: 500
days-before-issue-stale: 14
days-before-issue-close: 14
stale-issue-label: "stale"
Expand All @@ -34,6 +37,7 @@ jobs:
- name: Contribution issues
uses: actions/stale@v9
with:
operations-per-run: 500
days-before-issue-stale: 180
days-before-issue-close: 365
stale-issue-label: "stale"
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [
]
description = "Pretrained models for Keras."
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"
license = "Apache-2.0"
dynamic = ["version"]
classifiers = [
Expand All @@ -27,7 +27,7 @@ classifiers = [
"Topic :: Software Development",
]
dependencies = [
"keras>=3.5",
"keras>=3.8",
"absl-py",
"numpy",
"packaging",
Expand Down
Loading