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


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

Re: SETUPTOOLS_SCM_PRETEND_VERSION trick : how to use it in autopkgtest?

Path csiph.com!4.us.feeder.erje.net!feeder.erje.net!news.szaf.org!news.unit0.net!weretis.net!feeder7.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Julien Puydt <julien.puydt@gmail.com>
Newsgroups linux.debian.maint.python
Subject Re: SETUPTOOLS_SCM_PRETEND_VERSION trick : how to use it in autopkgtest?
Date Tue, 09 Jun 2020 12:00:01 +0200
Message-ID <AfJcZ-8g3-1@gated-at.bofh.it> (permalink)
References <AfrSO-6fO-29@gated-at.bofh.it> <AfIgW-7Hn-7@gated-at.bofh.it>
X-Original-To Ondrej Novy <novy@ondrej.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Tue Jun 9 09:50:24 2020
Old-Return-Path <julien.puydt@gmail.com>
X-Amavis-Spam-Status No, score=-3.562 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, FREEMAIL_FROM=0.001, GMAIL=1, LDO_WHITELIST=-5, LONGWORD=2, RCVD_IN_DNSWL_NONE=-0.0001, SARE_MSGID_LONG40=0.637] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=0lSVRtVexN+weELXELSxyKidVcRzwxPRgRq0hvsEOtI=; b=dj9S+qqt6wsXpqrvfo8KtypN/Uf7N8e/8s76JPQ0eeCtgc+m2v/OuGJ+bMyEMEjD/D d0iz3UPO2wgB2WF1sRoJySZb+gP12nYs5FXV7GhpoDw746jd0RY/DhBPDV/85qaGX4Wd yG5NgS18q3xz0v0TCJbC1DxXal3S1U9hFMhZhvtEtUt6i2U0IXsiJ16NUPjijGFu9OL1 ouYuCn9cfe6ciouhnXcRwM8StDVebFf77j/L0YxuMOEQJv9NLofpcIe1qQouojkrncFR 6jlN0/nC8z3gs5uYR5TchQgM6apGxkXczko9kCxBoCcskzYhjY42z698itM7/CiL1Bn5 9RSA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=0lSVRtVexN+weELXELSxyKidVcRzwxPRgRq0hvsEOtI=; b=LkHdjAWilgPHlxy4mkwoG2r5SjUtMwB5zpNGaH+5l8Py3LLdw2jDhOliOfET9ZyfNu aquHbcH39zNvBnyCgfDwBwpr6T+6HLKbSlOAGRlL+i1qzJrdt3ahTFc41hq48t1+xgw4 7OR1BsEx1jYqh8ox5CkO5kl51WWjtEhyComyJz9mGY3vdYsB2hXKZ0g5aB7svJMJgnuq CbAAnVQKL6tLnZgLWPSO0+qBxsNibKCbEqXxUSS6NHizqqs9hFIy4RJyjsKbRyDNdDaO 2B0hoEpo6U+QUmVvfR99tKMJv4Fae5mEWJPhRgyhSkcvWpTs+gwIFMRsz9WLF7LBOPuw KRMw==
X-Gm-Message-State AOAM533w55sRaYLp8KKKSPKFUjLxrndxvexJyqid3wU69z7WxOhPFXY4 UZ6HSKpF1x1EvmrKHX6HMwpHherQAZQ=
X-Google-SMTP-Source ABdhPJyoN8Q0YOweMpnSVsJ8IxwYPb269X78uHTXBI/fG/ifa7E0d3xDXmnfL/EhmFhPtS8YdefYIQ==
X-Received by 2002:adf:ecce:: with SMTP id s14mr3566698wro.154.1591696209657; Tue, 09 Jun 2020 02:50:09 -0700 (PDT)
Content-Type text/plain; charset="UTF-8"
User-Agent Evolution 3.36.2-1
MIME-Version 1.0
Content-Transfer-Encoding 8bit
X-Mailing-List <debian-python@lists.debian.org> archive/latest/18351
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/f65c4b50e569353a8c5b17381321d8cce547787a.camel@gmail.com
Approved robomod@news.nic.it
Lines 43
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Debian Python <debian-python@lists.debian.org>
X-Original-Date Tue, 09 Jun 2020 11:50:02 +0200
X-Original-Message-ID <f65c4b50e569353a8c5b17381321d8cce547787a.camel@gmail.com>
X-Original-References <bceabdb219ff133c25c5b1a48a35d2b76307239c.camel@gmail.com> <CAOO6c=zC8S6SAHbHstmmL+kXByLKr94-aNJwRr3vcsg-6=8cvw@mail.gmail.com>
Xref csiph.com linux.debian.maint.python:12644

Show key headers only | View raw


Hi,

Le mardi 09 juin 2020 à 10:35 +0200, Ondrej Novy a écrit :

> po 8. 6. 2020 v 17:22 odesílatel Julien Puydt <julien.puydt@gmail.com
> > napsal:
> > I know about the SETUPTOOLS_SCM_PRETEND_VERSION trick when it is
> > used
> > in d/rules :
> > 
> > include /usr/share/dpkg/pkg-info.mk
> > export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM)
> 
> dh-python do this automatically when python{,3}-setuptools-scm is in
> B-D.

Oh, so in fact, the only package which should do that in its d/rules
should be setuptools-scm itself, then ?

> > I got around by turning d/tests/upstreamtestsuite to:
> > 
> > #!/bin/sh
> > set -e
> > SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 python3 setup.py test 2>&1
> > 
> > which worked because in fact the tests don't care about the
> > version.
> 
> you can use "dpkg-parsechangelog -SVersion" or include
> /usr/share/dpkg/pkg-info.mk + $DEB_VERSION_UPSTREAM here too.

There are several things I don't understand there:

(1) during the autopkgtest run, we're not in the package source tree,
are we? So there should be no access do d/changelog?

(2) including pkg-info.mk is for makefiles, so not available there, and
dpkg-parsechangelog -SVersion will give me the full Debian version, not
just upstream's.

Thanks,

JP

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


Thread

SETUPTOOLS_SCM_PRETEND_VERSION trick : how to use it in autopkgtest? Julien Puydt <julien.puydt@gmail.com> - 2020-06-08 17:30 +0200
  Re: SETUPTOOLS_SCM_PRETEND_VERSION trick : how to use it in autopkgtest? Ondrej Novy <novy@ondrej.org> - 2020-06-09 11:00 +0200
    Re: SETUPTOOLS_SCM_PRETEND_VERSION trick : how to use it in  autopkgtest? Julien Puydt <julien.puydt@gmail.com> - 2020-06-09 12:00 +0200
      Re: SETUPTOOLS_SCM_PRETEND_VERSION trick : how to use it in  autopkgtest? Simon McVittie <smcv@debian.org> - 2020-06-09 13:30 +0200

csiph-web