Skip to content

Commit

Permalink
Signing wheels is no longer a thing.
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherbjorn committed Dec 30, 2021
1 parent 356a598 commit fa31234
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,24 @@ def setversion(ctx, version):
help={
'clean': 'remove the build/ and dist/ directory before starting',
'wheel': 'build wheel (in addition to sdist)',
'sign': 'sign the wheel',
'upload': 'upload to PyPI after building'
}
)
def build(ctx, clean=False, wheel=True, sign=True, upload=False):
def build(ctx, clean=False, wheel=True, upload=False):
"""Build and publish (inv --help build for details)
"""
os.chdir(DIRNAME)
if clean:
ctx.run('rmdir dist /s /q', warn=True)
ctx.run('rmdir build /s /q', warn=True)

print("check README.rst syntax..")
r = ctx.run("python setup.py check --restructuredtext --strict")

targets = 'sdist'
if wheel:
targets += ' bdist_wheel'
ctx.run("python setup.py " + targets)

if wheel and sign:
for fname in glob.glob('dist/*.whl'):
ctx.run('wheel sign ' + fname)
print("Check generated .whl files..")
ctx.run("twine check dist/*")

# ctx.run("python setup.py build_sphinx")
if upload:
Expand Down

0 comments on commit fa31234

Please sign in to comment.