From b435d7e68cc60ed177d0b4dbb5ddef1e52fc04a0 Mon Sep 17 00:00:00 2001 From: Vladimir Ritz Bossicard Date: Thu, 26 Jun 2025 19:07:31 +0200 Subject: [PATCH] Update Python versions --- .github/workflows/ci-cd.yml | 12 ++++++------ README.md | 4 ++-- pyproject.toml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 7885169..6942afb 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false # Don't cancel other jobs if one lint version fails matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -74,7 +74,7 @@ jobs: strategy: fail-fast: false # Don't cancel other jobs if one test version fails matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -116,7 +116,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -204,7 +204,7 @@ jobs: fail-fast: true # If one deployment fails, stop others matrix: # Define ALL python versions for Docker images - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] # Designate ONE primary version for PyPI publish and Docker 'latest' tag primary-py: ['3.11'] # Choose your primary Python version @@ -286,7 +286,7 @@ jobs: # Use the Git tag from the event ref as the base version # Assumes tags are like '0.1.0' or 'v0.1.0' - metadata-action handles 'v' prefix tags: | - # Generate tags like: 0.1.0-py3.8, 0.1-py3.8, 0-py3.8 + # Generate tags like: 0.1.0-py3.9, 0.1-py3.9, 0-py3.9 type=semver,pattern={{version}}-py${{ matrix.python-version }} type=semver,pattern={{major}}.{{minor}}-py${{ matrix.python-version }} type=semver,pattern={{major}}-py${{ matrix.python-version }} @@ -315,4 +315,4 @@ jobs: PYTHON_VERSION=${{ matrix.python-version }} VERSION=${{ steps.get_version_tag.outputs.VERSION }} cache-from: type=gha,scope=deploy-${{ matrix.python-version }} - cache-to: type=gha,mode=max,scope=deploy-${{ matrix.python-version }} \ No newline at end of file + cache-to: type=gha,mode=max,scope=deploy-${{ matrix.python-version }} diff --git a/README.md b/README.md index cd77cb1..4fc7b97 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ docker run --rm -v $(pwd):/app -w /app --entrypoint python python-gpt-po -m pyte ## 📋 Requirements -- Python 3.8+ +- Python 3.9+ - Dependencies: `polib`, `openai`, `anthropic`, `requests`, `tenacity` ## 📖 Documentation @@ -172,4 +172,4 @@ docker run --rm -v $(pwd):/app -w /app --entrypoint python python-gpt-po -m pyte ## 📄 License -MIT License - See [LICENSE](LICENSE) for details. \ No newline at end of file +MIT License - See [LICENSE](LICENSE) for details. diff --git a/pyproject.toml b/pyproject.toml index 7bda1c2..0a3f566 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ authors = [ ] description = "A CLI tool for translating .po files using GPT models." readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" license = {text = "MIT"} dependencies = [ "polib==1.2.0", @@ -41,11 +41,11 @@ classifiers = [ "Topic :: Text Processing :: Linguistic", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3 :: Only", "Natural Language :: English", "Natural Language :: Dutch",