Skip to content

Commit 2c50a2c

Browse files
Packaging for v3.6.0 (#340)
* Packaging for v3.6.0 * Add Python version check
1 parent 725646c commit 2c50a2c

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Flow Production Tracking Python API Changelog
44

55
Here you can see the full list of changes between each Python API release.
66

7+
v3.6.0 (2024 May 1)
8+
===================
9+
- Drop support for Python 2.7
10+
- certifi version changed to 2024.2.2
11+
- Documentation update
12+
713
v3.5.1 (2024 Apr 3)
814
===================
915
- Documentation: Revert to Shotgun in the API Reference headers to keep consistency with the API methods

setup.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
setup(
2929
name='shotgun_api3',
30-
version='3.5.1',
31-
description='Flow Production Tracking Python API ',
30+
version='3.6.0',
31+
description='Flow Production Tracking Python API',
3232
long_description=readme,
3333
author='Autodesk',
3434
author_email='https://www.autodesk.com/support/contact-support',
@@ -39,4 +39,15 @@
3939
include_package_data=True,
4040
package_data={'': ['cacerts.txt', 'cacert.pem']},
4141
zip_safe=False,
42+
python_requires=">=3.7.0",
43+
classifiers=[
44+
"Development Status :: 5 - Production/Stable",
45+
"Intended Audience :: Developers",
46+
"Programming Language :: Python",
47+
"Programming Language :: Python :: 3.7",
48+
"Programming Language :: Python :: 3.9",
49+
"Programming Language :: Python :: 3.10",
50+
"Programming Language :: Python :: 3.11",
51+
"Operating System :: OS Independent",
52+
],
4253
)

shotgun_api3/shotgun.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def _is_mimetypes_broken():
122122

123123
# ----------------------------------------------------------------------------
124124
# Version
125-
__version__ = "3.5.1"
125+
__version__ = "3.6.0"
126126

127127
# ----------------------------------------------------------------------------
128128
# Errors
@@ -213,6 +213,7 @@ def __init__(self, host, meta):
213213
:ivar bool is_dev: ``True`` if server is running a development version of the Shotgun
214214
codebase.
215215
"""
216+
self._ensure_python_version_supported()
216217
# Server host name
217218
self.host = host
218219
self.server_info = meta
@@ -237,6 +238,13 @@ def __init__(self, host, meta):
237238
self.version = tuple(self.version[:3])
238239
self._ensure_json_supported()
239240

241+
def _ensure_python_version_supported(self):
242+
"""
243+
Checks the if current Python version is supported.
244+
"""
245+
if sys.version_info < (3, 7):
246+
raise ShotgunError("This module requires Python version 3.7 or higher.")
247+
240248
def _ensure_support(self, feature, raise_hell=True):
241249
"""
242250
Checks the server version supports a given feature, raises an exception if it does not.

0 commit comments

Comments
 (0)