Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #16694

Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema generator

From Simon Josefsson <simon@josefsson.org>
Newsgroups linux.debian.maint.python
Subject Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema generator
Date 2025-01-27 11:20 +0100
Message-ID <K9unL-cewE-7@gated-at.bofh.it> (permalink)
References <JXJVf-2DHD-5@gated-at.bofh.it> <JXJVf-2DHD-3@gated-at.bofh.it> <JXQal-2KYH-3@gated-at.bofh.it> <JXTUB-2OLB-3@gated-at.bofh.it> <JXUGZ-2P3I-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi

Could someone help me and upstream how to get python setuptools to get
all files installed for this package?

Please see this thread and upstream bug report:

https://github.com/wolverdude/GenSON/issues/80

I work around the problem in the debian packaging like this:

export PYBUILD_BEFORE_TEST = \
	cp -rv {dir}/genson/schema {build_dir}/$(PYBUILD_NAME)

However installing these files should be done by upstream setuptools
magic somehow.  Some hint or ideally an upstream merge request to fix
this would be appreciated...

/Simon

Andrey Rakhmatullin <wrar@debian.org> writes:

>> Thanks for reply!  I added that but commented out since adding it did
>> not change the pybuild behaviour.  The extra genson/schema/ files are
>> not built and installed, only the top-level genson/ directory which is
>> the case even without PYBUILD_NAME.
>
> I've rechecked and the proposed fix also included "also, note the big fat
> warnings about upstream not configuring setuptools correctly".
> As I've just checked, running `python3 -m build` in the upstream repo also
> produces a wheel without the schema subpackage.

Carsten Schoenert <c.schoenert@t-online.de> writes:

>> Why doesn't pybuild do the right thing by default?
>
> on which base pybuild could make the right decision? pybuild is doing
> what it need and should do.
>
> The missing installation of the subfolder looks to me like an upstream
> issue.
> If the folder is needed for later usage it needs to get installed by
> setuptools.

/Simon

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Simon Josefsson <simon@josefsson.org> - 2024-12-26 01:30 +0100
  Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Andrey Rakhmatullin <wrar@debian.org> - 2024-12-26 08:10 +0100
    Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Simon Josefsson <simon@josefsson.org> - 2024-12-26 12:10 +0100
      Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Andrey Rakhmatullin <wrar@debian.org> - 2024-12-26 13:00 +0100
        Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Simon Josefsson <simon@josefsson.org> - 2024-12-26 13:50 +0100
        Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Simon Josefsson <simon@josefsson.org> - 2025-01-27 11:20 +0100
          Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Carsten Schoenert <c.schoenert@t-online.de> - 2025-01-27 15:10 +0100
          Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Dmitry Shachnev <mitya57@debian.org> - 2025-01-27 15:20 +0100
  Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Carsten Schoenert <c.schoenert@t-online.de> - 2024-12-26 08:50 +0100
  Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Carsten Schoenert <c.schoenert@t-online.de> - 2024-12-26 08:50 +0100
    Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema  generator Simon Josefsson <simon@josefsson.org> - 2024-12-26 12:50 +0100

csiph-web