Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder substitution breaks Hatch's {root:uri} #2

Open
object-Object opened this issue Dec 16, 2023 · 0 comments
Open

Placeholder substitution breaks Hatch's {root:uri} #2

object-Object opened this issue Dec 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@object-Object
Copy link
Member

https://hatch.pypa.io/latest/config/dependency/#local

      Traceback (most recent call last):
        File "C:\Users\...\Git\HexBug\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 167, in prepare_metadata_for_build_editable
          hook = backend.prepare_metadata_for_build_editable
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'hatchling.build' has no attribute 'prepare_metadata_for_build_editable'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "C:\Users\...\Git\HexBug\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>   
          main()
        File "C:\Users\...\Git\HexBug\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main       
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\...\Git\HexBug\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 176, in prepare_metadata_for_build_editable
          whl_basename = build_hook(metadata_directory, config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\...\AppData\Local\Temp\pip-build-env-6lxs01zj\overlay\Lib\site-packages\hatchling\build.py", line 82, in build_editable
          return os.path.basename(next(builder.build(directory=wheel_directory, versions=['editable'])))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\...\AppData\Local\Temp\pip-build-env-6lxs01zj\overlay\Lib\site-packages\hatchling\builders\plugin\interface.py", line 90, in build
          self.metadata.validate_fields()
        File "C:\Users\...\AppData\Local\Temp\pip-build-env-6lxs01zj\overlay\Lib\site-packages\hatchling\metadata\core.py", line 243, in validate_fields
          _ = self.version
              ^^^^^^^^^^^^
        File "C:\Users\...\AppData\Local\Temp\pip-build-env-6lxs01zj\overlay\Lib\site-packages\hatchling\metadata\core.py", line 128, in version
          self._version = self._get_version()
                          ^^^^^^^^^^^^^^^^^^^
        File "C:\Users\...\AppData\Local\Temp\pip-build-env-6lxs01zj\overlay\Lib\site-packages\hatchling\metadata\core.py", line 222, in _get_version
          core_metadata = self.core
                          ^^^^^^^^^
        File "C:\Users\...\AppData\Local\Temp\pip-build-env-6lxs01zj\overlay\Lib\site-packages\hatchling\metadata\core.py", line 174, in core 
          metadata_hook.update(self.core_raw_metadata)
        File "C:\Users\...\AppData\Local\Temp\pip-build-env-6lxs01zj\overlay\Lib\site-packages\hatch_gradle_version\plugins\metadata_hook\base.py", line 35, in update
          self.parse_dependencies(self.dependencies),
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\...\AppData\Local\Temp\pip-build-env-6lxs01zj\overlay\Lib\site-packages\hatch_gradle_version\common\decorators.py", line 13, in wrapper
          return list(func(*args, **kwargs))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\...\AppData\Local\Temp\pip-build-env-6lxs01zj\overlay\Lib\site-packages\hatch_gradle_version\plugins\metadata_hook\base.py", line 56, in parse_dependencies
          yield dependency.format_map(key_values)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      KeyError: 'root'
@object-Object object-Object added the bug Something isn't working label Dec 16, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in hexdoc Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant