Python: Difference between revisions

Lukeb (talk | contribs)
fixed broken link for pyproject use-cases
m fix broken link to pyproject docs
 
Line 546: Line 546:
[project.scripts]
[project.scripts]
cli = "app.main:main"
cli = "app.main:main"
</syntaxhighlight>We package the application by calling the <code>loadPyproject</code> function from <code>pyproject.nix</code>. Again, we only show a minimal example. More information can be found in the [https://nix-community.github.io/pyproject.nix/use-cases/pyproject.html documentation]. Note that this example relies on flakes in contrast to some of the others on this page.<syntaxhighlight lang="nix">
</syntaxhighlight>We package the application by calling the <code>loadPyproject</code> function from <code>pyproject.nix</code>. Again, we only show a minimal example. More information can be found in the [https://pyproject-nix.github.io/pyproject.nix/use-cases/pyproject.html documentation]. Note that this example relies on flakes in contrast to some of the others on this page.<syntaxhighlight lang="nix">
{
{
   description = "A basic flake using pyproject.toml project metadata";
   description = "A basic flake using pyproject.toml project metadata";