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


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

Re: pybuild and setuptools_scm

From Mathias Behrle <mbehrle@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: pybuild and setuptools_scm
Date 2024-07-18 11:30 +0200
Message-ID <J1vCx-2Wx0-5@gated-at.bofh.it> (permalink)
References <IZ2Om-1nK4-7@gated-at.bofh.it> <IZb5f-1sQT-3@gated-at.bofh.it> <IZizL-1xrO-9@gated-at.bofh.it> <J0GJH-2rgq-1@gated-at.bofh.it>
Organization .

Show all headers | View raw


* Stefano Rivera: " Re: pybuild and setuptools_scm" (Tue, 16 Jul 2024 03:06:53
  +0000):

Hi Stefano,

thanks for looking into it.


> > I had a similar problem when setuptools_scm kicked in during the build
> > process and produced versions different from the orig tarball. Packaging is
> > in git and tarballs are imported from PyPI.
> > 
> > I disabled the automatic versioning with
> > 
> > https://salsa.debian.org/tryton-team/python-csb43/-/commit/e8788e09818948231a48cc1472a5f54444b65fcc
> > 
> > Could you confirm this is the right approach or is there a more elegant
> > way?  
> 
> That approach doesn't look great.
> 
> Instead of that patch, just Build-Depend on python3-setuptools-cm, so
> that it can do its magic. In my testing it works just fine on your
> package.

I have no clue why this is working for you.

I removed the patch, tried your proposal and the build just fails because
setuptools-scm writes again a dev version to src/csb43/_version.py:

https://salsa.debian.org/tryton-team/python-csb43/-/jobs/5988081
dpkg-source: info: local changes detected, the modified files are:
 source_dir/src/csb43/_version.py


But SETUPTOOLS_SCM_PRETEND_VERSION like proposed by Thomas did the trick.
https://salsa.debian.org/tryton-team/python-csb43/-/pipelines/703025

May be pybuild doesn't handle correctly a version string like 0.10.0+dfsg-1?

> Oh, you're also missing pytest, so the package tests are failing.

Thanks!

Mathias



-- 

    Mathias Behrle
    PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
    AC29 7E5C 46B9 D0B6 1C71  7681 D6D0 9BE4 8405 BBF6

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