Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0452d17

Browse files
committed
chore: ensure releases never have a VCS dependency
Signed-off-by: Brian Harring <ferringb@gmail.com>
1 parent795fb64 commit0452d17

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎.github/workflows/release.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
-name:Checkout code
2121
uses:actions/checkout@v4
2222

23+
-name:Reject any VCS dependencies
24+
shell:python
25+
run:|
26+
import re, tomllib
27+
deps = tomllib.load(open('pyproject.toml', 'rb'))['build-system']['requires']
28+
if rejects := list(filter(re.compile(r'@[^+]+').search, deps)):
29+
rejects = " \n".join(sorted(rejects))
30+
raise Exception(f'VCS dependencies were detected in [build-system]:\n {rejects}')
31+
2332
-name:Set up Python 3.13
2433
uses:actions/setup-python@v5
2534
with:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp