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

2022-07-21 Thread Sandro Tosi
> Before I've sent my mail I also checked Git HEAD which was no change.

there was: 
https://salsa.debian.org/python-team/tools/pypi2deb/-/commit/f9eda106f1514a1fff83fb3a8324817a91489879

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

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
Twitter: https://twitter.com/sandrotosi



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

2022-07-21 Thread Andreas Tille
Am Thu, Jul 21, 2022 at 02:52:38PM -0400 schrieb Sandro Tosi:
> 
> a fix for this was available in the git repo but not released, i took
> care of that with version 3.20220721 that has just been ACCEPTED.

Before I've sent my mail I also checked Git HEAD which was no change. 
Anyway, thanks for the quick response.  However, there seems to be
something wrong:


$ apt policy pypi2deb | grep Install
  Installed: 3.20220721
$ py2dsp --version
py2dsp 3.20220707
$ pypi2debian --version
/usr/bin/pypi2debian:63: DeprecationWarning: "@coroutine" decorator is 
deprecated since Python 3.8, use "async def" instead
  def run(self):
/usr/bin/pypi2debian:101: DeprecationWarning: "@coroutine" decorator is 
deprecated since Python 3.8, use "async def" instead
  def worker(self):
/usr/bin/pypi2debian:169: DeprecationWarning: "@coroutine" decorator is 
deprecated since Python 3.8, use "async def" instead
  def build_src_worker(self):
/usr/bin/pypi2debian:189: DeprecationWarning: "@coroutine" decorator is 
deprecated since Python 3.8, use "async def" instead
  def build_bin_worker(self):
pypi2debian 3.20220707


Are you sure thet the package version 3.20220721 contains the correct
executables?

Kind regards

  Andreas.

-- 
http://fam-tille.de



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

2022-07-21 Thread Sandro Tosi
> $ 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='/home/andreas/debian-maintain/salsa/python-team/packages/0_prospective/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'

a fix for this was available in the git repo but not released, i took
care of that with version 3.20220721 that has just been ACCEPTED.

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
Twitter: https://twitter.com/sandrotosi



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

2022-07-21 Thread Andreas Tille
Hi Sandro,

Am Thu, Jul 07, 2022 at 11:10:01PM -0400 schrieb Sandro Tosi:
> My goal is to make py2dsp (contained in pypi2deb) the default tool
> used to create Python packages in Debian (like many other
> language-specific tools already do f.e. for go, rust, npm, etc). The
> new release contains several enhancements that should cover many of
> the packaging needs, in particular:

Sounds really great!
 
I just gave it a try:

$ 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='/home/andreas/debian-maintain/salsa/python-team/packages/0_prospective/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'
 

Am I missing something?

Kind regards

  Andreas.

-- 
http://fam-tille.de