bstoilov / py3-pinterest

Fully fledged Python Pinterest client
MIT License
310 stars 107 forks source link

Make `PyQt5` an optional dependency #166

Closed Amar1729 closed 2 years ago

Amar1729 commented 2 years ago

Some other projects use this as a dependency for communication with pinterest but don't require GUI functionality from it. Since PyQt5 is a somewhat heavy dependency (and currently has issues installing on some ARM devices like mac M1s) can that be made an optional dependency?

Something like the following in setup.py:

setup(
    ...
    extras_require={
        "gui": ["PyQt5"],
    },

Then anybody wanting to use the GUI can install through pip like:

$ pip install 'py3-pinterest[gui]'

Only noticed because the default branch currently has PyQt5 in its setup.py but doesn't use it anywhere yet.

bstoilov commented 2 years ago

Removed the dependency in version 1.3.0