Skip to content

Commit a2890e3

Browse files
redjaxredjax
and
redjax
authored
fix(pyproject): Fix scripts (#187)
Remove double "pdm pdm" from create-minor/micro-release Change upload-pypi/upload-pypi-test scripts to use pdm publish (instead of twine) Co-authored-by: redjax <[email protected]>
1 parent e06dc1c commit a2890e3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pyproject.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,15 @@ cmd = "pdm export -d -o requirements.dev.txt --without-hashes"
6464
shell = "pdm bump major && pdm bump tag && pdm lock && pdm build && git push --tags"
6565

6666
[tool.pdm.scripts.create-minor-release]
67-
shell = "pdm bump minor && pdm bump tag && pdm pdm lock && pdm build && git push --tags"
67+
shell = "pdm bump minor && pdm bump tag && pdm lock && pdm build && git push --tags"
6868

6969
[tool.pdm.scripts.create-micro-release]
70-
shell = "pdm bump micro && pdm bump tag && pdm pdm lock && pdm build && git push --tags"
70+
shell = "pdm bump micro && pdm bump tag && pdm lock && pdm build && git push --tags"
7171

7272
[tool.pdm.scripts.upload-pypi]
73-
shell = "pdm lock && pdm run twine upload dist/* --verbose"
73+
# shell = "pdm lock && pdm run twine upload dist/* --verbose"
74+
shell = "pdm lock && pdm publish --repository pypi --verbose"
7475

7576
[tool.pdm.scripts.upload-pypi-test]
76-
shell = "pdm lock && pdm run twine upload --repository testpypi dist/* --verbose"
77+
# shell = "pdm lock && pdm run twine upload --repository testpypi dist/* --verbose"
78+
shell = "pdm lock && pdm publish --repository test-pypi --version"

0 commit comments

Comments
 (0)