From 8ce18b38fb53cf458038d805cb89c22830ac57ef Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Tue, 21 May 2024 19:29:47 +0200 Subject: [PATCH] Add Python 3.12 and two minor fixes --- CHANGELOG.md | 6 ++++++ {{cookiecutter.project_slug}}/README.md | 1 - {{cookiecutter.project_slug}}/pyproject.toml | 5 +++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd1f7fb..523404e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Version 0.6 + +- Fix: `PIP_COMPILE_UPGRADE_PACKAGE` instead of `PIP_COMPILE_UPGRADE` in `upgrade-pkg` hatch command +- Chg: Set `pip-compile-hashes = false` in `pyproject.toml` +- Chg: Add `"Programming Language :: Python :: 3.12"` + ## Version 0.5 - Chg: remove note about adding `hatch config set dirs.env.virtual .direnv` as hatch is supported by VSC 1.88 diff --git a/{{cookiecutter.project_slug}}/README.md b/{{cookiecutter.project_slug}}/README.md index cd6630d..40f9252 100644 --- a/{{cookiecutter.project_slug}}/README.md +++ b/{{cookiecutter.project_slug}}/README.md @@ -44,7 +44,6 @@ This package was created with [The Hatchlor] project template. [pipx]: https://pypa.github.io/pipx/ [hatch]: https://hatch.pypa.io/ [pre-commit]: https://pre-commit.com/ -[VS Code]: https://code.visualstudio.com/docs/python/environments#_where-the-extension-looks-for-environments {%- if cookiecutter.lock_file_support %} [hatch-pip-compile]: https://github.com/juftin/hatch-pip-compile {%- endif %} diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 392e512..1cb9c7d 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -28,6 +28,7 @@ classifiers = [ # ToDo: Modify according to your needs! "Programming Language :: Python", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", ] # direct dependencies of this package, installed when users `pip install {{ cookiecutter.project_slug }}` later. @@ -227,13 +228,13 @@ post-install-commands = ["pre-commit install"] type = "pip-compile" pip-compile-constraint = "default" # keep locks between default & others consistent lock-filename = "locks/{env_name}.lock" -pip-compile-hashes = true +pip-compile-hashes = false # no hashes in lock files {%- endif %} dependencies = [] {%- if cookiecutter.lock_file_support %} [tool.hatch.envs.default.scripts] upgrade-all = "PIP_COMPILE_UPGRADE=1 hatch env run --env {env_name} -- python --version" -upgrade-pkg = "PIP_COMPILE_UPGRADE='{args}' hatch env run --env {env_name} -- python --version" +upgrade-pkg = "PIP_COMPILE_UPGRADE_PACKAGE='{args}' hatch env run --env {env_name} -- python --version" {%- endif %} # Test environment with test-only dependencies