Skip to content

Commit

Permalink
Require Python 3.8+ (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp authored Jan 13, 2024
1 parent 831caa5 commit d934f13
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py37-plus", "--keep-percent-format"]
args: ["--py38-plus", "--keep-percent-format"]
exclude: ^(constructor/nsis/.*py)
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
Expand Down
19 changes: 19 additions & 0 deletions news/747-py38
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* Adjust metadata to require Python 3.8 or above, as needed by 3.6.0. (#747)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 100
target-version = ['py37', 'py38', 'py39', 'py310']
target-version = ['py38', 'py39', 'py310']

[tool.isort]
profile = "black"
Expand Down
4 changes: 2 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ build:

requirements:
host:
- python
- python # >=3.8
- pip
run:
- conda >=4.6
- python
- python # >=3.8
- ruamel.yaml >=0.11.14,<0.19
- conda-standalone
- pillow >=3.1 # [win or osx]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
package_data={
"constructor": ['header.sh', 'nsis/*', 'osx/*', 'ttf/*']
},
python_requires=">=3.7",
python_requires=">=3.8",
)
2 changes: 1 addition & 1 deletion tests/test_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from constructor.utils import preprocess


@lru_cache()
@lru_cache
def available_command(cmd):
return which(cmd) is not None

Expand Down

0 comments on commit d934f13

Please sign in to comment.