Skip to content

Commit

Permalink
Add Python 3.12 and two minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed May 21, 2024
1 parent 9e6cbed commit 8ce18b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion {{cookiecutter.project_slug}}/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
5 changes: 3 additions & 2 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8ce18b3

Please sign in to comment.