Skip to content

Commit b71bbab

Browse files
committed
Revert build back to setup.py
1 parent 53542a3 commit b71bbab

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tasks.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def mypy(context):
9999
"""Run mypy optional static type checker"""
100100
with context.cd(TASK_ROOT_STR):
101101
context.run("mypy cmd2")
102+
with context.cd(str(TASK_ROOT / 'examples')):
103+
context.run("mypy decorator_example.py")
102104

103105

104106
namespace.add_task(mypy)
@@ -308,7 +310,7 @@ def validatetag(context):
308310
def sdist(context):
309311
"""Create a source distribution"""
310312
with context.cd(TASK_ROOT_STR):
311-
context.run('python -m build --sdist')
313+
context.run('python setup.py sdist')
312314

313315

314316
namespace.add_task(sdist)
@@ -318,7 +320,7 @@ def sdist(context):
318320
def wheel(context):
319321
"""Build a wheel distribution"""
320322
with context.cd(TASK_ROOT_STR):
321-
context.run('python -m build')
323+
context.run('python setup.py bdist_wheel')
322324

323325

324326
namespace.add_task(wheel)
@@ -366,12 +368,12 @@ def format(context):
366368
namespace.add_task(format)
367369

368370

369-
# Black and isort auto-formatting
371+
# Ruff fast auto-formatter and linter
370372
@invoke.task()
371373
def ruff(context):
372374
"""Run ruff auto-formatter and linter"""
373375
with context.cd(TASK_ROOT_STR):
374376
context.run("ruff check")
375377

376378

377-
namespace.add_task(ruff)
379+
namespace.add_task(ruff)

0 commit comments

Comments
 (0)