Skip to content

Commit f54574c

Browse files
committed
Set trusted-publishing uv option via pyproject.toml
Also removes from release worklflow publishing to testPyPI (intended that this be later reinstated).
1 parent aa25386 commit f54574c

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ jobs:
2222
- name: Build
2323
run: uv build
2424

25-
- name: Publish distribution 📦 to Test PyPI
26-
run: uv publish --index testpypi
27-
- name: Check test install and import
28-
run: |
29-
sleep 5 # Wait for Test Pypi to publish
30-
# Include pypi index for deps not available from test pypi...
31-
uv run \
32-
--with exchange-calendars \
33-
--refresh-package exchange-calendars \
34-
--index https://test.pypi.org/simple \
35-
--index https://pypi.org/simple \
36-
--index-strategy unsafe-best-match \
37-
--no-project \
38-
--isolated \
39-
-- \
40-
python -c 'import exchange_calendars; print(f"{exchange_calendars.__version__=}")'
25+
# - name: Publish distribution 📦 to Test PyPI
26+
# run: uv publish --index testpypi
27+
# - name: Check test install and import
28+
# run: |
29+
# sleep 5 # Wait for Test Pypi to publish
30+
# # Include pypi index for deps not available from test pypi...
31+
# uv run \
32+
# --with exchange-calendars \
33+
# --refresh-package exchange-calendars \
34+
# --index https://test.pypi.org/simple \
35+
# --index https://pypi.org/simple \
36+
# --index-strategy unsafe-best-match \
37+
# --no-project \
38+
# --isolated \
39+
# -- \
40+
# python -c 'import exchange_calendars; print(f"{exchange_calendars.__version__=}")'
4141

4242
- name: Publish distribution 📦 to PyPI
4343
run: uv publish

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ documentation = "https://github.com/gerrymanoim/exchange_calendars/tree/master/d
7373
"Source Code" = "https://github.com/gerrymanoim/exchange_calendars"
7474

7575
[tool.uv]
76+
trusted-publishing = "always"
7677
conflicts = [
7778
[
7879
{ group = "test_min" },

0 commit comments

Comments
 (0)