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


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

Re: pybuild and setuptools_scm

From Stefano Rivera <stefanor@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: pybuild and setuptools_scm
Date 2024-07-13 01:40 +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>
Organization linux.* mail to news gateway

Show all headers | 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