Skip to content

Commit 92a92f4

Browse files
committed
update/fix publishing
1 parent 3530dbc commit 92a92f4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ members = [
2323
"stac_fastapi/*"
2424
]
2525

26+
[[tool.uv.index]]
27+
name = "testpypi"
28+
url = "https://test.pypi.org/simple/"
29+
publish-url = "https://test.pypi.org/legacy/"
30+
explicit = true
31+
2632
[dependency-groups]
2733
dev = [
2834
"pytest",

scripts/publish

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ do
3838
;;
3939

4040
--test)
41-
TEST_PYPI="--repository testpypi"
41+
TEST_PYPI="--index testpypi"
4242
shift
4343
;;
4444

@@ -61,7 +61,7 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
6161
do
6262
echo ${PACKAGE_DIR}
6363
rm -rf dist
64-
uv build --package PACKAGE_DIR
65-
uv publish --publish-url ${TEST_PYPI}
64+
uv build --package ${PACKAGE_DIR}
65+
uv publish ${TEST_PYPI}
6666
done
6767
fi

0 commit comments

Comments
 (0)