Open danielsc opened 3 years ago
I would like to chime in that this causes havvok in my scripts when using style_from_dict in the latest PyPI version, since it complain about TypeErrors between str and _TokenType from prompt_tookit
If I install this by hand [pip install --upgrade prompt_toolkit==3.0]
, I get the following error:
pyinquirer 1.0.3 requires prompt_toolkit==1.0.14, but you'll have prompt-toolkit 3.0.0 which is incompatible.
Another request to finish this as a warning when running pytest also seems to potentially indicate a looming failure...
/home/jesse/.local/lib/python3.8/site-packages/prompt_toolkit/styles/from_dict.py:9: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working from collections import Mapping
I would also deeply appreciate it if the PyPi version could be updated to work with prompt_toolkit 3.0, as to install the older version of prompt_toolkit prevents the Hydrogen module from running in Atom and I cannot test my code. This will therefore also cause problems for anyone using Jupyter etc.
In the meantime, just throw this into your requirments.txt and pip will retrieve it from the git repository rather than pypi.
pip can use github instead of pypi if defined in requirements.txt following url scheme:
git+https:\/\/github.com/{author}/{repo}.git@{branch}
so requirements.txt might look like:
requests
numpy==1.19.3
git+https://github.com/CITGuru/PyInquirer.git@master
pywin32 ;platform_system=='Windows'
tqdm~=4.56.0
pip install -r requirements.txt
or simply just pip install git+https://github.com/CITGuru/PyInquirer.git@master
Installing collected packages: wcwidth, prompt-toolkit, PyInquirer Running setup.py install for PyInquirer ... done Successfully installed PyInquirer-1.0.3 prompt-toolkit-3.0.14 wcwidth-0.2.5
Bump. Can we please get a release? It looks like many of the issues I have with this library have been committed to the repo. I use setuptools
to manage requirements for my repo and the above suggestion does not seem to work.
Bump. Can we please get a release? It looks like many of the issues I have with this library have been committed to the repo. I use
setuptools
to manage requirements for my repo and the above suggestion does not seem to work.
you trued this? https://stackoverflow.com/questions/3472430/how-can-i-make-setuptools-install-a-package-thats-not-on-pypi
Another request to finish this as a warning when running pytest also seems to potentially indicate a looming failure...
I was getting this warning as well while using Python 3.8
It seems that the latest version on PyPi still depends on prompt_toolkit==1.0.14, whereas this repo seems to have moved to prompt_toolkit 3.0 on Jul 7 (which is great, since prompt_toolkit 1.x breaks iPython for me!). Could you push a new release to PyPi, so that i don't have to pip-install from the github repo?