Path: csiph.com!news.neodome.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: weepingclown Newsgroups: linux.debian.maint.python Subject: Re: Docu: Need help to understand section about package creation Date: Thu, 28 Mar 2024 20:40:02 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Mar 28 19:30:17 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, LDO_WHITELIST=-5] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -4.6 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----6ZIE85JF8EP6XQ6USOQZ0EEU9SLOW6 Content-Transfer-Encoding: 7bit X-Mailing-List: archive/latest/21664 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/FE62CF2E-451B-4336-8073-9D58DB9B50AA@disroot.org Approved: robomod@news.nic.it Lines: 134 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 28 Mar 2024 19:29:44 +0000 X-Original-Message-ID: X-Original-References: <4V5CRB375Zz6tyR@submission01.posteo.de> Xref: csiph.com linux.debian.maint.python:15655 ------6ZIE85JF8EP6XQ6USOQZ0EEU9SLOW6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Christian, Without knowing what exactly fails for you, it is quite difficult to point= out anything=2E The steps documented in the wiki are supposed to be workin= g=2E That said, the current packaging go to tool for the DPT should be py2dsp, = if what you are working on is a python package=2E `apt install pypi2deb` wi= ll give the py2dsp command and `py2dsp ` can give you= a nifty initial template to start with=2E For more info you can try `py2ds= p --help`=2E What I typically use when creating a new package is `py2dsp --= profile dpt --distribution unstable --revision 1 --github `=2E No other structured documentation on using py2dsp is available AFAIK, and = I did struggle initially to understand how to use it=2E Creating a wiki pag= e for that has been my plan since then, but couldn't get to it because of t= ime constraints as well as fear of presenting the wrong info=2E Maybe I'll = try to get to that soon enough=2E Hope this helps=2E Best, Ananthu On 28 March 2024 6:55:30 pm UTC, c=2Ebuhtz@posteo=2Ejp wrote: >Hello again, > >the problem persists=2E > >I don't have the right information in the wiki=2E So I don't know how to >proceed with creating a package=2E > >Can someone point me into the right direction please=2E > >I have the repo on Salsa=2E But it is empty=2E And the commands >described in "Creating a new package" don't help me to fill it up=2E > >Thanks in advance, >Christian Buhtz > >On 2024-03-20 22:32 wrote: >> Hello, >>=20 >> in order to improve the documentation I need to understand some parts= =2E >> But I am stuck=2E I don't get it what the authors trying to explain=2E >>=20 >> It is about "Creating a new package" section: >> https://wiki=2Edebian=2Eorg/Python/GitPackaging#Creating_a_new_package >>=20 >> The second paragraph points to dsc-file creation described here: >> https://wiki=2Edebian=2Eorg/PackagingWithGit/GitDpm/Initialize >>=20 >> The third paragraph is a list of shell commands that do not work in my >> case=2E For example "uscan" don't work because it does not know what an= d >> where to download=2E Of course I understand that=2E >>=20 >> I assume I need a dsc file? >>=20 >> It seems that my understanding problem is the second paragraph and the >> dsc-page it is linking, too=2E >>=20 >> For example the first paragraph on the page >> "/PackagingWithGit/GitDpm/Initialize" is impossible to understand for >> newbies=2E What is it talking about? There is the term "git-dpm"=20 >> pointing to "/PackagingWithGit/GitDpm/" (now after I edit that page >> myself)=2E But I am not sure what "git-dpm" is and how much of that big >> page I should work on to make that "uscan" command run=2E >>=20 >> Kind >> Christian > ------6ZIE85JF8EP6XQ6USOQZ0EEU9SLOW6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello Christian,

Without = knowing what exactly fails for you, it is quite difficult to point out anyt= hing=2E The steps documented in the wiki are supposed to be working=2E
<= br>That said, the current packaging go to tool for the DPT should be py2dsp= , if what you are working on is a python package=2E `apt install pypi2deb` = will give the py2dsp command and `py2dsp <package-name-in-pypi>` can = give you a nifty initial template to start with=2E For more info you can tr= y `py2dsp --help`=2E What I typically use when creating a new package is `p= y2dsp --profile dpt --distribution unstable --revision 1 --github <githu= b-url> <pypi-package-name>`=2E

No other structured document= ation on using py2dsp is available AFAIK, and I did struggle initially to u= nderstand how to use it=2E Creating a wiki page for that has been my plan s= ince then, but couldn't get to it because of time constraints as well as fe= ar of presenting the wrong info=2E Maybe I'll try to get to that soon enoug= h=2E

Hope this helps=2E

Best,
Ananthu


On 28 March 2024 6:55:30 pm UTC, c=2E= buhtz@posteo=2Ejp wrote:
Hello again,

the problem pe= rsists=2E

I don't have the right information in the wiki=2E So I don= 't know how to
proceed with creating a package=2E

Can someone poi= nt me into the right direction please=2E

I have the repo on Salsa=2E= But it is empty=2E And the commands
described in "Creating a new packag= e" don't help me to fill it up=2E

Thanks in advance,
Christian Bu= htz

On 2024-03-20 22:32 <c=2Ebuhtz@posteo=2Ejp> wrote:
Hello,=

in order to improve the documentation I need to understand some par= ts=2E
But I am stuck=2E I don't get it what the authors trying to explai= n=2E

It is about "Creating a new package" section:
https:= //wiki=2Edebian=2Eorg/Python/GitPackaging#Creating_a_new_package
The second paragraph points to dsc-file creation described here:
https:= //wiki=2Edebian=2Eorg/PackagingWithGit/GitDpm/Initialize

The thi= rd paragraph is a list of shell commands that do not work in my
case=2E = For example "uscan" don't work because it does not know what and
where t= o download=2E Of course I understand that=2E

I assume I need a dsc f= ile?

It seems that my understanding problem is the second paragraph = and the
dsc-page it is linking, too=2E

For example the first para= graph on the page
"/PackagingWithGit/GitDpm/Initialize" is impossible to= understand for
newbies=2E What is it talking about? There is the term "= git-dpm"
pointing to "/PackagingWithGit/GitDpm/" (now after I edit that= page
myself)=2E But I am not sure what "git-dpm" is and how much of tha= t big
page I should work on to make that "uscan" command run=2E

K= ind
Christian

------6ZIE85JF8EP6XQ6USOQZ0EEU9SLOW6--