Skip to content

Commit c04599a

Browse files
Merge pull request #278 from jacobfelknor/optional_system_certs
Make pip-system-certs an optional extra
2 parents 313652c + 3270719 commit c04599a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ The InvenTree python library can be easily installed using PIP:
1818
pip install inventree
1919
```
2020

21+
If you need to rely on system certificates from the OS certificate store instead of the bundled certificates, use
22+
23+
```
24+
pip install inventree[system-certs]
25+
```
26+
27+
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.
28+
2129
## Documentation
2230

2331
Refer to the [InvenTree documentation](https://docs.inventree.org/en/latest/api/python/python/)

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ keywords = [
2323
"stock",
2424
]
2525
dependencies = [
26-
"pip-system-certs>=4.0",
27-
"requests>=2.27.0",
26+
"requests>=2.27.0",
2827
"urllib3>=2.3.0",
2928
]
29+
[project.optional-dependencies]
30+
"system-certs" = ["pip-system-certs>=4.0"]
31+
3032

3133
[project.urls]
3234
Homepage = "https://github.com/inventree/inventree-python/"

0 commit comments

Comments
 (0)