Skip to content

pip-system-certs dependency #274

@jacobfelknor

Description

@jacobfelknor

This is going to be a highly system dependent issue, so please bear with me....

Is there a specific reason for including the pip-system-certs dependency in this project?

I've traced an issue creating my virtual environment to this dependency in some of my environments where the system certificate store could very well be insufficient to rely on. I do have a custom pypi source defined in my Pipfile whose certificate was issued by Let's Encrypt. My project is using pipenv, and if I do a dirty hack and remove the pip-system-certs entry from Pipfile.lock, everything appears to work.

I know this will highly depend on the system you run it on, but in my opinion that is part of the problem.

Here is a minimal Pipfile example where I could reproduce the issue

[[source]]
# internal pypi server whose cert was issued by Let's Encrypt
url = "https://pypi.example.com/simple/" 
verify_ssl = true
name = "internal-pypi"

[packages]
inventree = "*"

[dev-packages]
black = "*"
bump2version = "*"
flake8 = "*"

And I could reproduce with

  1. pipenv lock --dev
  2. pipenv sync --dev
  3. Observe failure
  4. Preform dirty hack and remove the pip-system-certs entry from Pipfile.lock
  5. pipenv sync --dev
  6. Observer successful environment creation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions