Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-10-28 Thread Sandro Tosi
couple of features recently introduced that may interest people: - rudimental support for autopkgtests: autodep8 + a stub for developers to setup autopkgstests for unittests - salsa repo creation, if SALSA_TOKEN is available in ~/.devscripts; this also setup the KGB webhook to post in #d-p-changes

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-05-05 Thread Sandro Tosi
> > this solution also underestimates the in-progress migration towards > > poetry and pyproject.toml, where `python3 setup.py sdist` is not > > available. > > Where does the metadata come from for projects using these things? that'd be pyproject.toml AFAIUI the point i wanted to make is that it

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-05-05 Thread Paul Wise
On Wed, May 5, 2021 at 10:14 PM Sandro Tosi wrote: > this solution also underestimates the in-progress migration towards > poetry and pyproject.toml, where `python3 setup.py sdist` is not > available. Where does the metadata come from for projects using these things? -- bye, pabs https://wiki.

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-05-05 Thread Paul Wise
On Wed, May 5, 2021 at 7:50 PM Andrey Rahmatullin wrote: > But Github doesn't provide the metadata. Usually the metadata is available in setup.cfg (or possibly setup.py), both of which should be in GitHub, although data in setup.py would be harder to extract. -- bye, pabs https://wiki.debian.o

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-05-05 Thread Sandro Tosi
> Right and thus I am wondering if we could work through this, somehow? > That is, $something fetches the tarball, runs sdist or whatever, and > then the py2dsp magic. > > P.S. I know this sounds a little ambitious but I believe this would > really help, too. i do not plan to implement such a feat

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-05-05 Thread Utkarsh Gupta
On Thu, May 6, 2021 at 1:20 AM Andrey Rahmatullin wrote: > But Github doesn't provide the metadata. You would need to get a tarball > and run sdist or something like that. Right and thus I am wondering if we could work through this, somehow? That is, $something fetches the tarball, runs sdist or

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-05-05 Thread Andrey Rahmatullin
On Thu, May 06, 2021 at 01:16:40AM +0530, Utkarsh Gupta wrote: > Hello, > > On Thu, May 6, 2021 at 12:33 AM Sandro Tosi wrote: > > that's correct, the package still needs to be on PyPI, as that's the > > place where py2dsp obtains most of the package metadata > > Can we change that or have a fla

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-05-05 Thread Utkarsh Gupta
Hello, On Thu, May 6, 2021 at 12:33 AM Sandro Tosi wrote: > that's correct, the package still needs to be on PyPI, as that's the > place where py2dsp obtains most of the package metadata Can we change that or have a flag or something added so that it pulls from g/h directly? - u

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-05-05 Thread Sandro Tosi
On Wed, May 5, 2021 at 2:58 PM Andrey Rahmatullin wrote: > > On Thu, May 06, 2021 at 12:08:06AM +0530, Utkarsh Gupta wrote: > > However, I am running into an issue (or I guess I am just not doing it > > correctly). > > Whilst trying to package from the g/h source > > (https://github.com/keylime/ke

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-05-05 Thread Andrey Rahmatullin
On Thu, May 06, 2021 at 12:08:06AM +0530, Utkarsh Gupta wrote: > However, I am running into an issue (or I guess I am just not doing it > correctly). > Whilst trying to package from the g/h source > (https://github.com/keylime/keylime), it fails like this: > http://paste.debian.net/1195339/ > > Am

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-05-05 Thread Utkarsh Gupta
Hi Sandro, On Sun, Apr 25, 2021 at 9:53 AM Sandro Tosi wrote: > Let me know if you find this useful and if there are > issues/enhancement you'd like to see added/fixed. This looks great! Thank you! However, I am running into an issue (or I guess I am just not doing it correctly). Whilst trying t

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-04-25 Thread Sandro Tosi
> > > or git repository (a directory) that one has already downloaded. > > > > i dont see how starting from a git repo is useful, can you expand? > > instead of generating a .dsc first and then importing it into a git > repository, it's more logical to me to import an upstream tarball into a > git

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-04-25 Thread Antonio Terceiro
On Sun, Apr 25, 2021 at 06:19:18PM -0400, Sandro Tosi wrote: > > It would be useful if it could also be run against a tarball > > this is already supported (but in general by py2dsp and in the context > of --github), f.e.: > > $ ./py2dsp --profile dpt --distribution unstable --revision 1 --gh > h

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-04-25 Thread Sandro Tosi
> It would be useful if it could also be run against a tarball this is already supported (but in general by py2dsp and in the context of --github), f.e.: $ ./py2dsp --profile dpt --distribution unstable --revision 1 --gh https://github.com/indygreg/python-zstandard ./zstandard_0.14.1.orig.tar.gz

Re: Build an initial Debian source package with py2dsp from a GitHub project

2021-04-25 Thread Antonio Terceiro
On Sun, Apr 25, 2021 at 12:22:19AM -0400, Sandro Tosi wrote: > Let me know if you find this useful and if there are > issues/enhancement you'd like to see added/fixed. That's very useful, thanks! It would be useful if it could also be run against a tarball or git repository (a directory) that one

Build an initial Debian source package with py2dsp from a GitHub project

2021-04-24 Thread Sandro Tosi
Hello, recently i've been making some enhancements to py2dsp (part of pypi2deb[1] ); for those who dont know what that is, py2dsp is a tool that, given a PyPI project, will create an (initial) Debian source package. [1] https://packages.qa.debian.org/p/pypi2deb.html I've just finished a patch tha