I just tried using this for the first time, and this is what happened: $ py2dsp --gh https://github.com/scikit-build/scikit-build.git /usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() E: py2dsp py2dsp:167: 'info' The result directory is empty. Not sure where to go from here... Best wishes, Julian
URL, though a nicer error message would be very helpful.
Fixing that gives a somewhat improved situation:
$ py2dsp --gh https://github.com/scikit-build/scikit-build
/usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
W: py2dsp cache:81: cannot dump cache (_load_package_names:():{}): value is not an integer or out of range
dpkg-buildpackage: info: source package skbuild
dpkg-buildpackage: info: source version 0.15.0-0~pypi2deb
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Julian Gilbey <jdg@debian.org>
dpkg-source -I.git -i.git --before-build .
dpkg-source: info: using options from skbuild-0.15.0/debian/source/options: --extend-diff-ignore=^[^/]+.egg-info/
dpkg-buildpackage: warning: building a source package without cleaning up as you asked; it might contain undesired files
dpkg-source -I.git -i.git -b .
dpkg-source: info: using options from skbuild-0.15.0/debian/source/options: --extend-diff-ignore=^[^/]+.egg-info/
dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream tarball found at ../skbuild_0.15.0.orig.tar.{bz2,gz,lzma,xz}
dpkg-buildpackage: error: dpkg-source -I.git -i.git -b . subprocess returned exit status 2
E: py2dsp py2dsp:167: [Errno 2] No such file or directory: '/home/jdg/debian/spyder-packages/scikit-build/result/skbuild-0.15.0/debian/files'
But that's still not a great result.
Best wishes,
Julian
severity 1015177 normal
clone 1015177 -1
retitle 1015177 pypi2deb: give more informative error messages
retitle -1 pypi2deb: handle cases where the upstream source and Python modules have different names
thanks
It turns out that there are probably two unrelated issues here, so I'm
splitting this into two separate bug reports.
Issue 1 (bug 1015177): error messages are unhelpful.
This is illustrated by my original report, when I used an incorrect
GitHub URL:
$ py2dsp scikit-build --gh https://github.com/scikit-build/scikit-build.git
/usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
E: py2dsp py2dsp:167: 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-repository"}
Issue 2 (new bug number): it would be good to be able to handle cases
such as scikit-build, where the source package name (scikit-build) is
different from the module name (skbuild); the results of running
py2dsp are shown in a previous message..
I also tried py2dsp with another package I'm working on, and it fails
there twoo; I think it is probably related to issue 2, but I'm not
sure:
$ py2dsp --gh https://github.com/fabioz/PyDev.Debugger
/usr/bin/py2dsp:163: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
E: py2dsp py2dsp:167: 'info'
Mind you, "py2dsp pydevd" doesn't work either....
Best wishes,
Julian
Encounter this use pypi2deb 5.20260225 on Ubuntu 26.04: LC_ALL=C py2dsp legendary-gl ... dpkg-source: error: aborting due to unexpected upstream changes ... Generated orig.tar.xz in result/ uses a package name with "_" , but deb package name is with "-": $ tar -tf legendary-gl_0.21.1.orig.tar.xz | head -n 4 legendary_gl-0.21.1/PKG-INFO legendary_gl-0.21.1/pyproject.toml legendary_gl-0.21.1/pyproject.toml.orig legendary_gl-0.21.1/ legendary_gl-0.21.1/LICENSE legendary_gl-0.21.1/README.md