Skip to content

Commit

Permalink
build: allow direct references in metadata
Browse files Browse the repository at this point in the history
As those are useful to refer to local packages relative
to the root of a bigger repository. i.e.

optional-dependencies.foo = [
    "foo @ file:///{root:uri}/sub/dir/foo",
]
  • Loading branch information
phaer authored and adisbladis committed Jan 3, 2025
1 parent 44d76a0 commit d63b49d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/lib/renderers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ in
inherit (project') entry-points;
};

# Allow direct references in dependencies and other metadata
tool.hatch.metadata.allow-direct-references = true;

# Allow empty package
tool.hatch.build.targets.wheel.bypass-selection = true;

Expand Down

0 comments on commit d63b49d

Please sign in to comment.