Path: csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: Dmitry Shachnev 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: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Feb 3 21:34:35 2023 Old-Return-Path: 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: archive/latest/20771 List-ID: List-URL: 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 , 1026514@bugs.debian.org X-Original-Date: Sat, 4 Feb 2023 01:34:14 +0400 X-Original-Message-ID: X-Original-References: <86bacfc7-344f-f5bb-70d5-0792b2f352a7@debian.org> Xref: csiph.com linux.debian.maint.python:14885 linux.debian.bugs.dist:1136168 --VyybLduOKBnOSDnZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --VyybLduOKBnOSDnZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE5688gqe4PSusUZcLZkYmW1hrg8sFAmPdfdMACgkQZkYmW1hr g8u2rw//SnYUuRmfBvBVZsduGVoX7jU2hnifGlpKr4WpDuD3PdzPJDI00aZkN/59 N5yiLrRsCVkX7+U3YAEuKAk77xY74g8xoFHchxqBfgR8UdobfsoDghDDwlmT8p3O 26NS2pSrivgp4ZwcQ9VjX2Usoit/DnWS+p+066rqRN2kVpk3Vv3VJw9lSDFV6bGf HTfHpDJYYQyEJv/0asx5oy3ufYzatEtz1/pS2e+Ki/kiHr4tXIBS9cR+pF49SsT+ UFj3UY7DGDFO0Ge7bW6mcwKY/SiNh7Ygx15IoJI0ETv+nRBmAxXyG8ofWW65j2Tf K0GXVUwEa7bjGDANRKabDrStgTqgl9ryLr4nHp9vYYgMfllxldi+q4Vi9lrJgHkw 8+4Vn36TwozklmQ5ZSHjuaNsGD32yJUprHY6PisYTWer1Gsmf1/qZqjAisc60Vrc uerEzeowBBDJCsEaklSat92QUQVKX3N+hVhd3QehGBwO+XFc3yttnh84XDedXsUv Dd1RBHCIUrg3z8OVE049lcUZHyZUY+d+WZLHBI4EYoiULyLJTuBEt9LktU6wU7iK CH5T/zM+LXVbwglaykKwH3BkB5jRLF3+G1vlnhHn8giLaZoYyel4l8hAdqFRkP6i tohaKVf+yYnqeo7r3lSEt7/vdndfnRk66oVAPN/XEzgS8NYiyE8= =FnqE -----END PGP SIGNATURE----- --VyybLduOKBnOSDnZ--