[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

Attachment: signature.asc
Description: PGP signature


Reply to: