Skip to content

Packaging: wheel ships the package twice (force-include profiles_app) and carries dead setuptools config #38

Closed

Description

@falbany

Three leftovers in pyproject.toml from earlier packaging iterations:

  1. Duplicated payload. [tool.hatch.build.targets.wheel] packages = ["src/profiles"] (:71) and [tool.hatch.build.targets.wheel.force-include] "src/profiles" = "profiles_app" (:74-75). The editable install's RECORD (.venv/.../profiles_app-0.10.0.dist-info/RECORD) already shows a full physical profiles_app/ tree alongside the editable path hook exposing profiles/. Nothing in the repo imports profiles_app — in a regular wheel the app would ship twice under two names, and src/profiles/core/AGENTS.md gets dragged into site-packages. Fix: drop the force-include block and verify wheel contents (unzip -l dist/*.whl) before/after.
  2. Dead setuptools config. [tool.setuptools.packages.find] (:77-80) and [tool.setuptools.package-data] (:187-191) — the build backend is hatchling; setuptools never runs. Remove (the profiles.web dist data is already covered by hatch artifacts).
  3. While in there: [tool.pylint.TYPECHECK] ignored-modules lists profiles.utils.shortcut, whose only oddity is bare ctypes.wintypes attribute access at utils/shortcut.py:59 — importing wintypes properly would let the ignore be narrowed.

Activity

  1. added
    code-quality
    on Oct 30, 2026
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

    code-quality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions