Skip to content

Commit 9bd65d4

Browse files
author
KP
committed
#34265 Add environment variable override for NO_SSL_VALIDATION.
Package release v3.0.24 closes #96
1 parent e5f7ca6 commit 9bd65d4

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ Integration and unit tests are provided.
5353

5454
## Changelog
5555

56-
**v3.0.24 - TBD**
57-
58-
+ TBD
56+
**v3.0.24 - 2016 Jan 08**
5957

58+
+ Add environment variable override for `NO_SSL_VALIDATION`.
59+
6060
**v3.0.23 - 2015 Oct 26**
6161

6262
+ Fix for python bug on Windows loading mimetypes module (http://bugs.python.org/issue23371) thanks to @patrickwolf.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name='shotgun_api3',
20-
version='3.0.23',
20+
version='3.0.24',
2121
description='Shotgun Python API ',
2222
long_description=readme,
2323
author='Shotgun Software',

shotgun_api3/shotgun.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,18 @@
6767
SG_TIMEZONE = SgTimezone()
6868

6969

70+
NO_SSL_VALIDATION = False
7071
try:
7172
import ssl
72-
NO_SSL_VALIDATION = False
73+
if os.environ.get("SHOTGUN_DISABLE_SSL_VALIDATION", False):
74+
NO_SSL_VALIDATION = True
7375
except ImportError:
7476
LOG.debug("ssl not found, disabling certificate validation")
7577
NO_SSL_VALIDATION = True
7678

7779
# ----------------------------------------------------------------------------
7880
# Version
79-
__version__ = "3.0.24.dev"
81+
__version__ = "3.0.24"
8082

8183
# ----------------------------------------------------------------------------
8284
# Errors

0 commit comments

Comments
 (0)