Skip to content

Commit

Permalink
remove python 3.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
strickvl committed Sep 23, 2024
1 parent 8c2a9e7 commit cabcd77
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 30 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
uses: ./.github/workflows/setup-python-environment.yml
with:
Expand All @@ -38,7 +38,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
uses: ./.github/workflows/setup-python-environment.yml
with:
Expand All @@ -51,7 +51,7 @@ jobs:
strategy:
matrix:
os: [macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
uses: ./.github/workflows/setup-python-environment.yml
with:
Expand All @@ -64,7 +64,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
uses: ./.github/workflows/lint-unit-test.yml
with:
Expand All @@ -77,7 +77,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
uses: ./.github/workflows/lint-unit-test.yml
with:
Expand All @@ -90,7 +90,7 @@ jobs:
strategy:
matrix:
os: [macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
uses: ./.github/workflows/lint-unit-test.yml
with:
Expand Down
19 changes: 3 additions & 16 deletions .github/workflows/lint-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ on:
description: 'Python version'
type: choice
options:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
required: false
default: '3.8'
default: '3.9'
enable_tmate:
description: 'Enable tmate session for debugging'
type: choice
Expand Down Expand Up @@ -86,20 +85,8 @@ jobs:
- name: Docstring check
run: bash scripts/docstring.sh
# Only run the docstring check on ubuntu-latest and python 3.8
if: ${{ inputs.os == 'ubuntu-latest' && inputs.python-version == '3.8' }}

# - name: Markdown link check
# uses: gaurav-nelson/github-action-markdown-link-check@v1
# with:
# use-quiet-mode: 'yes'
# use-verbose-mode: 'no'
# folder-path: './examples, ./docs/book, ./src'
# file-path: './README.md, ./LICENSE, ./RELEASE_NOTES.md, CODE-OF-CONDUCT.md, CONTRIBUTING.md, CLA.md, RELEASE_NOTES.md, ROADMAP.md'
# config-file: .github/workflows/markdown_check_config.json
# continue-on-error: true
# # Only run the markdown link check on ubuntu-latest and python 3.8
# if: ${{ inputs.os == 'ubuntu-latest' && inputs.python-version == '3.8' }}
# Only run the docstring check on ubuntu-latest and python 3.9
if: ${{ inputs.os == 'ubuntu-latest' && inputs.python-version == '3.9' }}

- name: Run unit tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.8"
python-version: "3.9"
- name: Install Poetry
uses: snok/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
uses: ./.github/workflows/lint-unit-test.yml
with:
os: "ubuntu-latest"
python-version: "3.8"
python-version: "3.9"
secrets: inherit

# checks zenml and mlstacks can be installed together in same environment
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
python-version: "3.9"

- name: Install current package as editable
run: pip install -e .
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ classifiers = [
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down Expand Up @@ -64,7 +63,7 @@ exclude = [
]

[tool.poetry.dependencies]
python = ">=3.8,<3.13"
python = ">=3.9,<3.13"
pydantic = { version = "~2.8" }
pyyaml = { version = ">=6.0.1" }
click = { version = "^8.0.1,<8.1.4" }
Expand Down Expand Up @@ -164,8 +163,8 @@ select = [
ignore = ["COM812", "ISC001"]

src = ["src", "tests"]
# use Python 3.8 as the minimum version for autofixing
target-version = "py38"
# use Python 3.9 as the minimum version for autofixing
target-version = "py39"
ignore-init-module-imports = true
# # Disable autofix for unused imports (`F401`).
# unfixable = ["F401"]
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/docker-compose.localstack.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.8"
version: "3.9"

services:
localstack:
Expand Down

0 comments on commit cabcd77

Please sign in to comment.