You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packaging.requirement.Requirement is responsible for parsing the requirement line, and it doesn't throw an error, more specifically in case you are curious about it, >=2<2.23 is a valid LegacySpecifier. Pipenv just uses the functionality. I tend to leave it as it is.
Issue description
When using an invalid version range like
>=x<y
instead of the valid>=x,<y
, Pipenv does not complain.Expected result
I would expect Pipenv to tell me my version range is invalid and stop all operations.
Actual result
Pipenv does not care and acts like the version was
>=x
.Steps to replicate
$ pipenv --support
Pipenv version:
'2018.11.26'
Pipenv location:
'/…/.pyenv/versions/3.8.1/lib/python3.8/site-packages/pipenv'
Python location:
'/…/.pyenv/versions/3.8.1/bin/python3.8'
Python installations found:
3.8.1
:/…/.pyenv/versions/3.8.1/bin/python
3.8.0
:/…/.pyenv/versions/3.8-dev/bin/python
3.7.5
:/usr/bin/python3
3.7.5
:/usr/bin/python3.7m
3.7.3
:/…/.pyenv/versions/3.7.3/bin/python
3.7.3
:/…/.pyenv/versions/3.7.3/bin/python3.7m
3.7.1
:/…/.pyenv/versions/3.7.1/bin/python
3.7.1
:/…/.pyenv/versions/3.7.1/bin/python3.7m
3.6.7
:/…/.pyenv/versions/3.6.7/bin/python
3.6.7
:/…/.pyenv/versions/3.6.7/bin/python3.6m
3.6.5
:/…/.pyenv/versions/py36-airflow/bin/python
3.6.5
:/…/.pyenv/versions/3.6.5/bin/python
3.6.5
:/…/.pyenv/versions/3.6.5/bin/python3.6m
2.7.17
:/usr/bin/python
PEP 508 Information:
System environment variables:
SHELL
SESSION_MANAGER
WINDOWID
PYENV_HOOK_PATH
COLORTERM
PYENV_SHELL
XDG_CONFIG_DIRS
XDG_SESSION_PATH
GTK_IM_MODULE
PACKAGECLOUD_TOKEN
LANGUAGE
QT4_IM_MODULE
SSH_AUTH_SOCK
XMODIFIERS
DESKTOP_SESSION
SSH_AGENT_PID
EDITOR
PYENV_VERSION
GTK_MODULES
XDG_SEAT
MATE_DESKTOP_SESSION_ID
PWD
XDG_SESSION_DESKTOP
LOGNAME
QT_QPA_PLATFORMTHEME
XDG_SESSION_TYPE
GPG_AGENT_INFO
XAUTHORITY
XDG_GREETER_DATA_DIR
GDM_LANG
HOME
LANG
LS_COLORS
XDG_CURRENT_DESKTOP
VTE_VERSION
XDG_SEAT_PATH
CLUTTER_IM_MODULE
PYENV_DIR
NVM_DIR
LESSCLOSE
XDG_SESSION_CLASS
TERM
GTK_OVERLAY_SCROLLING
LESSOPEN
USER
DISPLAY
SHLVL
NVM_CD_FLAGS
QT_IM_MODULE
XDG_VTNR
UBUNTU_MENUPROXY
XDG_SESSION_ID
XDG_RUNTIME_DIR
COMPIZ_CONFIG_PROFILE
PYENV_ROOT
QT_AUTO_SCREEN_SCALE_FACTOR
XDG_DATA_DIRS
PATH
GDMSESSION
DBUS_SESSION_BUS_ADDRESS
NVM_BIN
QT_SCALE_FACTOR
OLDPWD
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/…/.pyenv/versions/3.8.1/bin:/…/.pyenv/libexec:/…/.pyenv/plugins/python-build/bin:/…/.cargo/bin:go/bin:/usr/local/go/bin:/…/.pyenv/shims:/…/.pyenv/bin:/…/.nvm/versions/node/v11.5.0/bin:/…/.cargo/bin:/…/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/…/PycharmProjects/fzf/bin
SHELL
:/bin/bash
EDITOR
:vim
LANG
:fr_FR.UTF-8
PWD
:/…/test
Contents of
Pipfile
('/…/test/Pipfile'):Contents of
Pipfile.lock
('/…/test/Pipfile.lock'):The text was updated successfully, but these errors were encountered: