Skip to content

Commit

Permalink
update python version
Browse files Browse the repository at this point in the history
  • Loading branch information
haohanyang committed Nov 6, 2024
1 parent be55558 commit 3217d7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ jobs:
- uses: actions/checkout@v4
- name: Pull pybind11
run: git submodule update --init --recursive
- name: Setup Python
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'
- name: Install build tools
run: pip install wheel setuptools cibuildwheel==2.21.3
- name: Build wheels
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"

[tool.mypy]
files = "setup.py"
python_version = "3.7"
python_version = "3.9"
strict = true
show_error_codes = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
Expand Down Expand Up @@ -38,7 +38,7 @@ test-skip = ["*universal2:arm64"]
before-build = "rm -rf {project}/build"

[tool.ruff]
target-version = "py37"
target-version = "py39"

[tool.ruff.lint]
extend-select = [
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@ def build_extension(self, ext: CMakeExtension) -> None:
cmdclass={"build_ext": CMakeBuild},
zip_safe=False,
extras_require={"test": ["pytest>=6.0"]},
python_requires=">=3.7",
python_requires=">=3.9",
)

0 comments on commit 3217d7b

Please sign in to comment.