Skip to content

Commit

Permalink
Make sure invoke is imported after the monkeypatch
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 27, 2022
1 parent d782af3 commit 36b9adf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sdsstools/_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
# @License: BSD 3-Clause
# @Copyright: Brian Cherinka

# This file contains tasks that can be easily run from the shell terminal using the
# Invoke python package. If you do not have invoke, install it with pip install
# To list the tasks available, type invoke --list from the top-level repo directory

import inspect
import os
import shutil

from invoke import Collection, task


# Monkeypatching needed for invoke to work in Python 3.10 and 3.11 for now.
# See https://github.com/pyinvoke/invoke/issues/833#issuecomment-1293148106
if not hasattr(inspect, "getargspec"):
inspect.getargspec = inspect.getfullargspec # type: ignore


# This file contains tasks that can be easily run from the shell terminal using the
# Invoke python package. If you do not have invoke, install it with pip install
# To list the tasks available, type invoke --list from the top-level repo directory
from invoke import Collection, task # isort: skip


@task
Expand Down

0 comments on commit 36b9adf

Please sign in to comment.