Path: csiph.com!weretis.net!feeder8.news.weretis.net!usenet.goja.nl.eu.org!aioe.org!bofh.it!news.nic.it!robomod From: Sandro Tosi Newsgroups: linux.debian.maint.python Subject: Build an initial Debian source package with py2dsp from a GitHub project Date: Sun, 25 Apr 2021 06:30:01 +0200 Message-ID: X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Apr 25 04:23:03 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.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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-lj1-f181.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 X-Gm-Message-State: AOAM533RRnb5GRMnbMrals6k+DIWPGFUuCw0qWJepVBmAX9xDjWkdFun HxHQNdlp8K728f6KOnQQD6nq37NP6RYZ6Zppk4BlJH//3yUrvA== X-Google-SMTP-Source: ABdhPJzYnHWjebUCCVXR5TfRmlvve97y/t0iJuFNahcw4LxncCy+qkzd8eGDvAiNHMlSM+jbmbsHdOvm3EG9iKDDWls= X-Received: by 2002:a05:651c:b29:: with SMTP id b41mr8109672ljr.136.1619324565514; Sat, 24 Apr 2021 21:22:45 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Mailing-List: archive/latest/19112 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAB4XWXypAdeUBKo08faZVou8uqH8X8+71cgPhsgFzafeSNKx5Q@mail.gmail.com Approved: robomod@news.nic.it Lines: 41 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 25 Apr 2021 00:22:19 -0400 X-Original-Message-ID: Xref: csiph.com linux.debian.maint.python:13325 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