Path: csiph.com!1.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news.in-chemnitz.de!news2.arglkargh.de!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Andreas Tille Newsgroups: linux.debian.maint.python Subject: Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian Date: Mon, 25 Jul 2022 10:10:01 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Jul 25 08:09:24 2022 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.99 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailing-List: archive/latest/20116 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/Yt5PoUwIw6mjd0jx@an3as.eu Approved: robomod@news.nic.it Lines: 34 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 25 Jul 2022 10:09:05 +0200 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.python:14281 Hi Sandro, I was able to run py2dsp pystow with a sufficient result for my purposes with the following patch: diff --git a/pypi2deb/pypi.py b/pypi2deb/pypi.py index 3e342c0..0639de3 100644 --- a/pypi2deb/pypi.py +++ b/pypi2deb/pypi.py @@ -38,8 +38,8 @@ log = logging.getLogger('pypi2deb') @asyncio.coroutine def get_pypi_info(name, version=None): url = PYPI_JSON_URL + '/' + name - if version: - url += '/' + version +# if version: +# url += '/' + version url += '/json' session = None try: Since I do not really understand pypi2deb and what role version might have I do not step further (MR or so) from this point but leave it to you to decide whether this is useful or not. Kind regards Andreas. -- http://fam-tille.de