From a8582d3bb26d3c67a957ed694260c8669b607f24 Mon Sep 17 00:00:00 2001 From: chyroc Date: Thu, 26 Sep 2024 20:02:16 +0800 Subject: [PATCH] build: Add support for Python 3.7 --- .github/workflows/ci.yml | 12 ++++++------ pyproject.toml | 15 +-------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15d4628..ce2704b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,12 +15,12 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - os: ["ubuntu-latest"] - os-label: ["Ubuntu"] + python-version: [ "3.7","3.8", "3.9", "3.10", "3.11", "3.12" ] + os: [ "ubuntu-latest" ] + os-label: [ "Ubuntu" ] include: - - {python-version: "3.8", os: "windows-latest", os-label: "Windows"} - - {python-version: "3.8", os: "macos-latest", os-label: "macOS"} + - { python-version: "3.8", os: "windows-latest", os-label: "Windows" } + - { python-version: "3.8", os: "macos-latest", os-label: "macOS" } steps: - uses: actions/checkout@v3 - name: Set up Python @@ -54,7 +54,7 @@ jobs: name: "Test success" if: always() runs-on: ubuntu-latest - needs: [test] + needs: [ test ] steps: - name: "Success" if: needs.test.result == 'success' diff --git a/pyproject.toml b/pyproject.toml index eb7b891..16a5376 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["chyroc "] readme = "README.md" [tool.poetry.dependencies] -python = "^3.8" +python = "^3.7" pydantic = "^2.9.2" authlib = "^1.3.2" httpx = "^0.27.2" @@ -17,19 +17,6 @@ tox = "^4.20.0" ruff = "^0.6.7" pre-commit = "^3.5.0" -[tool.black] -line-length = 120 -target-version = ['py38'] -include = '\.pyi?$' -extend-exclude = ''' -/( - # The following are specific to Black, you probably don't want those. - \.git - | .venv - | dist -) -''' - [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"