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


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

Re: pybuild and setuptools_scm

Path csiph.com!pasdenom.info!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Paul Boddie <paul@boddie.org.uk>
Newsgroups linux.debian.maint.python
Subject Re: pybuild and setuptools_scm
Date Thu, 18 Jul 2024 11:50:02 +0200
Message-ID <J1vVU-2WDp-3@gated-at.bofh.it> (permalink)
References <IZ2Om-1nK4-7@gated-at.bofh.it> <J0GJH-2rgq-1@gated-at.bofh.it> <J1vCx-2Wx0-5@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Jul 18 09:45:46 2024
Old-Return-Path <paul@boddie.org.uk>
X-Amavis-Spam-Status No, score=-7.098 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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: .boddie. - helo: .smtp2.de.opalstack. - helo-domain: .opalstack.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
MIME-Version 1.0
Content-Transfer-Encoding 7Bit
Content-Type text/plain; charset="us-ascii"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/22084
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/2416289.psi1zIEvq4@jason
Approved robomod@news.nic.it
Lines 24
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 18 Jul 2024 11:45:19 +0200
X-Original-Message-ID <2416289.psi1zIEvq4@jason>
X-Original-References <6620201.UvQSDFcxLp@jason> <20240716030653.nwrmapgf3fas7bq2@satie.tumbleweed.org.za> <20240718111001.6ec54436@monsterix.mbehrle.de>
Xref csiph.com linux.debian.maint.python:16047

Show key headers only | View raw


On Thursday, 18 July 2024 11:10:01 CEST Mathias Behrle wrote:
> 
> 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

For what it is worth, I also mention the generated file in debian/clean.

Another thing that the code I am packaging does is to dynamically look up 
version information in its documentation script:

from pkg_resources import get_distribution
release = get_distribution('moin').version

I have found that this doesn't tend to work when building the package, so I 
have a patch that manually defines this information instead. Maybe there is a 
better way of dealing with this, too.

Paul

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