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


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

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

From Carsten Schoenert <c.schoenert@t-online.de>
Newsgroups linux.debian.maint.python
Subject Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema generator
Date 2025-01-27 15:10 +0100
Message-ID <K9xYl-ciOy-9@gated-at.bofh.it> (permalink)
References (1 earlier) <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> <K9unL-cewE-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello Simon,

Am 27.01.25 um 12:11 schrieb Simon Josefsson:
> 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...

I'm also not a specialist with setuptools or any other Python build tool.

I've tried this small modifications and at least the wheel and the sdist 
tarball is then including all data from the genson/ folder.

> $ git diff
> diff --git a/setup.cfg b/setup.cfg
> index 3c9e75f..244f310 100644
> --- a/setup.cfg
> +++ b/setup.cfg
> @@ -32,10 +32,12 @@ classifiers =
>      Topic :: Utilities
>  
>  [options]
> -packages = genson
>  zip_safe = True
>  include_package_data = True
>  
> +[options.packages.find]
> +where=genson
> +
>  [options.entry_points]
>  console_scripts = genson = genson.__main__:main

A build log (in the upstream source tree) looks then this:

> $ python3 -m build
> * Creating isolated environment: venv+pip...
> * Installing packages in isolated environment:
>   - setuptools>=44
>   - wheel
> * Getting build dependencies for sdist...
> No `packages` or `py_modules` configuration, performing automatic discovery.
> `flat-layout` detected -- analysing .
> discovered packages -- ['genson', 'genson.schema', 'genson.schema.strategies']
> * Building sdist...
> No `packages` or `py_modules` configuration, performing automatic discovery.
> `flat-layout` detected -- analysing .
> discovered packages -- ['genson', 'genson.schema', 'genson.schema.strategies']
> * Building wheel from sdist
> * Creating isolated environment: venv+pip...
> * Installing packages in isolated environment:
>   - setuptools>=44
>   - wheel
> * Getting build dependencies for wheel...
> No `packages` or `py_modules` configuration, performing automatic discovery.
> `flat-layout` detected -- analysing .
> discovered packages -- ['genson', 'genson.schema', 'genson.schema.strategies']
> * Building wheel...
> No `packages` or `py_modules` configuration, performing automatic discovery.
> `flat-layout` detected -- analysing .
> discovered packages -- ['genson', 'genson.schema', 'genson.schema.strategies']

-- 
Regards
Carsten

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