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


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

Re: python-param: FTBFS: TypeError: The only supported seed types are: None,

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Dmitry Shachnev <mitya57@debian.org>
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 22:40:01 +0100
Message-ID <FVbWN-3e2C-13@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> <FV8md-3bSY-5@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Feb 3 21:34:35 2023
Old-Return-Path <mitya57@gmail.com>
X-Amavis-Spam-Status No, score=-11.23 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AO0yUKVtndLqZMR9YfjxUz/UU7xcgp+RI+NVeSPNUB0VBYWyFbsjDTz7 +60X6fRokY90QikIngIF1gC01XfeLPxBAw==
X-Google-SMTP-Source AK7set8zns6BXyRAXN1MOsOrHwaznSlrGuSDvKp7J8n2DCLPOmgIZYGgS27RaJHLvghfREZkocHw0A==
X-Received by 2002:a17:906:cec7:b0:873:4ebb:94cd with SMTP id si7-20020a170906cec700b008734ebb94cdmr12664828ejb.10.1675460058181; Fri, 03 Feb 2023 13:34:18 -0800 (PST)
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VyybLduOKBnOSDnZ"
Content-Disposition inline
X-Mailing-List <debian-python@lists.debian.org> archive/latest/20771
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/Y9191txqXzXtGyHO@mitya57.me
Approved robomod@news.nic.it
Lines 63
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc FC Stegerman <flx@obfusk.net>, 1026514@bugs.debian.org
X-Original-Date Sat, 4 Feb 2023 01:34:14 +0400
X-Original-Message-ID <Y9191txqXzXtGyHO@mitya57.me>
X-Original-References <Y90v1lxWBVHm/gQY@an3as.eu> <Y909Kc+qdTDhbApb@nihonium> <86bacfc7-344f-f5bb-70d5-0792b2f352a7@debian.org> <Y91IVFIr9Nt36Mi+@nihonium>
Xref csiph.com linux.debian.maint.python:14885 linux.debian.bugs.dist:1136168

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Fri, Feb 03, 2023 at 06:45:56PM +0100, FC Stegerman wrote:
> Thanks!
>
> Updating my previous suggestion based on this new information, it
> becomes:
>
> adding this to debian/rules
>
>   include /usr/share/dpkg/pkg-info.mk

I think one more line is needed in debian/rules:

  export DEB_VERSION_UPSTREAM

> 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$")

--
Dmitry Shachnev

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


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