shotgun-api3 3.8.5__py2.py3-none-any.whl → 3.9.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. shotgun_api3/__init__.py +34 -0
  2. shotgun_api3/lib/httplib2/__init__.py +1799 -39
  3. shotgun_api3/lib/httplib2/auth.py +1 -1
  4. shotgun_api3/lib/mockgun/mockgun.py +3 -3
  5. shotgun_api3/lib/mockgun/schema.py +2 -2
  6. shotgun_api3/py.typed +0 -0
  7. shotgun_api3/shotgun.py +491 -545
  8. {shotgun_api3-3.8.5.dist-info → shotgun_api3-3.9.1.dist-info}/METADATA +9 -50
  9. shotgun_api3-3.9.1.dist-info/RECORD +27 -0
  10. shotgun_api3/lib/httplib2/python2/__init__.py +0 -1993
  11. shotgun_api3/lib/httplib2/python2/auth.py +0 -63
  12. shotgun_api3/lib/httplib2/python2/cacerts.txt +0 -2225
  13. shotgun_api3/lib/httplib2/python2/certs.py +0 -42
  14. shotgun_api3/lib/httplib2/python2/error.py +0 -48
  15. shotgun_api3/lib/httplib2/python2/iri2uri.py +0 -123
  16. shotgun_api3/lib/httplib2/python2/socks.py +0 -518
  17. shotgun_api3/lib/httplib2/python3/__init__.py +0 -1799
  18. shotgun_api3/lib/httplib2/python3/auth.py +0 -69
  19. shotgun_api3/lib/httplib2/python3/cacerts.txt +0 -2225
  20. shotgun_api3/lib/httplib2/python3/certs.py +0 -42
  21. shotgun_api3/lib/httplib2/python3/error.py +0 -48
  22. shotgun_api3/lib/httplib2/python3/iri2uri.py +0 -124
  23. shotgun_api3/lib/httplib2/python3/socks.py +0 -518
  24. shotgun_api3/lib/mimetypes.py +0 -598
  25. shotgun_api3/lib/sgsix.py +0 -87
  26. shotgun_api3/lib/sgutils.py +0 -62
  27. shotgun_api3/lib/six.py +0 -964
  28. shotgun_api3-3.8.5.dist-info/RECORD +0 -44
  29. {shotgun_api3-3.8.5.dist-info → shotgun_api3-3.9.1.dist-info}/WHEEL +0 -0
  30. {shotgun_api3-3.8.5.dist-info → shotgun_api3-3.9.1.dist-info}/licenses/LICENSE +0 -0
  31. {shotgun_api3-3.8.5.dist-info → shotgun_api3-3.9.1.dist-info}/top_level.txt +0 -0
shotgun_api3/__init__.py CHANGED
@@ -8,6 +8,40 @@
8
8
  # agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
9
9
  # not expressly granted therein are reserved by Shotgun Software Inc.
10
10
 
11
+ import os
12
+ import sys
13
+ import warnings
14
+
15
+ if sys.version_info < (3, 7):
16
+ if os.environ.get("SHOTGUN_ALLOW_OLD_PYTHON", "0") != "1":
17
+ # This is our preferred default behavior when using an old
18
+ # unsupported Python version.
19
+ # This way, we can control where the exception is raised, and it provides a
20
+ # comprehensive error message rather than having users facing a random
21
+ # Python traceback and trying to understand this is due to using an
22
+ # unsupported Python version.
23
+
24
+ raise RuntimeError("This module requires Python version 3.7 or higher.")
25
+
26
+ warnings.warn(
27
+ "Python versions older than 3.7 are no longer supported as of January "
28
+ "2023. Since the SHOTGUN_ALLOW_OLD_PYTHON variable is enabled, this "
29
+ "module is raising a warning instead of an exception. "
30
+ "However, it is very likely that this module will not be able to work "
31
+ "on this Python version.",
32
+ RuntimeWarning,
33
+ stacklevel=2,
34
+ )
35
+ elif sys.version_info < (3, 9):
36
+ warnings.warn(
37
+ "Python versions older than 3.9 are no longer supported as of March "
38
+ "2025 and compatibility will be discontinued after March 2026. "
39
+ "Please update to Python 3.11 or any other supported version.",
40
+ DeprecationWarning,
41
+ stacklevel=2,
42
+ )
43
+
44
+
11
45
  from .shotgun import (
12
46
  Shotgun,
13
47
  ShotgunError,