Skip to content

Commit 3f49fec

Browse files
committed
cleanup
1 parent feafbc0 commit 3f49fec

6 files changed

Lines changed: 11 additions & 30 deletions

File tree

.snyk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ ignore:
88
- resources/python/src/3.10/explicit_requirements.txt
99
- resources/python/src/3.11/explicit_requirements.txt
1010
- resources/python/src/3.13/explicit_requirements.txt
11-
# WHY &&&&??????? that's not what we want to do. Quite the opposite....
1211
exclude:
1312
global:
1413
# Exclude Python 3.7 deps because Snyk only scans with supported versions
15-
- resources/python/requirements/3.7/requirements.txt
1614
- resources/python/bin/3.7/explicit_requirements.txt
1715
- resources/python/bin/3.7/explicit_requirements.txt

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
extra_test_dependencies:
3838
# All runtime dependencies come from the unified requirements file.
3939
# This guarantees CI-installed versions match what pkgs.zip bundles,
40-
# preventing sys.modules version conflicts (see SG-42304). TODO
40+
# preventing sys.modules version conflicts.
4141
- --requirement=azure-pipelines/requirements.txt
4242
post_tests_steps:
4343
- task: Bash@3

azure-pipelines/requirements.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# Required when binary dependencies are not bundled
22
attrs==22.2.0 # Fix version. Otherwise tk-ci-tools will install latest
3-
## TODO will see later if we can update this ..!.!.!.!
43

54
# Twisted must match the version bundled in pkgs.zip/src/ for the corresponding
65
# Python version. If the test environment installs a different version, it gets
76
# loaded first and causes a sys.modules version conflict at runtime (see SG-42304).
87
Twisted==22.10.0; python_version < "3.9"
9-
# Twisted==24.10.0; python_version >= "3.9" and python_version < "3.13"
10-
# Twisted~=24.11.0; python_version >= "3.13"
11-
Twisted~=25.5.0; python_version >= "3.9"
8+
Twisted==24.10.0; python_version >= "3.9" and python_version < "3.13"
9+
Twisted~=24.11.0; python_version >= "3.13"
1210

1311
# websocket-client is a test-only dependency (not bundled in pkgs.zip).
14-
# 1.6.2+ dropped Python 3.7 support; our minimum is Python 3.9.
1512
websocket-client==1.6.1; python_version < "3.9" # Last version supporting Python 3.7
1613
websocket-client~=1.9.0; python_version >= "3.9"

resources/python/install_binary.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2017 Shotgun Software Inc.
1+
# Copyright (c) 2026 Shotgun Software Inc.
22
#
33
# CONFIDENTIAL AND PROPRIETARY
44
#
@@ -79,5 +79,3 @@
7979
]:
8080
for match in bin_dir.glob(pattern):
8181
shutil.rmtree(match, ignore_errors=True)
82-
83-

resources/python/pipelines/pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
# Source
5858
# -----------------------------------------------------------------
5959
- job: source_${{ replace(pyver.name, '.', '_') }}
60-
displayName: Py 3rd-Party Pkgs - ${{ pyver.name }} - Src
60+
displayName: Pkg Req - Py ${{ pyver.name }} - Src
6161
pool:
6262
vmImage: ubuntu-22.04
6363
${{ if pyver.prev }}:
@@ -110,7 +110,7 @@ jobs:
110110
# -----------------------------------------------------------------
111111
- ${{ each os in parameters.os_platforms }}:
112112
- job: ${{ os.name }}_${{ replace(pyver.name, '.', '_') }}
113-
displayName: Py 3rd-Party Pkgs - ${{ pyver.name }} - ${{ os.short }}
113+
displayName: Pkg Req - Py ${{ pyver.name }} - ${{ os.short }}
114114
${{ if os.prev }}:
115115
dependsOn: ${{ os.prev }}_${{ replace(pyver.name, '.', '_') }}
116116
${{ else }}:

resources/python/requirements.txt

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
1-
# Unified requirements file for tk-framework-desktopserver Python dependencies.
2-
#
3-
# This is the single source of truth for all Python dependency versions.
4-
# It serves two purposes:
5-
#
6-
# 1. Building pkgs.zip - passed to update_requirements.py which calls pip
7-
# under each target Python version. Pip env markers are resolved
8-
# automatically based on the running interpreter.
9-
#
10-
# 2. CI test dependencies - referenced in azure-pipelines.yml as:
11-
# extra_test_dependencies:
12-
# - --requirement resources/python/requirements.txt
13-
#
141
# Supported Python versions:
152
# - 3.7 (legacy; Twisted capped at 22.10.0)
163
# - 3.9 (VFX CY2022)
174
# - 3.10 (VFX CY2023)
185
# - 3.11 (VFX CY2024)
19-
# - 3.13 (VFX CY2026; 3.12 was skipped - not a VFX platform year)
6+
# - 3.13 (VFX CY2026)
207
#
218
# When updating a dependency, run update_requirements.py for each Python
229
# version to regenerate the frozen explicit_requirements.txt files, then
@@ -32,8 +19,8 @@
3219
# 24.10.0 is used for 3.9-3.11.
3320
# 24.11+ is required for 3.13 (dropped legacy code paths incompatible with
3421
# the new interpreter).
35-
Twisted==22.10.0; python_version == "3.7"
36-
Twisted==24.10.0; python_version > "3.7" and python_version < "3.13"
22+
Twisted==22.10.0; python_version < "3.9"
23+
Twisted==24.10.0; python_version >= "3.9" and python_version < "3.13"
3724
Twisted~=24.11.0; python_version >= "3.13"
3825

3926
# autobahn - WebSocket and WAMP protocol implementation on top of Twisted.
@@ -58,7 +45,8 @@ service-identity~=24.2.0; python_version >= "3.13"
5845
# cryptography - low-level cryptography backend for pyOpenSSL.
5946
# Binary package (wheel). NOTE: only needed for SAST scanning, not runtime.
6047
# 44.x compatible across all supported Python versions.
61-
cryptography==44.0.1
48+
cryptography==44.0.3; python_version < "3.13"
49+
cryptography~=44.0.1; python_version >= "3.13"
6250

6351
# cffi - C foreign function interface; dependency of cryptography.
6452
# Binary package (wheel). 1.17.x required for Python 3.13 (updated C API

0 commit comments

Comments
 (0)