Skip to content

Commit

Permalink
Fix error in pypi pre-requisites
Browse files Browse the repository at this point in the history
  • Loading branch information
kotfu committed Nov 14, 2022
1 parent 86711a9 commit ce3e547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def build(context):
namespace.add_task(build)


@invoke.task(pre=build)
@invoke.task(pre=[build])
def pypi(context):
"Build and upload a distribution to pypi"
context.run("twine upload dist/*")
Expand All @@ -197,7 +197,7 @@ def pypi(context):
namespace.add_task(pypi)


@invoke.task(pre=build)
@invoke.task(pre=[build])
def pypi_test(context):
"Build and upload a distribution to https://test.pypi.org"
context.run("twine upload --repository-url https://test.pypi.org/legacy/ dist/*")
Expand Down

0 comments on commit ce3e547

Please sign in to comment.