Skip to content

Commit 996d405

Browse files
authored
CM-38264 - Fix certification validation (#236)
1 parent 4f3e62c commit 996d405

File tree

3 files changed

+119
-20
lines changed

3 files changed

+119
-20
lines changed

cycode/cli/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
from multiprocessing import freeze_support
22

3+
# DO NOT REMOVE OR MOVE THIS LINE
4+
# this is required to use certificates system store with requests packaged with PyInstaller
5+
import pip_system_certs.wrapt_requests # noqa: F401
6+
37
from cycode.cli.commands.main_cli import main_cli
48
from cycode.cli.sentry import add_breadcrumb, init_sentry
59

poetry.lock

Lines changed: 114 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ requests = ">=2.24,<3.0"
4141
urllib3 = "1.26.19" # lock v1 to avoid issues with openssl and old Python versions (<3.9.11) on macOS
4242
sentry-sdk = ">=2.8.0,<3.0"
4343
pyjwt = ">=2.8.0,<3.0"
44+
pip-system-certs = ">=4.0,<5.0"
4445

4546
[tool.poetry.group.test.dependencies]
4647
mock = ">=4.0.3,<4.1.0"

0 commit comments

Comments
 (0)