Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #16020

Re: pybuild and setuptools_scm

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Stefano Rivera <stefanor@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: pybuild and setuptools_scm
Date Sat, 13 Jul 2024 01:40:01 +0200
Message-ID <IZy1P-1GBV-1@gated-at.bofh.it> (permalink)
References <IZ2Om-1nK4-7@gated-at.bofh.it> <IZc1j-1toJ-1@gated-at.bofh.it> <IZgRj-1woa-3@gated-at.bofh.it> <IZmk1-1zEC-15@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Jul 12 23:37:40 2024
Old-Return-Path <stefano@rivera.za.net>
X-Amavis-Spam-Status No, score=-107.072 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.211, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
Mail-Followup-To debian-python@lists.debian.org
X-Gpg-Public-Key http://www.rivera.za.net/stefano.gpg
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
User-Agent NeoMutt/20220429
X-Mailing-List <debian-python@lists.debian.org> archive/latest/22058
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20240712233720.75k24mjr2wu5d2v6@satie.tumbleweed.org.za
Approved robomod@news.nic.it
Lines 32
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 12 Jul 2024 23:37:20 +0000
X-Original-Message-ID <20240712233720.75k24mjr2wu5d2v6@satie.tumbleweed.org.za>
X-Original-References <6620201.UvQSDFcxLp@jason> <2245571.Ln9GNSyV1e@jason> <20240712051727.zwh52g4lkl74axv3@satie.tumbleweed.org.za> <2318109.fNdOc2if0I@jason>
Xref csiph.com linux.debian.maint.python:16020

Show key headers only | View raw


Hi Paul (2024.07.12_10:59:43_+0000)
> > > The weird thing is that I can run "python3 -m build", even with the
> > > options that pybuild introduces, outside the gbp buildpackage environment,
> > > and it seems that the package data is obtained using setuptools_scm. But
> > > as part of the gbp invocation, the package data is limited to that
> > > mentioned in the deficient pyproject.toml file.
> > 
> > Is your packaging in git? It'll be finding the list of files tracked by
> > git, from git.
> 
> The packaging is in git, yes. I suppose what I don't understand is the role of 
> setuptools_scm in building a package for installation (or the construction of 
> a binary package).

It has 2 roles, both are optional the package may use them or not:
1. Determine the version from VCS tags
2. Determine the list of files that should be shipped in the package.

> A source package will aim to incorporate all of the tracked files, but
> a built/binary package may not.

Yeah, roughly. Binary packages get "data" files included. These are
typically non-Python files inside a Python module.

Source packages get other sources, too.

Stefano

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

pybuild and setuptools_scm Paul Boddie <paul@boddie.org.uk> - 2024-07-11 16:20 +0200
  Re: pybuild and setuptools_scm Stefano Rivera <stefanor@debian.org> - 2024-07-12 01:10 +0200
    Re: pybuild and setuptools_scm Paul Boddie <paul@boddie.org.uk> - 2024-07-12 02:10 +0200
      Re: pybuild and setuptools_scm Stefano Rivera <stefanor@debian.org> - 2024-07-12 07:20 +0200
        Re: pybuild and setuptools_scm Paul Boddie <paul@boddie.org.uk> - 2024-07-12 13:10 +0200
          Re: pybuild and setuptools_scm Dmitry Shachnev <mitya57@debian.org> - 2024-07-12 22:30 +0200
          Re: pybuild and setuptools_scm Stefano Rivera <stefanor@debian.org> - 2024-07-13 01:40 +0200
          Re: pybuild and setuptools_scm Stefano Rivera <stefanor@debian.org> - 2024-07-13 01:40 +0200
            Re: pybuild and setuptools_scm Julian Gilbey <julian@d-and-j.net> - 2024-07-14 09:00 +0200
    Re: pybuild and setuptools_scm Mathias Behrle <mbehrle@debian.org> - 2024-07-12 09:10 +0200
      Re: pybuild and setuptools_scm Stefano Rivera <stefanor@debian.org> - 2024-07-16 05:10 +0200
        Re: pybuild and setuptools_scm Mathias Behrle <mbehrle@debian.org> - 2024-07-18 11:30 +0200
          Re: pybuild and setuptools_scm Paul Boddie <paul@boddie.org.uk> - 2024-07-18 11:50 +0200
          Re: pybuild and setuptools_scm Stefano Rivera <stefanor@debian.org> - 2024-07-19 13:10 +0200
            Re: pybuild and setuptools_scm Julian Gilbey <julian@d-and-j.net> - 2024-07-19 15:20 +0200
              Re: pybuild and setuptools_scm Stefano Rivera <stefanor@debian.org> - 2024-07-21 13:10 +0200

csiph-web