dimastbk / python-calamine

Python binding for Rust's library for reading excel and odf file - calamine.
https://pypi.org/project/python-calamine/
MIT License
279 stars 6 forks source link

Replace poetry dependencies specification with PEP 621 #93

Closed spwoodcock closed 1 week ago

spwoodcock commented 1 week ago

Issue

When installing python-calamine into my project via pyproject.toml on Python 3.12 and using PDM, I was getting the following error:

File "/path/to/packages/python_calamine/pandas.py", line 8, in <module>
from packaging.version import Version, parse
ModuleNotFoundError: No module named 'packaging'

Cause

Solution

Note I didn't replace the [tool.poetry.group.dev.dependencies] with anything, as this is built tool specific. If this project uses poetry to manage other dependency groups then that is absolutely fine.

dimastbk commented 1 week ago

Thanks!

spwoodcock commented 1 week ago

Thank you for these bindings!

spwoodcock commented 1 week ago

Also, I might have been a bit hasty specifying a pin like ~= and didn't really think through the long term implications.

I think installable packages should always be pinned with >= for maximum flexibility (we shouldn't assume that compatibility will break over time & leave the decision to upgrade to the upstream package installer).

Sorry to be a pain: should we change to packaging>=xxx?

dimastbk commented 1 week ago

Sorry to be a pain: should we change to packaging>=xxx?

Yes.