pipenv icon indicating copy to clipboard operation
pipenv copied to clipboard

Pipenv imports hg+ssh:// urls incorrectly to Pipfile

Open jtiai opened this issue 4 years ago • 0 comments

I have following definition in requirements.txt:

hg+ssh://[email protected]/python-verkkogml/#egg=verkkogml

In Pipfile it's imported as masking username incorrectly:

verkkogml = {hg = "ssh://****@private.repo/python-verkkogml/"}

Which causes Pipenv to query for password even it's using SSH cert auth.

Expected result

SSH-url is imported as-is or at least preserving username properly.

Actual result

Pipenv masks username to **** and on install asks password for user **** .

Steps to replicate

Create requirements file with described path, and run:

pipenv install -r requirements.txt

$ pipenv --support

Pipenv version: '2020.6.2'

Pipenv location: '/home/jtiai/.local/lib/python2.7/site-packages/pipenv'

Python location: '/usr/bin/python'

Python installations found:

  • 3.8.3: /home/jtiai/.pyenv/versions/3.8.3/bin/python3.8
  • 3.8.2: /usr/local/bin/python3.8
  • 3.7.3: /usr/bin/python3.7m
  • 3.7.3: /usr/bin/python3.7
  • 3.7.3: /usr/bin/python3
  • 2.7.16: /usr/bin/python2.7
  • 2.7.16: /usr/bin/python2

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.19.104-microsoft-standard',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP Wed Feb 19 06:37:35 UTC 2020',
 'python_full_version': '2.7.16',
 'python_version': '2.7',
 'sys_platform': 'linux2'}

System environment variables:

  • WSL_INTEROP
  • PYTHONDONTWRITEBYTECODE
  • LOGNAME
  • USER
  • HOME
  • PATH
  • LANG
  • TERM
  • SHELL
  • SHLVL
  • PYTHONFINDER_IGNORE_UNSUPPORTED
  • OMF_PATH
  • WSL_DISTRO_NAME
  • HOSTTYPE
  • WSLENV
  • PIP_PYTHON_PATH
  • OMF_CONFIG
  • NAME
  • PIP_DISABLE_PIP_VERSION_CHECK
  • WT_PROFILE_ID
  • PWD
  • PIP_SHIMS_BASE_MODULE
  • WT_SESSION
  • LS_COLORS

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /home/jtiai/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/app/jtiai/product/18.0.0/dbhomeXE/bin
  • SHELL: /usr/bin/fish
  • LANG: en_US.UTF-8
  • PWD: /home/jtiai/projects/keyduct

Contents of Pipfile ('/home/jtiai/projects/keyduct/Pipfile'):

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
verkkogml = {hg = "ssh://[email protected]/python-verkkogml/"}

[requires]
python_version = "2.7"

jtiai avatar Jul 09 '20 11:07 jtiai