Skip to content

Drop Python 3.9 #34

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

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- windows-latest
- macos-latest
python-version:
- '3.9'
- '3.10'
- '3.13'
steps:
- uses: actions/checkout@v4
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-added-large-files
args: [--maxkb=2000]
Expand All @@ -19,29 +19,29 @@ repos:
- id: trailing-whitespace
files: \.(py|sh|rst|yml|yaml)$
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
rev: v2.15.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.5.0
rev: v2.6.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
rev: v0.12.9
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.17.1
hooks:
- id: mypy
files: ^openapi_generator_cli/
args: [--strict]
additional_dependencies:
- jdk4py
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
rev: v0.45.0
hooks:
- id: markdownlint
exclude: ^.github/PULL_REQUEST_TEMPLATE.md
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pip install openapi-generator-cli
pip install openapi-generator-cli==4.3.1
```

You can also install with [`jdk4py`] instead of `java` binary. (`python>=3.10` is required)
You can also install with [`jdk4py`] instead of `java` binary.

```sh
pip install openapi-generator-cli[jdk4py]
Expand Down
2 changes: 1 addition & 1 deletion openapi_generator_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def run(args: list[str] | None = None) -> subprocess.CompletedProcess[bytes]:
"""
java_path: Path | str | None
try:
from jdk4py import JAVA
from jdk4py import JAVA # noqa: PLC0415

java_path = JAVA
except ImportError:
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ keywords = [
]
license = { text = "APACHE 2.0" }
authors = [ { name = "OpenAPI Generator community", email = "[email protected]" } ]
requires-python = ">=3.9,<4"
requires-python = ">=3.10,<4"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
Loading
Loading