Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian

2022-07-22 Thread Sandro Tosi
> 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 
> 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//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



Bug#1015838: ITP: specreduce-data -- Test and reference data for the specreduce package

2022-07-22 Thread Ole Streicher
Package: wnpp
Severity: wishlist
Owner: Ole Streicher 
X-Debbugs-Cc: debian-de...@lists.debian.org, debian-as...@lists.debian.org, 
debian-python@lists.debian.org
Control: block 1012441 by -1

* Package name: specreduce-data
  Version : 0+git2021.11.18
  Upstream Author : Astropy Specreduce contributors
* URL : https://github.com/astropy/specreduce-data
* License : BSD-3-Clause
  Programming Lang: Python 3
  Description : Test and reference data for the specreduce package

This package contains general reference data for spectroscopic data
reduction (e.g. standard star spectra, atmospheric extinction curves,
line lists for calibration lamps) and test data for the specreduce
package.

This is a dependency of the upcoming specreduce package (ITP #1012441).

I will maintain the package within the Debian Astro team in Salsa:

https://salsa.debian.org/debian-astro-team/specreduce-data

Best regards

Ole



Re: Making py2dsp/pypi2deb the default tool to create Python-based packages in Debian

2022-07-22 Thread Andreas Tille
Am Thu, Jul 21, 2022 at 05:50:05PM -0400 schrieb Sandro Tosi:
> > Are you sure thet the package version 3.20220721 contains the correct
> > executables?
> 
> yes, i simply forgot to bump the internal version; what really matters
> is: does the last release fix the problem you were having?

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 
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'


Kind regards

Andreas. 

-- 
http://fam-tille.de