Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14267
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Sandro Tosi <morph@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian |
| Date | Sat, 23 Jul 2022 05:50:01 +0200 |
| Message-ID | <EMejn-ddqc-1@gated-at.bofh.it> (permalink) |
| References | <EGMH7-9T1d-1@gated-at.bofh.it> <ELGhH-cRjA-5@gated-at.bofh.it> <ELJyV-cT91-37@gated-at.bofh.it> <ELLr3-cUhj-1@gated-at.bofh.it> <ELMn7-cUQL-1@gated-at.bofh.it> <ELVqp-d1a6-1@gated-at.bofh.it> |
| X-Original-To | debian-python <debian-python@lists.debian.org> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Sat Jul 23 03:40:34 2022 |
| Old-Return-Path | <sandro.tosi@gmail.com> |
| X-Amavis-Spam-Status | No, score=-6.509 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-pj1-f54.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 |
| X-Gm-Message-State | AJIora9TSpHI5dcLHMVTz/3ju6+i9QaVEERKe/crj53U9NeA8QsBGLHQ 5YF2hVPXpYhkcx6bal41BGhB2iYxpNqq1oitOwE4VSwP5bQ= |
| X-Google-SMTP-Source | AGRyM1v0XH3QfYEFANiyrWkzx1unsAGyZMV3u120MLsK/RjYMmQYRQEwX/EZmdyWHX2hOh9XYCcUg8LXu8tMv7pGWP8= |
| X-Received | by 2002:a17:902:ba8a:b0:16c:ca53:72a1 with SMTP id k10-20020a170902ba8a00b0016cca5372a1mr2827239pls.159.1658547616620; Fri, 22 Jul 2022 20:40:16 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/20101 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/CAB4XWXxwyvDdNNQ0H+__WSuBBG7ErV57cx01stt1c0jKdh6NEg@mail.gmail.com |
| Approved | robomod@news.nic.it |
| Lines | 35 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Fri, 22 Jul 2022 23:39:50 -0400 |
| X-Original-Message-ID | <CAB4XWXxwyvDdNNQ0H+__WSuBBG7ErV57cx01stt1c0jKdh6NEg@mail.gmail.com> |
| X-Original-References | <CAB4XWXyAZy32vcDCN0MmB59w6Riex3OMS16rEzLJQdjYZoZv2g@mail.gmail.com> <YtlvDtDmeLOym2g/@an3as.eu> <CAB4XWXwMpnrafur14Wz_bVRhARyYS8LKVnr+wCzgKZ=kjjSgrw@mail.gmail.com> <Ytm9X9+0dP/ynMAX@an3as.eu> <CAB4XWXzPdi2nYF1TEqd6TO2_MW3H2G-zVe=W5_U8syF6PXFeew@mail.gmail.com> <YtpR9Gh97x+pdI47@an3as.eu> |
| Xref | csiph.com linux.debian.maint.python:14267 |
Show key headers only | View raw
> No, the problem persists:
>
> $ py2dsp -v pystow
> D: py2dsp py2dsp:156: version: 3.20220707
> D: py2dsp py2dsp:157: ['/usr/bin/py2dsp', '-v', 'pystow']
> /usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop
> loop = asyncio.get_event_loop()
> D: py2dsp py2dsp:44: args: Namespace(verbose=True, quiet=False, root='/tmp/result', clean=False, build=False, application=False, profile=None, github=None, distribution='UNRELEASED', revision='0~py2deb', message='converte0~py2deb', name='pystow')
> E: py2dsp py2dsp:167: 'releases'
> Traceback (most recent call last):
> File "/usr/bin/py2dsp", line 165, in <module>
> loop.run_until_complete(main(args))
> File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
> return future.result()
> File "/usr/bin/py2dsp", line 74, in main
> fname = yield from download(name, version=version, destdir=args.root)
> File "/usr/share/pypi2deb/pypi2deb/pypi.py", line 124, in download
> release = details['releases'].get(version, {})
> KeyError: 'releases'
this seems to be related to
https://discuss.python.org/t/backwards-incompatible-change-to-pypi-json-api/17154
, although they say /pypi/<project>/json (what py2dsp uses to gather
the latest released verison) still contains the releases key, what i
noticed is that endpoint now returns 2 concatenated jsons, and aiohttp
json() (quite understandably) returns the latest one, which does not
contain releases.
appreciate if you can log a bug via reportbug
--
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
Twitter: https://twitter.com/sandrotosi
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Sandro Tosi <morph@debian.org> - 2022-07-08 05:20 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Emmanuel Arias <emmanuelarias30@gmail.com> - 2022-07-08 13:20 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Andreas Tille <andreas@an3as.eu> - 2022-07-21 17:30 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Sandro Tosi <morph@debian.org> - 2022-07-21 21:00 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Andreas Tille <andreas@an3as.eu> - 2022-07-21 23:00 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Sandro Tosi <morph@debian.org> - 2022-07-22 00:00 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Andreas Tille <andreas@an3as.eu> - 2022-07-22 09:40 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Sandro Tosi <morph@debian.org> - 2022-07-23 05:50 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Andreas Tille <andreas@an3as.eu> - 2022-07-23 08:40 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Sandro Tosi <morph@debian.org> - 2022-07-23 16:30 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Andreas Tille <andreas@an3as.eu> - 2022-07-23 18:00 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Andreas Tille <andreas@an3as.eu> - 2022-07-25 10:10 +0200
Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Andreas Tille <andreas@an3as.eu> - 2022-07-25 11:20 +0200
csiph-web