Re: dh_python or pybuild

2021-10-11 Thread Andrey Rahmatullin
On Mon, Oct 11, 2021 at 12:23:31PM +, c.bu...@posteo.jp wrote:
> I am not sure if I misunderstand something or if the documentation is
> inconsistent.
> 
> The PythonPolicy
> https://www.debian.org/doc/packaging-manuals/python-policy/
> tells me that dh_python should be the preferred tool for packaging
> (https://www.debian.org/doc/packaging-manuals/python-policy/#versions)
You indeed should use dh_python3, this is normally done by passing "--with
python3" to dh(1).

> But the LibraryStyleGuide
> https://wiki.debian.org/Python/LibraryStyleGuide
> tells me it is pybuild
> (https://wiki.debian.org/Python/LibraryStyleGuide#Overview).
pybuild is a build system, it's used to make actual setup.py calls. You
indeed should use it, this is normally done by passing
"--buildsystem=pybuild" to dh(1).
That page even says "What's important to note here is that both of the
dh_python2 and dh_python3 helpers are being invoked, and also that the
build system that dh will use is pybuild." when showing the correct dh(1)
line.

> And the DPT policy
> https://salsa.debian.org/python-team/tools/python-modules/-/blob/master/policy.rst
> tells me something about git-buildpackage and gbp.
gbp is not Python-specific and, strictly speaking, is not a part of Debian
packaging, but a tool to store Debian source paclages in git.

-- 
WBR, wRAR


signature.asc
Description: PGP signature


Re: dh_python or pybuild

2021-10-11 Thread Dominik George
Hi,

> I am not sure if I misunderstand something or if the documentation is
> inconsistent.
> 
> The PythonPolicy
> https://www.debian.org/doc/packaging-manuals/python-policy/
> tells me that dh_python should be the preferred tool for packaging
> (https://www.debian.org/doc/packaging-manuals/python-policy/#versions)
> 
> But the LibraryStyleGuide
> https://wiki.debian.org/Python/LibraryStyleGuide
> tells me it is pybuild
> (https://wiki.debian.org/Python/LibraryStyleGuide#Overview).
> 
> And the DPT policy
> https://salsa.debian.org/python-team/tools/python-modules/-/blob/master/policy.rst
> tells me something about git-buildpackage and gbp.

the three components work together, or better, are used at different
stages.

* git-buildpackage (which is the same as gbp) is used to manage the
  sources of your package in git

* pybuild is the toolchain that does the building process itself, and
  knows how to run setup.py or other tools, etc.

* dh_python is the debhelper chain, the glue between the package
  building process and pybuild

dh_python can use several different build systems, of which pybuild is
the preferred one. When debhelper calls, e.g. dh_auto_build,
dh_auto_build calls all chains that support the build
target. dh_python does, so it is called, and in turn calls pybuild to
do its magic of figuring out how to do the build for your specific
package at hand.

HTH,
Nik



dh_python or pybuild

2021-10-11 Thread c . buhtz

Hello,

I am not sure if I misunderstand something or if the documentation is 
inconsistent.


The PythonPolicy
https://www.debian.org/doc/packaging-manuals/python-policy/
tells me that dh_python should be the preferred tool for packaging 
(https://www.debian.org/doc/packaging-manuals/python-policy/#versions)


But the LibraryStyleGuide
https://wiki.debian.org/Python/LibraryStyleGuide
tells me it is pybuild 
(https://wiki.debian.org/Python/LibraryStyleGuide#Overview).


And the DPT policy
https://salsa.debian.org/python-team/tools/python-modules/-/blob/master/policy.rst
tells me something about git-buildpackage and gbp.

So as a novice I am confused.

Kind
Christian



Re: request to join python-team/packages group on salsa

2021-10-11 Thread Emmanuel Arias
El lun, 11 de oct. de 2021 a la(s) 01:49, Nilesh Patra (
nil...@nileshpatra.info) escribió:

>
>
> On 11 October 2021 4:17:48 am IST, Emmanuel Arias <
> emmanuelaria...@gmail.com> wrote:
> >El dom, 10 de oct. de 2021 a la(s) 17:36, Afif Elghraoui (a...@debian.org
> )
> >escribió:
> >Hi,
> >
> >You need to be patient.
> >that a good exercise to understand the "upload process", also some DD
> >prefer
> >use mentors.
>
> Hi, Afif is already a DD since some years.
>

:O :/ \o/ so soorrry!

>
> @Afif, you might want to ping once on #debian-python IRC. Maybe someone
> could do it quickly that way.
>

+1


>
> Nilesh
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>