#1140578#5
Date:
2026-06-23 06:59:26 UTC
From:
To:
Hello Simon,

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.

Regards
Carsten

#1140578#10
Date:
2026-06-30 09:11:41 UTC
From:
To:
Carsten Schoenert <c.schoenert@t-online.de> writes:

I have been trying to get latest upstream packaged (help appreciated)
and have been experimenting with using upstream git directly to get all
files (pypi doesn't seem complete) with the following debian/watch:

Version: 5
Source: https://github.com/koxudaxi/datamodel-code-generator.git
Matching-Pattern: refs/tags/@ANY_VERSION@
Mode: git
Uversionmangle: auto

Some new build dependencies are needed, and I've managed to get
python3-hypothesis-jsonschema into Debian.  I've pushed packaging of
v0.66 here:

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

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'

Pipeline is here:

https://salsa.debian.org/jas/python-datamodel-code-generator/-/pipelines/1119388
https://salsa.debian.org/jas/python-datamodel-code-generator/-/jobs/9875950

Do you have any idea?  I fear it is some build dependency out of date,
but I'm new to Debian Python packaging so my debug skills are weak.  I
was hoping latest upstream would solve this, but alas no luck so far.

/Simon

#1140578#15
Date:
2026-07-03 16:13:25 UTC
From:
To:
Control: retitle -1 python-datamodel-code-generator: Document upstream remote requirement in debian/README.source

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.)

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).

#1140578#22
Date:
2026-07-03 16:24:05 UTC
From:
To:
Colin Watson <cjwatson@debian.org> writes:

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.

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

#1140578#27
Date:
2026-07-03 16:35:43 UTC
From:
To:
The practice in pretty much all our other packages is not to use
`upstream-vcs-tag` in `debian/gbp.conf`, so that `gbp import-orig`
commits the new tarball as a single commit.  I understand that there are
traceability issues, of course; the tradeoff is that it makes it easier
for team members to work on a large number of packages with minimal
setup.

(But I don't want to argue about it right now.  Other priorities!)

OK, will do.  I'm just about out of time for this working week, but I
should be able to start having a look at it on Sunday evening.

#1140578#32
Date:
2026-07-08 04:56:59 UTC
From:
To:
Good morning,

Am 03.07.26 um 18:13 schrieb Colin Watson:

I don't mind much about which way for importing new upstream version is
the "correct" one. All the different possible approaches have ups and downs.

What I think is important is to give some information to other team
members how to import new stuff if it's not the de-facto default way as
Colin was describing. I did open this report as I simply wanted to
update that package (or at least look if a newer version is fixing the
test suite again).

#1140578#37
Date:
2026-07-29 13:48:49 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-datamodel-code-generator, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1140578@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Simon Josefsson <simon@josefsson.org> (supplier of updated python-datamodel-code-generator package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 29 Jul 2026 14:33:13 +0200
Source: python-datamodel-code-generator
Architecture: source
Version: 0.71.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Simon Josefsson <simon@josefsson.org>
Closes: 1140578
Changes:
 python-datamodel-code-generator (0.71.0-1) unstable; urgency=medium
 .
   * Drop gbp upstream-vcs-tag (Closes: #1140578)
   * New upstream version 0.71.0
Checksums-Sha1:
 c9ef42bc8f083fc3893baa049a91968257e46cf6 3343 python-datamodel-code-generator_0.71.0-1.dsc
 b80dd27388f97ddab6d9879033bccbcad04af030 1509976 python-datamodel-code-generator_0.71.0.orig.tar.xz
 5dd7b191a17e8e006c293683ab2128b8fe826dea 4920 python-datamodel-code-generator_0.71.0-1.debian.tar.xz
 7fa6b5af8938ff1406e565db39811c336a945f27 3989056 python-datamodel-code-generator_0.71.0-1.git.tar.xz
 ef35e394798759345476f276e9e9977b346aaecd 17646 python-datamodel-code-generator_0.71.0-1_source.buildinfo
Checksums-Sha256:
 628769da2bf0db36ec603abe96e72d31e45bc1dd4c5d5cb7acb5234cd8432e03 3343 python-datamodel-code-generator_0.71.0-1.dsc
 46bc5a7acfa56da612a43abce19498fea6704eb9813aee495cf6eaa268bbc56f 1509976 python-datamodel-code-generator_0.71.0.orig.tar.xz
 feb82286eefb6b60a9e73f30de4ae8b7aebc97118c539c1bc141beeda8bb42bf 4920 python-datamodel-code-generator_0.71.0-1.debian.tar.xz
 e23e135c3081d2e47a069f771d6a6ea51545b02c0e17de9f1b29036ae5cfe4f5 3989056 python-datamodel-code-generator_0.71.0-1.git.tar.xz
 effc0215f9fe2b692fdcd2597dc210b354bf43a09b21e3fdd714e7f817870d0f 17646 python-datamodel-code-generator_0.71.0-1_source.buildinfo
Files:
 6a68e455d66867c051cb16f76d30da14 3343 python optional python-datamodel-code-generator_0.71.0-1.dsc
 ffb634cd4bceb0aa5621e42c396a6480 1509976 python optional python-datamodel-code-generator_0.71.0.orig.tar.xz
 5396343255999221dbe47abbeb07cef8 4920 python optional python-datamodel-code-generator_0.71.0-1.debian.tar.xz
 66af8290c61464474a1deeb62c0e579a 3989056 python None python-datamodel-code-generator_0.71.0-1.git.tar.xz
 c9040ef9f6ed8d9c874c786d005789e8 17646 python optional python-datamodel-code-generator_0.71.0-1_source.buildinfo
Git-Tag-Info: tag=f9196b3914b42225ab4afcd1305d401f1c64ec0e fp=a3cc9c870b9d310abad4cf2f51722b08fe4745a2
Git-Tag-Tagger: Simon Josefsson <simon@josefsson.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmpqAIUACgkQYG0ITkaD
wHnKfw//QjvLA8/h1RIFAozjbAcHrgf5fDNTB59+UnphTaocddgB/HhcGQQYpDjb
WgWrFS8AfBZoK2OP44sSA05mkWquNSVxDVKFvnrGmWC/46wDTELKNFQDm2rkEja+
BKipKdx/UrTnCkByicb2WIm9z3rrVd7a4e41Tgw4MIUCL9ftS8mlWEWNgG6BuYEy
HmCTEHpYl4Jo7vvcEKXWhsq5SAoiu2lfNURXbVmOENp8UjIIxYeXIj+WIAN9sacv
ZySQKfijkQkU3L8/erNv3SLDJVwkQt/ZCqCdhhBmo2SJHaGYojU0bB3W4NPSkIxp
6UvUQOX73eZlA4/ANYGVEoT6pvh6B5Mm/zcpdNicjw4Y/ufWS6OEvbjAFPbFODjq
ij9q4ZjZ3IQsOXLFzlaOMpcT9HHlvIUJ1JKBXiMeakBebW3/XDo1swO+eYZ7s9tZ
Z/pkplFZ4rw2sSPMGE4gk5Rmpf72KEazMNClOgwwxLwfNz60hdtmH2/1WJu/gGSr
/kvpgykUvbTpj24oG9pwP1p8HLk6PdsMl7q8b0mhOFCJFYV5fJwPLd9guvv5eEY+
LlqOXhnqR8pcTW8XRT8i3nVBuBn4Eyyae7zH1Q3eB7OLOo6VLrOe/S0LYFWKsyWs
ApKBy7kdGcQAg+e/NW6Z7H/TEd/61O/4Hauvl02XdcBsizY+QsA=
=OVjh
-----END PGP SIGNATURE-----