Matej Cepl
fcd053b419
- Update to v1.6.3 ## Fixed: * Fix version command when the version is dynamic and build dependencies are unmet - Release 1.6.2 - 2022-10-20 ## Fixed: * Fix getting dynamic metadata from hooks for environments when dependencies are not dynamic - Release 1.6.1 - 2022-10-16 ## Fixed: * Computing the path to the user's home directory now gracefully falls back to ~ when it cannot be determined - Release 1.6.0 - 2022-10-08 ## Changed: * The run_shell_command environment interface method now accepts arbitrary subprocess.Popen keyword arguments. This is not strictly breaking, but will be utilized in upcoming features. * The internal directory structure for storing virtual environments is now more nested. This is not breaking, but any local environments will be created anew. ## Added: * Add project command group to view details about the project like PEP 621 metadata * Better support for auto-detection of environments by tools like Visual Studio Code now that the storage directory of virtual environments will be flat if Hatch's configured virtual environment directory resides somewhere within the project root or if it is set to a .virtualenvs directory within the user's home directory * Build environments for the virtual environment type are now OBS-URL: https://build.opensuse.org/request/show/1057152 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=13
44 lines
1.9 KiB
Diff
44 lines
1.9 KiB
Diff
From c42f1d7086e4a8d1a7e1f299c50db2f1a16a2e3d Mon Sep 17 00:00:00 2001
|
|
From: Ofek Lev <ofekmeister@gmail.com>
|
|
Date: Sat, 10 Dec 2022 11:49:48 -0500
|
|
Subject: [PATCH] Remove unnecessary encoding declaration
|
|
|
|
---
|
|
backend/src/hatchling/version/core.py | 1 -
|
|
docs/history/hatchling.md | 4 ++++
|
|
tests/backend/builders/hooks/test_version.py | 2 --
|
|
3 files changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/backend/src/hatchling/version/core.py b/backend/src/hatchling/version/core.py
|
|
index 38c26aca7..cad01f94b 100644
|
|
--- a/backend/src/hatchling/version/core.py
|
|
+++ b/backend/src/hatchling/version/core.py
|
|
@@ -5,7 +5,6 @@
|
|
|
|
DEFAULT_PATTERN = r'(?i)^(__version__|VERSION) *= *([\'"])v?(?P<version>.+?)\2'
|
|
DEFAULT_TEMPLATE = """\
|
|
-# -*- coding: utf-8 -*-
|
|
# This file is auto-generated by Hatchling. As such, do not:
|
|
# - modify
|
|
# - track in version control e.g. be sure to add to .gitignore
|
|
diff --git a/tests/backend/builders/hooks/test_version.py b/tests/backend/builders/hooks/test_version.py
|
|
index 3b916d3ed..b03500292 100644
|
|
--- a/tests/backend/builders/hooks/test_version.py
|
|
+++ b/tests/backend/builders/hooks/test_version.py
|
|
@@ -91,7 +91,6 @@ def update(self, metadata):
|
|
assert expected_file.is_file()
|
|
assert expected_file.read_text() == helpers.dedent(
|
|
"""
|
|
- # -*- coding: utf-8 -*-
|
|
# This file is auto-generated by Hatchling. As such, do not:
|
|
# - modify
|
|
# - track in version control e.g. be sure to add to .gitignore
|
|
@@ -132,7 +131,6 @@ def update(self, metadata):
|
|
assert expected_file.is_file()
|
|
assert expected_file.read_text() == helpers.dedent(
|
|
"""
|
|
- # -*- coding: utf-8 -*-
|
|
# This file is auto-generated by Hatchling. As such, do not:
|
|
# - modify
|
|
# - track in version control e.g. be sure to add to .gitignore
|