Bug#1026514: python-param: FTBFS: TypeError: The only supported seed types are: None,
Dmitry Shachnev
mitya57 at debian.org
Fri Feb 3 21:34:14 GMT 2023
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20230204/b793be87/attachment.sig>
More information about the debian-science-maintainers
mailing list