geemap icon indicating copy to clipboard operation
geemap copied to clipboard

Remove/replace unmaintained colour dependency

Open adamjstewart opened this issue 6 months ago • 3 comments

Description

I'm trying to install geemap and its dependencies from source. However, the colour dependency in particular is causing issues. Colour (no updates in 8 yrs) depends on d2to1 (deprecated for 5 yrs), which requires setuptools 67 and older, which does not support Python 3.12+. I'm wondering if we can replace colour with something else that is easier to build from source.

What I Did

> spack install py-geemap ^[email protected]

adamjstewart avatar Jun 01 '25 13:06 adamjstewart

Thank you for raising the issue. I did not know that the colour package has not been updated for so long. We should replace it. We may be able to replace it with matplotlib.colors. Let me look into it.

giswqs avatar Jun 01 '25 15:06 giswqs

@adamjstewart I have fixed the issue in #2263. Will try to make a new release over the next few days once the PR is merged.

giswqs avatar Jun 01 '25 17:06 giswqs

Thanks for the quick fix! One less dependency is always a nice thing for maintenance. Now if I can just get all of these other dependencies to support newer versions of jupyterlab...

adamjstewart avatar Jun 01 '25 18:06 adamjstewart