• Tool to cobvert PyPI package into .deb?

    From Barry Scott@21:1/5 to All on Mon Jan 2 22:10:01 2023
    I found the pypi2deb package but it does not work.

    For example:

    $ py2dsp xml-preferences
    /usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop
      loop = asyncio.get_event_loop()
    E: py2dsp py2dsp:167: 'releases'

    The problem is that its loading meta data from PyPI and thinks there is
    a field called 'releases' but it does not exist.

    I see the same issue with requests.

    Is there a tool that does work?

    Or is there a work flow I can follow turn a PyPI package into a debian
    package?

    Barry

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Barry@21:1/5 to All on Mon Jan 2 23:00:01 2023
    --Apple-Mail-9F799185-8C6B-41BF-A258-770066045E67
    Content-Type: text/plain;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable



    On 2 Jan 2023, at 21:41, Danial Behzadi دانیال بهزادی <dani.behzi@ubuntu.com> wrote:

    Doesn't Debian helper for Python do exactly this? 🤔
    I thought that the dh_ tools are used as part of the rules for a package.

    But i want to give the name of a package on PyPI and have the debian source package created.

    Barry


    در 2 ژانویهٔ 2023 21:06:18 (UTC)، Barry Scott <barry@barrys-emacs.org> نوشت:

    I found the pypi2deb package but it does not work.

    For example:

    $ py2dsp xml-preferences
    /usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()
    E: py2dsp py2dsp:167: 'releases'

    The problem is that its loading meta data from PyPI and thinks there is a field called 'releases' but it does not exist.

    I see the same issue with requests.

    Is there a tool that does work?

    Or is there a work flow I can follow turn a PyPI package into a debian package?

    Barry



    --Apple-Mail-9F799185-8C6B-41BF-A258-770066045E67
    Content-Type: text/html;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On 2 Jan 2023, at 21:41, Danial Behzadi دانیال بهزاد
    ی &lt;dani.behzi@ubuntu.com&gt; wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">Doesn't Debian helper for Python do exactly this? 🤔<br></div></blockquote>I thought that the dh_ tools are used as part of the rules for a
    package.<div><div><br></div><div>But i want to give the name of a package on PyPI and have the debian source package created.</div><div><br></div><div>Barry</div><div><br><blockquote type="cite"><div dir="ltr"><br><div class="gmail_quote">در 2 ژانوÛ
    ŒÙ‡Ù” 2023 21:06:18 (UTC)ØŒ Barry Scott &lt;barry@barrys-emacs.org&gt; نوشت:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
    <pre dir="auto" class="k9mail">I found the pypi2deb package but it does not work.<br><br>For example:<br><br>$ py2dsp xml-preferences<br>/usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop<br>&nbsp; loop = asyncio.get_event_loop()<br>
    E: py2dsp py2dsp:167: 'releases'<br><br>The problem is that its loading meta data from PyPI and thinks there is a field called 'releases' but it does not exist.<br><br>I see the same issue with requests.<br><br>Is there a tool that does work?<br><br>Or
    is there a work flow I can follow turn a PyPI package into a debian package?<br><br>Barry<br><br><br></pre></blockquote></div></div></blockquote></div></div></body></html>
    --Apple-Mail-9F799185-8C6B-41BF-A258-770066045E67--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?RGFuaWFsIEJlaHphZGkg2K/Yp@21:1/5 to All on Mon Jan 2 22:50:01 2023
    ------9COXAAQ6CMNE0A1NC9P9NTVZOL48JN
    Content-Type: text/plain;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    Doesn't Debian helper for Python do exactly this? 🤔

    در 2 ژانویهٔ 2023 21:06:18 (UTC)، Barry Scott <barry@barrys-emacs.org> نوشت:
    I found the pypi2deb package but it does not work.

    For example:

    $ py2dsp xml-preferences
    /usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop
      loop = asyncio.get_event_loop()
    E: py2dsp py2dsp:167: 'releases'

    The problem is that its loading meta data from PyPI and thinks there is a field called 'releases' but it does not exist.

    I see the same issue with requests.

    Is there a tool that does work?

    Or is there a work flow I can follow turn a PyPI package into a debian package?

    Barry



    ------9COXAAQ6CMNE0A1NC9P9NTVZOL48JN
    Content-Type: text/html;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    <html><head></head><body>Doesn't Debian helper for Python do exactly this? 🤔<br><br><div class="gmail_quote">در 2 ژانویهٔ 2023 21:06:18 (UTC)، Barry Scott &lt;barry@barrys-emacs.org&gt; نوشت:<blockquote class="gmail_quote" style="margin:
    0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
    <pre dir="auto" class="k9mail">I found the pypi2deb package but it does not work.<br><br>For example:<br><br>$ py2dsp xml-preferences<br>/usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop<br>&nbsp; loop = asyncio.get_event_loop()<br>
    E: py2dsp py2dsp:167: 'releases'<br><br>The problem is that its loading meta data from PyPI and thinks there is a field called 'releases' but it does not exist.<br><br>I see the same issue with requests.<br><br>Is there a tool that does work?<br><br>Or
    is there a work flow I can follow turn a PyPI package into a debian package?<br><br>Barry<br><br><br></pre></blockquote></div></body></html>
    ------9COXAAQ6CMNE0A1NC9P9NTVZOL48JN--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Norwid Behrnd@21:1/5 to Barry on Tue Jan 3 00:10:01 2023
    The compilation on

    https://wiki.debian.org/AutomaticPackagingTools

    equally mentions `python3-stdeb`. Maybe this offers a working alternative to pypi2deb.

    Regards,

    ----

    Norwid

    On Mon, 2 Jan 2023 21:51:22 +0000
    Barry <barry@barrys-emacs.org> wrote:

    On 2 Jan 2023, at 21:41, Danial Behzadi دانیال بهزادی <dani.behzi@ubuntu.com> wrote:

    Doesn't Debian helper for Python do exactly this? 🤔
    I thought that the dh_ tools are used as part of the rules for a package.

    But i want to give the name of a package on PyPI and have the debian source package created.

    Barry


    در 2 ژانویهٔ 2023 21:06:18 (UTC)، Barry Scott <barry@barrys-emacs.org> نوشت:

    I found the pypi2deb package but it does not work.

    For example:

    $ py2dsp xml-preferences
    /usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()
    E: py2dsp py2dsp:167: 'releases'

    The problem is that its loading meta data from PyPI and thinks there is a field called 'releases' but it does not exist.

    I see the same issue with requests.

    Is there a tool that does work?

    Or is there a work flow I can follow turn a PyPI package into a debian package?

    Barry



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mathias Behrle@21:1/5 to All on Tue Jan 3 14:20:01 2023
    * Barry Scott: " Tool to cobvert PyPI package into .deb?" (Mon, 2 Jan 2023
    21:06:18 +0000):

    I found the pypi2deb package but it does not work.

    For example:

    $ py2dsp xml-preferences
    /usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop
      loop = asyncio.get_event_loop()
    E: py2dsp py2dsp:167: 'releases'

    The problem is that its loading meta data from PyPI and thinks there is
    a field called 'releases' but it does not exist.

    I see the same issue with requests.

    Is there a tool that does work?

    Or is there a work flow I can follow turn a PyPI package into a debian package?

    Barry


    Please have look at the branch of olasd: https://salsa.debian.org/python-team/tools/pypi2deb/-/merge_requests/5

    It should work.

    Cheers,
    Mathias


    --

    Mathias Behrle
    PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
    AC29 7E5C 46B9 D0B6 1C71 7681 D6D0 9BE4 8405 BBF6

    -----BEGIN PGP SIGNATURE-----
    Comment: Signed by Mathias Behrle

    iQIzBAEBCgAdFiEErCl+XEa50LYccXaB1tCb5IQFu/YFAmO0J1IACgkQ1tCb5IQF u/YtCBAAjCbc0VEKdgF0/OfjDmkamtvJLG1db7j2NQpYZ74/hRG0rP+i6p92GF/Y rvI3dN6yTXrzQ/EnvLN7iInW1PmcHuU5R3T65XvgKwsK8SSDSrbpXq+3EG2xZhuP jFpFptHb4vEKYqo+5PWPgxz0DBRYoxDf9uKxs/qnYR4yFNVyVOG9rKVTo2FNILT6 HoVvLmzhedVHiTpwSDX966nz0aTw7hOeQojs15ccJPIdGsmoQq9bInAKkO9AlgUH HQo2133vXU9FEpAEeVZZm9gXez8dMFroFajKCz/aOfB+Pk+krdA0xvY9gSd93l1e L3hrjXyYIY+gJ3PyzSDe2CEeLTeLaaJcuvbMNMC/kKIGdmYxgOakInAFfYqibRA7 P/NDvs7iloSlkPfaDyJEQu0uLCrzDetfaLwuNb7ex9yGAJsDqfR/KcE8V1JCI0H4 ge6aYAj21TPxVWRWhmOg2xtcDLzD5gUgmaXfSwofZI2t8BbRw1s2g+qwcj1DqhtJ EeTmF0piuP7igv0D3pMu0aiahGcw8X9Ib+yb3u7WOvqtL2pP5FIf/LIYC++QBka0 p6gPa4xqz6yovMSWXeiacIWPvQASUpaux2/0TOnUgf394e0/NbfbyBww6bEOrEA7 FqVkT2ZhMzKWx/27DOT+xqKRDoemhMX4HdExAcmxDls1KOhIVeE=
    =EUpo
    -----END P