Skip to content

Pin or update PyHMMER to v0.12.0 #37

@althonos

Description

@althonos

Hi @nextgenusfs !

Hope you're having a good time using PyHMMER 😄 I just released PyHMMER 0.12.0 and among other things it does break some of the code by changing some attributes, properties and function returns to str instead of bytes (bye bye decode/encode). Since you didn't pin the maximum version of PyHMMER your code will break with fresh installs. You could either:

  • Pin the maximum supported version in pyproject.toml, e.g.:
    dependencies = [
         #  ...
         "pyhmmer>=0.10.15,<0.12.0",
    ]
  • Update the code to remove explicit decode and encode such as
    "id": hit.name.decode(),
    which would become:
    "id": hit.name,
    since now hit.name is a str and not a bytes anymore, and then update the mimum supported version:
    dependencies = [
         #  ...
         "pyhmmer>=0.12.0",
    ]

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions