Skip to content

Commit

Permalink
Drop support python 3.7 on runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
koxudaxi committed Aug 7, 2024
1 parent f7652d3 commit 8a23386
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 160 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: [3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-latest]
isort-version: [4.3.21, 5.6.4]
black-version: [22.1.0, default]
Expand All @@ -39,16 +39,6 @@ jobs:
black-version: 23.12.1
python-version: 3.12
pydantic-version: 2.4.2
- os: macos-13
isort-version: 5.6.4
black-version: 22.1.0
python-version: 3.7
pydantic-version: 2.4.2
- os: macos-13
isort-version: 5.6.4
black-version: 22.1.0
python-version: 3.7
pydantic-version: 1.10.9
exclude:
- os: windows-latest
black-version: 22.1.0
Expand All @@ -58,8 +48,6 @@ jobs:
isort-version: 4.3.21
- os: macos-latest
isort-version: 4.3.21
- os: macos-latest
python-version: 3.7
- os: windows-latest
pydantic-version: 1.5.1
- os: macos-latest
Expand All @@ -85,18 +73,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install old Poetry
uses: snok/install-poetry@v1
if: matrix.python-version == '3.7'
with:
version: 1.4.2
virtualenvs-path: .venv
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install Poetry
uses: snok/install-poetry@v1
if: matrix.python-version != '3.7'
with:
version: 1.7.1
virtualenvs-path: .venv
Expand Down
137 changes: 2 additions & 135 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ classifiers = [
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -41,7 +40,7 @@ patterns = ["(^version: str = ')[^']*(')"]
datamodel-codegen = "datamodel_code_generator.__main__:main"

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
pydantic = [
{extras = ["email"], version = ">=1.5.1,<3.0,!=2.4.0", python = "<3.10"},
{extras = ["email"], version = ">=1.9.0,<3.0,!=2.4.0", python = "~3.10"},
Expand Down

0 comments on commit 8a23386

Please sign in to comment.