Path: csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Sandro Tosi Newsgroups: linux.debian.maint.python Subject: Re: Build an initial Debian source package with py2dsp from a GitHub project Date: Fri, 29 Oct 2021 06:50:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Oct 29 04:47:06 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.381 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-yb1-f172.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 X-Gm-Message-State: AOAM530V42Cn6qdfl94xzGG9Qnr9lHyJ1/ElqNVMQogaQHBzUPA92JMj DbOMmaGlDMpo9bmy6Sj389I9diSavn3lGGuZ7P4Vj8sV X-Google-SMTP-Source: ABdhPJwuvcS8HptBkgp9M6zVxcj8vGF2MvRMo8ptEy4L/vZ4Z7GH3EUlJaZ3DHYeOc72uuRT+SOr74EIi08MEKVUT2o= X-Received: by 2002:a25:49c3:: with SMTP id w186mr9666218yba.429.1635482809320; Thu, 28 Oct 2021 21:46:49 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Mailing-List: archive/latest/19465 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAB4XWXyUtnOhf2VPoKkBahxfCwG-W2vCfqF6dKr9x7XVTipAgQ@mail.gmail.com Approved: robomod@news.nic.it Lines: 61 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 29 Oct 2021 00:46:22 -0400 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.python:13665 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 I'm definitely no expert in autopkgtests, so if there's something to improve, lemme know. On Sun, Apr 25, 2021 at 12:22 AM Sandro Tosi wrote: > > 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 that extend py2dsp to fetch the upstream > tarball from GitHub instead; nowadays this is my preferred source for > upstream tarballs, given it contains all the project files (not only > the one published on pypi via sdist, often missing important files > like tests, or doc sources, etc). > > it's currently available at the git branch at [2] (there's a PR open at [3]): > > [2] https://github.com/sandrotosi/pypi2deb/tree/morph > [3] https://github.com/p1otr/pypi2deb/pull/27 > > once you cloned/checkout that branch, you can run: > > $ ./py2dsp --profile dpt --distribution unstable --revision 1 --github > https://github.com/USER/PROJECT > > alternatively, you can specify an additional argument ``, > if PROJECT is not the source name you want to use in Debian: > > $ ./py2dsp --profile dpt --distribution unstable --revision 1 --github > https://github.com/USER/PROJECT > > and it will create the source package in the `result/` directory. > > Let me know if you find this useful and if there are > issues/enhancement you'd like to see added/fixed. > > Regards, > -- > Sandro "morph" Tosi > My website: http://sandrotosi.me/ > Me at Debian: http://wiki.debian.org/SandroTosi > Twitter: https://twitter.com/sandrotosi -- Sandro "morph" Tosi My website: http://sandrotosi.me/ Me at Debian: http://wiki.debian.org/SandroTosi Twitter: https://twitter.com/sandrotosi