diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 034e29392..7b270f527 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/news/747-py38 b/news/747-py38 new file mode 100644 index 000000000..71c7dfb6a --- /dev/null +++ b/news/747-py38 @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* + +### Deprecations + +* + +### Docs + +* + +### Other + +* Adjust metadata to require Python 3.8 or above, as needed by 3.6.0. (#747) diff --git a/pyproject.toml b/pyproject.toml index 4e2d0a129..e53e6b64b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.black] line-length = 100 -target-version = ['py37', 'py38', 'py39', 'py310'] +target-version = ['py38', 'py39', 'py310'] [tool.isort] profile = "black" diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 702ca535d..6636c3dd3 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -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] diff --git a/setup.py b/setup.py index 9bb529441..e4bad058f 100644 --- a/setup.py +++ b/setup.py @@ -33,5 +33,5 @@ package_data={ "constructor": ['header.sh', 'nsis/*', 'osx/*', 'ttf/*'] }, - python_requires=">=3.7", + python_requires=">=3.8", ) diff --git a/tests/test_header.py b/tests/test_header.py index ab8c5daf9..b72a8d3ef 100644 --- a/tests/test_header.py +++ b/tests/test_header.py @@ -17,7 +17,7 @@ from constructor.utils import preprocess -@lru_cache() +@lru_cache def available_command(cmd): return which(cmd) is not None