Skip to content

Commit 694da41

Browse files
authored
SHOT-4597: Python 3.13 support (#140)
* Update badges
1 parent 6e91774 commit 694da41

8 files changed

Lines changed: 16 additions & 4 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
[![VFX Platform](https://img.shields.io/badge/vfxplatform-2023%20%7C%202022%20%7C%202021-blue.svg)](http://www.vfxplatform.com/)
2-
[![Python](https://img.shields.io/badge/python-3.10%20%7C%203.9%20%7C%203.7-blue.svg)](https://www.python.org/)
1+
[![Supported VFX Platform: CY2022 - CY2026](https://img.shields.io/badge/VFX_Reference_Platform-CY2022_|_CY2023_|_CY2024_|_CY2025_|_CY2026-blue)](http://www.vfxplatform.com/ "Supported VFX Reference Platform versions")
2+
[![Supported Python versions: 3.9, 3.10, 3.11, 3.13](https://img.shields.io/badge/Python-3.9_|_3.10_|_3.11_|_3.13-blue?logo=python&logoColor=f5f5f5)](https://www.python.org/ "Supported Python versions")
3+
[![Reference Documentation](http://img.shields.io/badge/doc-reference-blue.svg)](http://developer.shotgridsoftware.com/tk-framework-alias)
4+
5+
[![Build Status](https://dev.azure.com/shotgun-ecosystem/Toolkit/_apis/build/status/shotgunsoftware.tk-framework-alias?branchName=main)](https://dev.azure.com/shotgun-ecosystem/Toolkit/_build/latest?definitionId=38&branchName=main)
6+
[![codecov](https://codecov.io/gh/shotgunsoftware/tk-framework-alias/branch/main/graph/badge.svg)](https://codecov.io/gh/shotgunsoftware/tk-framework-alias)
37
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
4-
[![Build Status](https://dev.azure.com/shotgun-ecosystem/Toolkit/_apis/build/status%2Ftk-framework-alias?repoName=shotgunsoftware%2Ftk-framework-alias&branchName=main)](https://dev.azure.com/shotgun-ecosystem/Toolkit/_build/latest?definitionId=120&repoName=shotgunsoftware%2Ftk-framework-alias&branchName=main)
8+
59

610
# tk-framework-alias
711

2.97 MB
Binary file not shown.
2.97 MB
Binary file not shown.
2.97 MB
Binary file not shown.
2.97 MB
Binary file not shown.
3.26 MB
Binary file not shown.
3.26 MB
Binary file not shown.

python/tk_framework_alias_utils/environment_utils.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,19 @@ def get_alias_dist_dir(alias_version, python_major_version, python_minor_version
336336
python_folder_name,
337337
)
338338
)
339+
if not os.path.exists(base_folder_path):
340+
return
341+
339342
dist_folder_path = os.path.join(base_folder_path, alias_version)
340343
if os.path.exists(dist_folder_path):
341344
return dist_folder_path
342345

343-
# Alias distribution not found for exact version, fallback to the next supported version.
346+
# Alias distribution not found for exact version, get the list of supported versions.
344347
alias_dist_versions = sorted(os.listdir(base_folder_path))
348+
if not alias_dist_versions:
349+
return # No supported versions found
350+
351+
# Fallback to the next supported version.
345352
last_version = alias_dist_versions[0]
346353
if version_cmp(alias_version, last_version) < 0:
347354
return None # requested version does not meet minimum supported vesrion
@@ -517,6 +524,7 @@ def get_framework_supported_python_versions():
517524
(3, 9),
518525
(3, 10),
519526
(3, 11),
527+
(3, 13),
520528
]
521529

522530

0 commit comments

Comments
 (0)