Skip to content

Commit 0aa8e49

Browse files
committed
Use native Python-version-aware constraints.txt updater instead of Dependabot
1 parent 2745c78 commit 0aa8e49

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

.github/dependabot.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# SPDX-FileNotice: Part of the FreeCAD project.
33

44
#
5-
# Configure to scan the Python constraints files.
5+
# Python dependency updates are handled by the Update Constraints
6+
# workflow on a weekly schedule, which resolves per Python version.
67
#
78

89
version : 2
@@ -14,14 +15,3 @@ updates:
1415

1516
schedule:
1617
interval : 'weekly'
17-
18-
- package-ecosystem : 'pip'
19-
directory : '/Data/Python/'
20-
21-
schedule:
22-
interval : 'weekly'
23-
24-
groups:
25-
all-deps:
26-
patterns:
27-
- '*'

.github/workflows/update-constraints.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
- 'Data/Python/*/Allowed-Packages'
2727
- 'Data/Python/*/constraints.txt'
2828

29+
schedule:
30+
- cron : '0 6 * * 1'
31+
2932
workflow_dispatch:
3033

3134
################################################################################
@@ -95,7 +98,7 @@ jobs:
9598
# versions of Python - provide a constraints each.
9699
#
97100

98-
py : [ '3.11' , '3.12' , '3.13' , '3.14' ]
101+
py : [ '3.10' , '3.11' , '3.12' , '3.13' , '3.14' ]
99102

100103
steps:
101104

@@ -243,7 +246,7 @@ jobs:
243246
runs-on : ubuntu-latest
244247
needs : Build
245248
name : Create PR
246-
if : ${{ github.event_name == 'workflow_dispatch' }}
249+
if : ${{ github.event_name != 'pull_request_target' }}
247250

248251
steps:
249252

0 commit comments

Comments
 (0)