Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #15665
| Path | csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Carsten Schoenert <c.schoenert@t-online.de> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Docu: Need help to understand section about package creation |
| Date | Fri, 29 Mar 2024 14:50:02 +0100 |
| Message-ID | <InkMi-2xg4-1@gated-at.bofh.it> (permalink) |
| References | <InbpD-2rct-1@gated-at.bofh.it> <InfjB-2tJV-21@gated-at.bofh.it> <IngfE-2ukz-13@gated-at.bofh.it> <InjZT-2wIQ-11@gated-at.bofh.it> |
| X-Original-To | debian-python@lists.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Fri Mar 29 13:48:40 2024 |
| Old-Return-Path | <c.schoenert@t-online.de> |
| X-Amavis-Spam-Status | No, score=-6.977 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_FROM=0.001, FVGT_m_MULTI_ODD=0.02, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -5.5 |
| MIME-Version | 1.0 |
| User-Agent | Mozilla Thunderbird |
| Content-Language | en-US |
| Autocrypt | addr=c.schoenert@t-online.de; keydata= xsFNBFIDTk4BEACx6disb51q5rTdDmnkOayFDiLgOrZ4InnRmbTsgYJaigcRXjVtjFaxwL0M Qtzrt9srlLBReWD4JvoLP9/8z2C1ORaoOUatApssuKd32Qa80lBlduIQCfaZ6K5Ij0TXeqIb dWXMWSvpaOwt+ecBGSdEepgABtxO9Xel9zqDsAauFxBRHGzJs3bSG8QRtwnQA2+9J8UEtzAc dY69YAkF3Q6HIPP/0mbGiget/1WGR+8tPKlVMYcgZtGIP2J36GkDbfDvdbH5QLn2KtMuGXLv f1CTy+vvQL3mY4caKam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1O G+JAKvitV4UvUo9l05ewadRg53QpWNmmRHSXflpmw0PX5C9TKsyY/Sg4DdBf2NIzktQyOxya T2yHaVuQUUQRQ0248NdA1ql7zV48ZjF1ADhagQ8bgYuGMdOW6upfUBvPqQl0poV8FwjNErex N+CUbA5inlT9oIP03LtwZoKKDuK2PojoTtGp7WZ4ryQX9i9ogUOGknAABxFg4iMBQVkyl9oF QSgHa0HlbjRj8uY1kqsO4FgrcoGiouNzEfhP5zpxvCg3BBuWngo9ApU+MXOAwuq1Gt4dzUg4 7Ir2s32nhiv5TErJzPdNrUSK/tOUZOSkOzXv1kOGbXAlhC/5a5VGfA99uFcYK899gpfB4q64 jrc3wewP0MXjVl8U004Px7sYT4BkAoCupRtmBoRWhttvbcv6T8uFMAF+j91ng0X1+n21fV+O 9wPRnD3/KJThRVMR8poUevmJbFgPfvGGmz1asVIK8tBamAZp5aCeqZ7HVkTmMbj1x07Ry7o0 iWLO |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Toi-Expurgateid | 150726::1711720099-C3B95941-2D9DBF49/0/0 CLEAN NORMAL |
| X-Toi-Msgid | dbbdc7b2-8038-4f49-af7a-6ff8b630dc8e |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/21675 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/f88d9c2c-2b8c-4ca7-addb-775b66a8e2b8@t-online.de |
| Approved | robomod@news.nic.it |
| Lines | 110 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Fri, 29 Mar 2024 14:48:19 +0100 |
| X-Original-Message-ID | <f88d9c2c-2b8c-4ca7-addb-775b66a8e2b8@t-online.de> |
| X-Original-References | <2e298444b0ca43474151b2711c20978423c17d84.camel@debian.org> <4V5Xf76537z6tyl@submission01.posteo.de> <58c94873-de5c-4f63-abfa-244e0463fbe6@t-online.de> <1918974.IjW8Q8t3uR@jason> |
| Xref | csiph.com linux.debian.maint.python:15665 |
Show key headers only | View raw
Hello Paul,
Am 29.03.24 um 13:49 schrieb Paul Boddie:
> On Friday, 29 March 2024 09:52:14 CET Carsten Schoenert wrote:
>>
>> Starting with Debian packaging isn't a easy thing and there is *not* the
>> one way to do it right. And there are for sure hundreds of HowTos out
>> there. You will need to try a few of them and chose in the end the
>> workflow that fit's best for you.
>
> The problem with this advice is that for the Debian Python Team, there
> probably aren't many ways to "do it right". Instead, as I understand it, there
> will be very few ways that people tolerate, as recent discussion on this list
> has indicated.
the question in general was not about the right and correct way in the
DPT, it was about starting from scratch. At least I don't know of a
right way from scratch that is written down as policy, would also make
no real sense to me.
Starting Debian packaging isn't easy, but it's going to be more
complicated if you think there is only one way that's correct. In the
end DAK needs some files, how you create them is on your own.
The DPT policy doesn't say you need to do packaging a very specif way,
it stated that git-buildpackage is the tool for organizing the VCS data.
The DPT policy gives you the freedom to do your packaging preparation
how ever you like, but it is expected you finally upload the data of
your work into a git tree with a specific layout so others can take your
work and reproduce a package by using gbp.
gbp is very flexible, so if you like to use sbuild in favor of pbuilder
e.g. than you can simply do so.
BTW: I posted my way on how I created a new Python package for Debian in
the German Debian forum extensively and in length last year while DC
[1]. Because I also know were starters typically struggle with and I was
in the need to introduce a new Python package as a dependency for
another package.
I'm unsure if Christian did follow my steps by trying to reproduce the
package I was working on. I'm thinking he didn't, if he did then I'm
wondering where he is having problems to prepare his package. Until now
there is no "I did this and this, ..., I failed."
The feedback on my mini HowTo was quite low. So I wont do such things again.
> In the end, I did my usual thing and distilled the documentation's prose down
> to a concise workflow to remind me of what I might need to do if I were to
> start packaging something else. In fact, I wrote the following for the Moin
> 2.0 packages and then made use of it for the other package:
>
> git branch -c master upstream
> git checkout -b debian/master
> <introduce debian directory here>
> git add debian
> git commit
> <introduce upstream tag here, if you want to avoid hassle with Salsa>
> git push origin <upstream tag>
> gbp buildpackage --git-debian-branch=debian/master \
> --git-upstream-tag='upstream/%(version)s' --git-builder=sbuild
gbp makes all these steps easier I think. Even if you want to do it
completely manually. Basically I do this
mkdir new-package && cd new-package
git init
# create a file debian/gbp.conf if you want to have it more convenient
gbp import-orig [--verbose] --sign-tags --pristine-tar
/path/to/tarball-version.tar.{gz,...,xz}
# add required files into debian/
gbp dch -aR
gbp buildpackage --git-ignore-new [--git-builder=what_ever_you_like]
# run lintian, squash issues, prepare autopkgtest, commit changes atomically
# create a patch queue if needed
gbp pq import [--ignore-new]
# work on patches, commit them
gbp qp export
git add debian/patches && git commit
# hack further, finalize the package, create the final changelog entry
if needed
git commit debian/changlog
gbp buildpackage ...
# upload, wait for the DAK email
gbp tag --sig-tags
git remote add salsa ....
gbp push [salsa]
But we will find ten more possible ways to create a new package from
scratch. :)
...
> P.S. The argument made about needing to understand what happens "under the
> hood" is something of an indictment of the way technology is developed these
> days. A tool that is meant to simplify something should present its own
> coherent level of abstraction; deferring to lower-level mechanisms is
> something that the Git developers and community like to do, which is why the
> usability of Git is the subject of occasional jokes and somewhat more
> infrequent attempts to wrap it in more usable interfaces.
A good tool is always helpful, and a good first time user experience is
also important. But I've seen a lot of people and contributors that were
completely lost once a errors message was coming up and they did not
know what to do and were to look. A good developer or engineer is always
able to help themselves. Means he need to know how things work or at
least were to look next to solve problems.
[1] https://debianforum.de/forum/viewtopic.php?t=187764
--
Regards
Carsten
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Docu: Need help to understand section about package creation <c.buhtz@posteo.jp> - 2024-03-28 20:00 +0100
Re: Docu: Need help to understand section about package creation weepingclown <weepingclown@disroot.org> - 2024-03-28 20:40 +0100
Re: Re: Docu: Need help to understand section about package creation Boyuan Yang <byang@debian.org> - 2024-03-29 04:50 +0100
Re: Docu: Need help to understand section about package creation Andreas Tille <andreas@an3as.eu> - 2024-03-29 07:50 +0100
Re: Docu: Need help to understand section about package creation <c.buhtz@posteo.jp> - 2024-03-29 09:00 +0100
Re: Docu: Need help to understand section about package creation <c.buhtz@posteo.jp> - 2024-03-29 09:00 +0100
Re: Docu: Need help to understand section about package creation <c.buhtz@posteo.jp> - 2024-03-29 09:00 +0100
Re: Docu: Need help to understand section about package creation Carsten Schoenert <c.schoenert@t-online.de> - 2024-03-29 10:00 +0100
Re: Docu: Need help to understand section about package creation <c.buhtz@posteo.jp> - 2024-03-29 12:30 +0100
Re: Docu: Need help to understand section about package creation Paul Boddie <paul@boddie.org.uk> - 2024-03-29 14:00 +0100
Re: Docu: Need help to understand section about package creation Carsten Schoenert <c.schoenert@t-online.de> - 2024-03-29 14:50 +0100
Re: Docu: Need help to understand section about package creation weepingclown <weepingclown@disroot.org> - 2024-03-29 16:40 +0100
Re: Docu: Need help to understand section about package creation <c.buhtz@posteo.jp> - 2024-03-29 17:30 +0100
Re: Docu: Need help to understand section about package creation <c.buhtz@posteo.jp> - 2024-03-29 17:20 +0100
csiph-web