Skip to content

Commit 1ded223

Browse files
committed
make pip-system-certs an optional extra
1 parent 313652c commit 1ded223

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
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: 9 additions & 8 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/"
@@ -39,12 +41,11 @@ packages = ["inventree"]
3941

4042
[tool.flake8]
4143
ignore =[
42-
'C901',
43-
# - W293 - blank lines contain whitespace
44-
'W293',
45-
# - E501 - line too long (82 characters)
46-
'E501',
44+
'C901',
45+
# - W293 - blank lines contain whitespace
46+
'W293',
47+
# - E501 - line too long (82 characters)
48+
'E501',
4749
'N802']
4850
exclude = ['.git','__pycache__','inventree_server','dist','build','test.py']
4951
max-complexity = 20
50-

0 commit comments

Comments
 (0)