From 3270719aa41be72c00c297603fc68e93d6722212 Mon Sep 17 00:00:00 2001 From: Jacob Felknor Date: Fri, 15 Aug 2025 12:16:44 -0600 Subject: [PATCH] make pip-system-certs an optional extra --- README.md | 8 ++++++++ pyproject.toml | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 840c0cae..85b26c9e 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,14 @@ The InvenTree python library can be easily installed using PIP: pip install inventree ``` +If you need to rely on system certificates from the OS certificate store instead of the bundled certificates, use + +``` +pip install inventree[system-certs] +``` + +This allows pip and Python applications to verify TLS/SSL connections to servers whose certificates are trusted by your system, and can be helpful if you're using a custom certificate authority (CA) for your InvenTree instance's cert. + ## Documentation Refer to the [InvenTree documentation](https://docs.inventree.org/en/latest/api/python/python/) diff --git a/pyproject.toml b/pyproject.toml index fc346c49..bf6c42be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,10 +23,12 @@ keywords = [ "stock", ] dependencies = [ - "pip-system-certs>=4.0", - "requests>=2.27.0", + "requests>=2.27.0", "urllib3>=2.3.0", ] +[project.optional-dependencies] +"system-certs" = ["pip-system-certs>=4.0"] + [project.urls] Homepage = "https://github.com/inventree/inventree-python/"