Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying a version as '==X.X.*' has different behavior than '>=X.X.X'. This causes issues with deployment #4383

Closed
artificial-aidan opened this issue Jul 8, 2020 · 1 comment
Labels

Comments

@artificial-aidan
Copy link

Issue description

When you run pipenv install package==X.X.* the Pipfile.lock gets a package added to it with a hash, and a version specifier of X.X.*. If this package then gets updated, and you run pipenv install --deploy it fails because it installs the updated version, and the hash doesn't match.

Expected result

I expect that when I install a version it will lock a specific version number so I can deploy with a Pipfile.lock. This is how pipenv install package>=X.X.X works.

Actual result

Does not pin a version

Steps to replicate

pipenv install <package-name>=X.X.*
Look at the lockfile, the version will be specified as X.X.*


$ pipenv --support

Pipenv version: '2020.4.1b2'

Pipenv location: '/Users/aidan/.pyenv/versions/3.8.2/lib/python3.8/site-packages/pipenv'

Python location: '/Users/aidan/.pyenv/versions/3.8.2/bin/python3.8'

Python installations found:

  • 3.9.0a5: /Users/aidan/.pyenv/versions/3.9.0a5/bin/python3
  • 3.8.2: /Users/aidan/.pyenv/versions/3.8.2/bin/python3
  • 3.8.2: /Users/aidan/.pyenv/versions/3.8.2/bin/python3
  • 3.8.2: /Users/aidan/.pyenv/versions/3.8.2/bin/python3.8
  • 3.7.7: /usr/local/bin/python3
  • 3.7.7: /usr/local/bin/python3.7m
  • 3.7.7: /usr/local/bin/python3.7
  • 3.7.3: /usr/bin/python3
  • 3.6.9: /Users/aidan/.pyenv/versions/3.6.9/bin/python3
  • 3.6.3: /Users/aidan/.pyenv/versions/3.6.3/bin/python3
  • 3.5.9: /Users/aidan/.pyenv/versions/3.5.9/bin/python3
  • 2.7.16: /usr/bin/python2
  • 2.7.16: /usr/bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.8.2',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '19.5.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT '
                     '2020; root:xnu-6153.121.2~2/RELEASE_X86_64',
 'python_full_version': '3.8.2',
 'python_version': '3.8',
 'sys_platform': 'darwin'}

System environment variables:

  • TERM_PROGRAM
  • PYENV_ROOT
  • SUBSTRATE_REGISTRY
  • TERM
  • SHELL
  • TMPDIR
  • TERM_PROGRAM_VERSION
  • TERM_SESSION_ID
  • PYENV_VERSION
  • USER
  • SSH_AUTH_SOCK
  • PYENV_DIR
  • PATH
  • LaunchInstanceID
  • PWD
  • LANG
  • PYENV_HOOK_PATH
  • XPC_FLAGS
  • XPC_SERVICE_NAME
  • PIPENV_PYPI_MIRROR
  • SUBSTRATE_REPO
  • HOME
  • SHLVL
  • PYENV_SHELL
  • LOGNAME
  • GOPATH
  • DISPLAY
  • SECURITYSESSIONID
  • __CF_USER_TEXT_ENCODING
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

  • PIPENV_PYPI_MIRROR: https://r.reg.notartificial.xyz/repository/artificial-pypi/simple

Debug–specific environment variables:

  • PATH: /Users/aidan/.pyenv/versions/3.8.2/bin:/usr/local/Cellar/pyenv/1.2.18/libexec:/Users/aidan/.pyenv/shims:/usr/local/opt/python/libexec/bin:/Users/aidan/.pyenv/shims:/usr/local/opt/python/libexec/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Users/aidan/go/bin:/Users/aidan/go/bin:/Users/aidan/Development
  • SHELL: /bin/bash
  • LANG: en_US.UTF-8
  • PWD: /Users/aidan/Development/ngrok-file-server

@frostming
Copy link
Contributor

This was fixed in #4283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants