From 0dcd8da4761c375dd4ca702b335dd6f9d71fd8b6 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 17 Oct 2022 16:22:27 -0500 Subject: [PATCH 1/2] do no install the package by default --- jupyter_releaser/lib.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/jupyter_releaser/lib.py b/jupyter_releaser/lib.py index 27cf5f51..dca39499 100644 --- a/jupyter_releaser/lib.py +++ b/jupyter_releaser/lib.py @@ -471,25 +471,6 @@ def prep_git(ref, branch, repo, auth, username, url): except Exception: util.run(f"git switch -c {branch}") - # Install the package - # install python package in editable mode with dev and test deps - if util.PYPROJECT.exists(): - # check the package can be installed first - text = util.PYPROJECT.read_text(encoding="utf-8") - data = toml.loads(text) - if data.get("build-system"): - util.run('pip install -q -e ".[dev,test]"') - - # prefer yarn if yarn lock exists - elif util.YARN_LOCK.exists(): - if not shutil.which("yarn"): - util.run("npm install -g yarn") - util.run("yarn") - - # npm install otherwise - elif util.PACKAGE_JSON.exists(): - util.run("npm install") - try: has_git_config = util.run("git config user.email").strip() except Exception: From 2c70626e25447b61b46c6d5dca4f95c800bf51a2 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 17 Oct 2022 17:02:48 -0500 Subject: [PATCH 2/2] lint --- jupyter_releaser/lib.py | 1 - 1 file changed, 1 deletion(-) diff --git a/jupyter_releaser/lib.py b/jupyter_releaser/lib.py index dca39499..85a9f519 100644 --- a/jupyter_releaser/lib.py +++ b/jupyter_releaser/lib.py @@ -13,7 +13,6 @@ from subprocess import CalledProcessError import mdformat -import toml from packaging.version import parse as parse_version from pkginfo import SDist, Wheel