click-contrib / click-option-group

Option groups missing in Click
https://click-option-group.readthedocs.io
BSD 3-Clause "New" or "Revised" License
106 stars 14 forks source link

Should Python 3.6 be supported? #21

Closed JOJ0 closed 4 years ago

JOJ0 commented 4 years ago

Hi I just read an older issue that Python 3.5 is not supported. Should 3.6 work?

I am getting this on a Ubuntu Bionic machine:

Installed /usr/local/lib/python3.6/dist-packages/click_option_group-0.5.1-py3.6.egg
error: click 6.7 is installed but Click<8,>=7.0 is required by {'click-option-group'}

Thanks a lot!

espdev commented 4 years ago

Hi @JOJ0 Python 3.6 is supported. The error says: click 6.7 is installed but Click<8,>=7.0 is required.

I recommend using virtual environments (virtualenv) for your projects instead of system packages. The system Python packages are usually outdated.

It might look something like this:

sudo apt install python3-venv
python3 -m venv venv_name
source venv_name/bin/activate
(venv_name) pip install click-option-group

See also: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/

JOJ0 commented 4 years ago

Hi, thanks a lot for the answer, yes I am aware of venv and I use it in my dev-environments. In this case it is about a sysadmin tool and in general it is IMHO better to use what the system provides and admins don't have to fiddle around with loading venvs.

So the question actually is. Will Click 7.0 run on a Stock-Python3.6 on Bionic. I just checked and yes it installs without a problem:

pip3 install click==7.0

Thanks a lot for this great addition to Click!! I am closing this issue!