Colin Watson <[email protected]> writes:

> Control: retitle -1 python-datamodel-code-generator: Document upstream
> remote requirement in debian/README.source
>
> On Tue, Jun 30, 2026 at 11:11:41AM +0200, Simon Josefsson wrote:
>>Carsten Schoenert <[email protected]> writes:
>>> could you please describe in debian/README.source how the workflow is to
>>> update the package python-datamodel-code-generator.
>>>
>>> The visible branch layout shows it's uses some upstream branch to import
>>> newer versions. But currently I've no clue how to import a newer version.
>>
>>Hi Carsten!  I use normal 'gbp import-orig --uscan' and nothing special.
>
> The undocumented missing piece is that you need something like this
> first:
>
>   git remote add upstreamvcs 
> https://github.com/koxudaxi/datamodel-code-generator
>
> (Note that this is a deviation from the Debian Python team's policy:
> https://salsa.debian.org/python-team/tools/python-modules/blob/master/policy.rst#git-procedures.)

Oh, that was unintentional and just my old habbit.  I don't understand
how my approach differs from that policy though, it doesn't seem
terribly clear exactly how package updates must work?  I'm happy to
adapt here.

>>But I have now also ran into the 'which' problem reported here:
>>
>>https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1141004
>>
>>E           TypeError: ExternalFile._load_value() missing 1 required 
>>positional argument: 'which'
>
> The latest upstream release fixes this.  Simon, do you need help with
> getting this packaged?  This bug is tied up with some pretty
> significant dependency graphs (including the current pytest 9.1 mess).

Yes, please!  I've packaged a later upstream, but I got the same build
error, and there is some other issues too.  My python knowledge is too
weak here, could you start with

https://salsa.debian.org/jas/python-datamodel-code-generator

and see if you can get it to work?  Feel free to push to the main python
Salsa project as you wish, please don't wait for me before commits and
upload.

/Simon

Attachment: signature.asc
Description: PGP signature

Reply via email to