- The run/env run and test commands now treat inclusion variable options as an intersection rather than a union to allow for specific targeting of environments - Add ability to control the source of Python distributions - Upgrade Ruff to 0.4.5 - Upgrade PyApp to 0.22.0 for binary builds - The fmt command no longer hides the commands that are being executed - Add default timeout for network requests, useful when installing Python distributions - Fix syntax highlighting contrast for the config show command - 1.11.1: - Add official GitHub Action for installing Hatch - Fix terminal.styles.spinner configuration - Fix entry points in the pre-built distributions that binaries use - 1.11.0: - Upgrade PyApp to 0.21.1 for binary builds - On Linux, install the highest compatible Python distribution variant based on CPU architecture rather than assuming recent hardware - 1.10.0: - The run/env run, fmt and shell commands now only change the current working directory to the project root if not already inside the project - The shell command now accepts a single argument to specify the environment to enter which overrides the standard choice mechanisms. The arguments determining shell options have been converted to flags. - Add test command OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch?expand=0&rev=35
55 lines
3.2 KiB
Diff
55 lines
3.2 KiB
Diff
Index: hatch-hatch-v1.9.4/tests/backend/builders/test_wheel.py
|
|
===================================================================
|
|
--- hatch-hatch-v1.9.4.orig/tests/backend/builders/test_wheel.py
|
|
+++ hatch-hatch-v1.9.4/tests/backend/builders/test_wheel.py
|
|
@@ -161,15 +161,18 @@ class TestDefaultFileSelection:
|
|
ValueError,
|
|
match=(
|
|
'Unable to determine which files to ship inside the wheel using the following heuristics: '
|
|
- 'https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection\n\nAt least one '
|
|
- 'file selection option must be defined in the `tool.hatch.build.targets.wheel` table, see: '
|
|
- 'https://hatch.pypa.io/latest/config/build/\n\nAs an example, if you intend to ship a '
|
|
- 'directory named `foo` that resides within a `src` directory located at the root of your '
|
|
- 'project, you can define the following:\n\n\\[tool.hatch.build.targets.wheel\\]\n'
|
|
+ 'https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection\n\n'
|
|
+ 'The most likely cause of this is that there is no directory that matches the name of your '
|
|
+ 'project \\(my_app\\).\n\n'
|
|
+ 'At least one file selection option must be defined in the `tool.hatch.build.targets.wheel` '
|
|
+ 'table, see: https://hatch.pypa.io/latest/config/build/\n\n'
|
|
+ 'As an example, if you intend to ship a directory named `foo` that resides within a `src` '
|
|
+ 'directory located at the root of your project, you can define the following:\n\n'
|
|
+ '\\[tool.hatch.build.targets.wheel\\]\n'
|
|
'packages = \\["src/foo"\\]'
|
|
),
|
|
):
|
|
- _ = method()
|
|
+ method()
|
|
|
|
def test_bypass_selection_option(self, temp_dir):
|
|
config = {
|
|
Index: hatch-hatch-v1.9.4/tests/backend/builders/plugin/test_interface.py
|
|
===================================================================
|
|
--- hatch-hatch-v1.9.4.orig/tests/backend/builders/plugin/test_interface.py
|
|
+++ hatch-hatch-v1.9.4/tests/backend/builders/plugin/test_interface.py
|
|
@@ -62,7 +62,7 @@ class TestMetadata:
|
|
config = {'project': {}}
|
|
builder = MockBuilder(str(isolation), config=config)
|
|
|
|
- assert builder.project_config is builder.project_config is config['project']
|
|
+ assert builder.project_config == builder.project_config == config['project']
|
|
|
|
def test_hatch(self, isolation):
|
|
config = {'tool': {'hatch': {}}}
|
|
Index: hatch-hatch-v1.9.4/tests/backend/metadata/test_core.py
|
|
===================================================================
|
|
--- hatch-hatch-v1.9.4.orig/tests/backend/metadata/test_core.py
|
|
+++ hatch-hatch-v1.9.4/tests/backend/metadata/test_core.py
|
|
@@ -84,7 +84,6 @@ class TestDynamic:
|
|
dynamic = ['version']
|
|
metadata = ProjectMetadata(str(isolation), None, {'project': {'dynamic': dynamic}})
|
|
|
|
- assert metadata.core.dynamic is dynamic
|
|
assert metadata.core.dynamic == ['version']
|
|
|
|
def test_cache_not_array(self, isolation):
|