Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #12643
| Path | csiph.com!4.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!usenet.goja.nl.eu.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ondrej Novy <novy@ondrej.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: SETUPTOOLS_SCM_PRETEND_VERSION trick : how to use it in autopkgtest? |
| Date | Tue, 09 Jun 2020 11:00:02 +0200 |
| Message-ID | <AfIgW-7Hn-7@gated-at.bofh.it> (permalink) |
| References | <AfrSO-6fO-29@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Tue Jun 9 08:54:09 2020 |
| Old-Return-Path | <ondrej.novy@gmail.com> |
| X-Amavis-Spam-Status | No, score=-1.5 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, GMAIL=1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=2, LDO_WHITELIST=-5, LONGWORD=2, RCVD_IN_DNSWL_NONE=-0.0001] 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=ondrej-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E5gaD6nHGJyz3FeZWttITbCZOZORfvBKhaxVUG6Zmro=; b=omVydxb0cS4g4oSQ34WSSaGTT5IitPa2fS1b4wwy0JV5d6lzA8SKIkzQi//MmNEVmi 0XAA29ndc6Lu8zHXAS2BVSatxf+8rW0Gv83qJcBT7TCUtAp4gx93ivZJqnnA1NA9d4sG ewYFXGuH6jaUFCB/DyXi+nmd/VnluWwZmzPDnERSw+A7mfTg4hFV8/tAAugove4synsh lx/uPSTYG+GgLloWFEJLEID2hPHqHwn6DQHFgL7ZHggCukhYluGCzec6DiVbsFMt5NMs Huitj9+V1Ck4na39Q2hbBE11QuqxHrcujXkfk9yphVeZbEyFkA9fFJZqHNOCITtyZGDz nnQg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E5gaD6nHGJyz3FeZWttITbCZOZORfvBKhaxVUG6Zmro=; b=V4O5SdZyBXdbz9zDm9ROPHtaiI3cpw6DEbYIvMhCfLYPumypowvLCA4JcYjsNEW+nM u5V5GFgZ4hl3tukpFTS5rHUViahPIYcR7UeKeDZ8cTRb4ljvRCMEz/ahtJxnyj0Q2hQd PBkOc31k4hSK6DfjMlDPxVK/5j44jnR+LtYhFs7rEaFFSvQcfZGC734z5fjBW/OqLVYR KMmYCM6nrxqJDf7xSDyMGj/sMq8vh2KX1WyECOoWCELY0Ag7Ele4xdk8qG3epaVmy63z cSKWdZNE8zVgXSlsAZDHvJhUPeVTw1P+rk+S504Pi3+9SZHwLWBsu0nhPtTBrhnNWWAf vV7A== |
| X-Gm-Message-State | AOAM530nBCB3fut+BHpOhAwOnDaM3CbaO7oD4nwWII2tw9y+PKvwLMKZ Ds20BpaszZr2qVLD7ToS8FLmRiKyZiA7rV72IL4= |
| X-Google-SMTP-Source | ABdhPJxszprX0JwymML4UiGGqUpr1tyvDuiwNqRSRGMIKcxHz+570WwkY3JA19xnh3GaUo1vyTv9IUr/O8670cTWc8E= |
| X-Received | by 2002:a1c:bc84:: with SMTP id m126mr3025787wmf.159.1591691760357; Tue, 09 Jun 2020 01:36:00 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="000000000000f7d60a05a7a29db3" |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/18350 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/CAOO6c=zC8S6SAHbHstmmL+kXByLKr94-aNJwRr3vcsg-6=8cvw@mail.gmail.com |
| Approved | robomod@news.nic.it |
| Lines | 77 |
| 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, 9 Jun 2020 10:35:48 +0200 |
| X-Original-Message-ID | <CAOO6c=zC8S6SAHbHstmmL+kXByLKr94-aNJwRr3vcsg-6=8cvw@mail.gmail.com> |
| X-Original-References | <bceabdb219ff133c25c5b1a48a35d2b76307239c.camel@gmail.com> |
| Xref | csiph.com linux.debian.maint.python:12643 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
H,
po 8. 6. 2020 v 17:22 odesílatel Julien Puydt <julien.puydt@gmail.com>
napsal:
> Hi,
>
> 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.
> 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.
--
Best regards
Ondřej Nový
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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