[Bug 265349] devel/py-jsonschema: include schemas in build, fix pip version

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 20 Jul 2022 22:37:56 UTC

            Bug ID: 265349
           Summary: devel/py-jsonschema: include schemas in build, fix pip
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: bofh@freebsd.org
          Reporter: ports@skyforge.at
          Assignee: bofh@freebsd.org
             Flags: maintainer-feedback?(bofh@freebsd.org)

Created attachment 235396
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=235396&action=edit
devel/py-jsonschema: include schemas in build, fix pip version

The recent update of devel/py-jsonschema in [1] has two issues that need

* The removal of the Manifest.in patch causes bug #264452 [2] to emerge again,
as the package is lacking the necessary json files
* Since the setup.py patch wasn't updated, the resulting package reports the
wrong version in pip:

# pip freeze | grep jsonschema

I've attached a patch to update setup.py to the proper version, include various
namespace packages for data and added a MANIFEST.in that reincludes the json
files. I've confirmed that the resulting package includes the same files as an
installation directly via pip in a venv.

A minor note perhaps: I think the core issue here is that while the PEP 517
build with hatch works miraculously, the legacy setup.py it generates is
incomplete when it comes to package data files, but fixing this to get a
reliable setup.py out of it will probably require some upstream involvement
that's out of scope for this issue.


[2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264452

You are receiving this mail because:
You are the assignee for the bug.