python-cachier/cachier

Patch version increment broke public api

cthoyt opened this issue · 4 comments

There is apparently no longer a possibility to specify a backend in versions after 1.5.0. Why is this the case?

_______________________________________________ ERROR collecting tests/test_bioversions.py _______________________________________________
tests/test_bioversions.py:10: in <module>
    import bioversions
.tox/py/lib/python3.9/site-packages/bioversions/__init__.py:5: in <module>
    from .sources import get_rows, get_version, resolve  # noqa:F401
.tox/py/lib/python3.9/site-packages/bioversions/sources/__init__.py:12: in <module>
    from .biofacquim import BiofacquimGetter
.tox/py/lib/python3.9/site-packages/bioversions/sources/biofacquim.py:5: in <module>
    from bioversions.utils import Getter, VersionType, get_soup
.tox/py/lib/python3.9/site-packages/bioversions/utils.py:58: in <module>
    refresh_daily = cachier(
E   TypeError: cachier() got an unexpected keyword argument 'backend'
======================================================== short test summary info =========================================================
ERROR tests/test_bioversions.py - TypeError: cachier() got an unexpected keyword argument 'backend'

Hey.

I apologize. My bad.
It seems I released v1.5.0 from a branch (by mistake), which meant the last two releases - merged to master - didn't contain your work on the memory core. I'm working to restore this as we speak.

When it's done, I'll delete the API-breaking releases from PyPI.

Done. Should be fixed in v1.5.3.

Let me know how it goes. :)

@shaypal5 I can confirm stuff is now working as expected. Thanks for looking into this :)

Thank you for letting me know. :)