Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14884
| Path | csiph.com!1.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | FC Stegerman <flx@obfusk.net> |
| Newsgroups | linux.debian.maint.python, linux.debian.bugs.dist |
| Subject | Re: python-param: FTBFS: TypeError: The only supported seed types are: None, |
| Date | Fri, 03 Feb 2023 18:50:01 +0100 |
| Message-ID | <FV8md-3bSY-5@gated-at.bofh.it> (permalink) |
| References | <FV6Nr-3b7p-1@gated-at.bofh.it> <FV7zS-3bnt-31@gated-at.bofh.it> <FV7Tb-3bJl-1@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Fri Feb 3 17:46:24 2023 |
| Old-Return-Path | <flx@obfusk.net> |
| X-Amavis-Spam-Status | No, score=-6.98 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate:hard: -4.6 |
| Authentication-Results | ext-mx-out001.mykolab.com (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com |
| Mail-Followup-To | FC Stegerman <flx@obfusk.net>, debian-python@lists.debian.org, 1026514@bugs.debian.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-15 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/20770 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/Y91IVFIr9Nt36Mi+@nihonium |
| Approved | robomod@news.nic.it |
| Lines | 43 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Fri, 3 Feb 2023 18:45:56 +0100 |
| X-Original-Message-ID | <Y91IVFIr9Nt36Mi+@nihonium> |
| X-Original-References | <Y90v1lxWBVHm/gQY@an3as.eu> <Y909Kc+qdTDhbApb@nihonium> <86bacfc7-344f-f5bb-70d5-0792b2f352a7@debian.org> |
| Xref | csiph.com linux.debian.maint.python:14884 linux.debian.bugs.dist:1136148 |
Cross-posted to 2 groups.
Show key headers only | View raw
* Louis-Philippe Véronneau <pollo@debian.org> [2023-02-03 18:15]:
> On 2023-02-03 11 h 58, FC Stegerman wrote:
> > Presumably there is a way to get the version from e.g.
> > "dpkg-parsechangelog -S Version" (minus the -1 revision) instead. I'm
> > not sure how other packages handle this.
>
> You can get those values via the variables provided by
> /usr/share/dpkg/pkg-info.mk
>
> You can "source" those in your d/rules makefile by using:
>
> include /usr/share/dpkg/pkg-info.mk
Thanks!
Updating my previous suggestion based on this new information, it
becomes:
adding this to debian/rules
include /usr/share/dpkg/pkg-info.mk
and patching setup.py to change
def get_setup_version(reponame):
"""Use autover to get up to date version."""
# importing self into setup.py is unorthodox, but param has no
# required dependencies outside of python
from param.version import Version
return Version.setup_version(os.path.dirname(__file__),reponame,archive_commit="$Format:%h$")
to e.g.
def get_setup_version(reponame):
"""Use autover to get up to date version."""
if version := os.environ.get("DEB_VERSION_UPSTREAM"):
return version
# importing self into setup.py is unorthodox, but param has no
# required dependencies outside of python
from param.version import Version
return Version.setup_version(os.path.dirname(__file__),reponame,archive_commit="$Format:%h$")
- FC
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1026514: python-param: FTBFS: TypeError: The only supported seed types are: None, Andreas Tille <andreas@an3as.eu> - 2023-02-03 17:10 +0100
Re: python-param: FTBFS: TypeError: The only supported seed types are: None, FC Stegerman <flx@obfusk.net> - 2023-02-03 18:00 +0100
Re: python-param: FTBFS: TypeError: The only supported seed types are: None, FC Stegerman <flx@obfusk.net> - 2023-02-03 18:20 +0100
Re: python-param: FTBFS: TypeError: The only supported seed types are: None, Louis-Philippe Véronneau <pollo@debian.org> - 2023-02-03 18:20 +0100
Re: python-param: FTBFS: TypeError: The only supported seed types are: None, FC Stegerman <flx@obfusk.net> - 2023-02-03 18:50 +0100
Re: python-param: FTBFS: TypeError: The only supported seed types are: None, Dmitry Shachnev <mitya57@debian.org> - 2023-02-03 22:40 +0100
Re: python-param: FTBFS: TypeError: The only supported seed types are: None, FC Stegerman <flx@obfusk.net> - 2023-02-03 23:20 +0100
csiph-web