Skip to content

The tutorial https://packaging.python.org/en/latest/tutorials/packaging-projects/ does not work with hatch #111009

Closed as not planned

Description

@LLyaudet

Documentation

Hello,

This tutorial
https://packaging.python.org/en/latest/tutorials/packaging-projects/
says:
"this tutorial uses Hatchling by default, but it will work identically with setuptools, Flit, PDM, and others that support the [project] table for metadata."

But it seems it was converted from a tutorial with setuptools.
Hatchling does not seem to work well when the source of the package is in a src/ folder.
My repository here
https://github.com/LLyaudet/django-monkey-patches
demonstrates the problem.
I had to switch from hatch to setuptools to have a wheel that is correct.

Best regards,
Laurent Lyaudet

Activity

  1. added
    docs
    on Oct 17, 2023
  2. added
    pending
    and removed
    pending
    on Oct 17, 2023
  3. terryjreedy commented on Oct 17, 2023

    @terryjreedy
    Member

    This is not the repository for the packaging docs. This issue should be reopened in the appropriate repository.
    The tutorial page linked above, at the very bottom right corner, has a weblink button Found a bug?.

  4. LLyaudet commented on Oct 18, 2023

    @LLyaudet
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions