Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-hatchling for openSUSE:Factory checked in at 2023-12-28 22:54:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hatchling (Old) and /work/SRC/openSUSE:Factory/.python-hatchling.new.28375 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hatchling" Thu Dec 28 22:54:51 2023 rev:21 rq:1135288 version:1.21.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hatchling/python-hatchling.changes 2023-12-15 21:46:52.877277335 +0100 +++ /work/SRC/openSUSE:Factory/.python-hatchling.new.28375/python-hatchling.changes 2023-12-28 22:54:58.824227182 +0100 @@ -1,0 +2,6 @@ +Thu Dec 21 14:30:24 UTC 2023 - Benoît Monin <benoit.mo...@gmx.fr> + +- update to 1.21.0: + * Add parent context modifier for path fields + +------------------------------------------------------------------- Old: ---- hatchling-1.20.0.tar.gz New: ---- hatchling-1.21.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-hatchling.spec ++++++ --- /var/tmp/diff_new_pack.t5tYpT/_old 2023-12-28 22:54:59.308244851 +0100 +++ /var/tmp/diff_new_pack.t5tYpT/_new 2023-12-28 22:54:59.312244998 +0100 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-hatchling -Version: 1.20.0 +Version: 1.21.0 Release: 0 Summary: Build backend used by Hatch License: MIT ++++++ hatchling-1.20.0.tar.gz -> hatchling-1.21.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.20.0/PKG-INFO new/hatchling-1.21.0/PKG-INFO --- old/hatchling-1.20.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: hatchling -Version: 1.20.0 +Version: 1.21.0 Summary: Modern, extensible Python build backend Project-URL: Homepage, https://hatch.pypa.io/latest/ Project-URL: Sponsor, https://github.com/sponsors/ofek diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.20.0/src/hatchling/__about__.py new/hatchling-1.21.0/src/hatchling/__about__.py --- old/hatchling-1.20.0/src/hatchling/__about__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.0/src/hatchling/__about__.py 2020-02-02 01:00:00.000000000 +0100 @@ -1 +1 @@ -__version__ = '1.20.0' +__version__ = '1.21.0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.20.0/src/hatchling/cli/build/__init__.py new/hatchling-1.21.0/src/hatchling/cli/build/__init__.py --- old/hatchling-1.20.0/src/hatchling/cli/build/__init__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.0/src/hatchling/cli/build/__init__.py 2020-02-02 01:00:00.000000000 +0100 @@ -86,7 +86,7 @@ app.display_info(artifact) -def build_command(subparsers: argparse._SubParsersAction, defaults: Any) -> None: # noqa: SLF001 +def build_command(subparsers: argparse._SubParsersAction, defaults: Any) -> None: parser = subparsers.add_parser('build') parser.add_argument( '-d', '--directory', dest='directory', help='The directory in which to build artifacts', **defaults diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.20.0/src/hatchling/cli/dep/__init__.py new/hatchling-1.21.0/src/hatchling/cli/dep/__init__.py --- old/hatchling-1.20.0/src/hatchling/cli/dep/__init__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.0/src/hatchling/cli/dep/__init__.py 2020-02-02 01:00:00.000000000 +0100 @@ -23,14 +23,14 @@ sys.exit(0 if dependencies_in_sync(list(map(Requirement, dependencies)), sys_path) else 1) -def synced_command(subparsers: argparse._SubParsersAction, defaults: Any) -> None: # noqa: SLF001 +def synced_command(subparsers: argparse._SubParsersAction, defaults: Any) -> None: parser = subparsers.add_parser('synced') parser.add_argument('dependencies', nargs='+') parser.add_argument('-p', '--python', dest='python', **defaults) parser.set_defaults(func=synced_impl) -def dep_command(subparsers: argparse._SubParsersAction, defaults: Any) -> None: # noqa: SLF001 +def dep_command(subparsers: argparse._SubParsersAction, defaults: Any) -> None: parser = subparsers.add_parser('dep') subparsers = parser.add_subparsers() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.20.0/src/hatchling/cli/metadata/__init__.py new/hatchling-1.21.0/src/hatchling/cli/metadata/__init__.py --- old/hatchling-1.20.0/src/hatchling/cli/metadata/__init__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.0/src/hatchling/cli/metadata/__init__.py 2020-02-02 01:00:00.000000000 +0100 @@ -48,7 +48,7 @@ def metadata_command( - subparsers: argparse._SubParsersAction, # noqa: SLF001 + subparsers: argparse._SubParsersAction, defaults: Any, # noqa: ARG001 ) -> None: parser = subparsers.add_parser('metadata') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.20.0/src/hatchling/cli/version/__init__.py new/hatchling-1.21.0/src/hatchling/cli/version/__init__.py --- old/hatchling-1.20.0/src/hatchling/cli/version/__init__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.0/src/hatchling/cli/version/__init__.py 2020-02-02 01:00:00.000000000 +0100 @@ -44,7 +44,7 @@ app.display_info(f'New: {updated_version}') -def version_command(subparsers: argparse._SubParsersAction, defaults: Any) -> None: # noqa: SLF001 +def version_command(subparsers: argparse._SubParsersAction, defaults: Any) -> None: parser = subparsers.add_parser('version') parser.add_argument('desired_version', default='', nargs='?', **defaults) parser.add_argument('--app', dest='called_by_app', action='store_true', help=argparse.SUPPRESS) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hatchling-1.20.0/src/hatchling/utils/context.py new/hatchling-1.21.0/src/hatchling/utils/context.py --- old/hatchling-1.20.0/src/hatchling/utils/context.py 2020-02-02 01:00:00.000000000 +0100 +++ new/hatchling-1.21.0/src/hatchling/utils/context.py 2020-02-02 01:00:00.000000000 +0100 @@ -26,6 +26,19 @@ if not modifier: return os.path.normpath(path) + modifiers = modifier.split(':')[::-1] + while modifiers and modifiers[-1] == 'parent': + path = os.path.dirname(path) + modifiers.pop() + + if not modifiers: + return path + + if len(modifiers) > 1: + message = f'Expected a single path modifier and instead got: {", ".join(reversed(modifiers))}' + raise ValueError(message) + + modifier = modifiers[0] if modifier == 'uri': return path_to_uri(path)