Skip to content

Commit df6af02

Browse files
committed
fix(tasks): also upload the reqif wheel file to PyPI
Closes #199
1 parent 774410f commit df6af02

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tasks.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,15 @@ def release(context, username=None, password=None):
175175

176176
repository_argument_or_none = "" if username else "--repository reqif_release"
177177
user_password = f"-u{username} -p{password}" if username is not None else ""
178+
179+
# NOTE: It is important that both tar.gz and whl files are uploaded.
180+
# This is needed for uv to pull dependencies with uv sync --no-build.
181+
# See https://github.com/strictdoc-project/reqif/issues/199.
178182
command = f"""
179183
rm -rfv dist/ &&
180184
python3 -m build &&
181185
twine check dist/* &&
182-
twine upload dist/reqif-*.tar.gz
186+
twine upload dist/reqif-*.tar.gz dist/*.whl
183187
{repository_argument_or_none}
184188
{user_password}
185189
"""

0 commit comments

Comments
 (0)