Skip to content

Commit 29882bc

Browse files
authored
Do no install the package by default (#449)
* do no install the package by default * lint
1 parent ef62a70 commit 29882bc

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

jupyter_releaser/lib.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from subprocess import CalledProcessError
1414

1515
import mdformat
16-
import toml
1716
from packaging.version import parse as parse_version
1817
from pkginfo import SDist, Wheel
1918

@@ -471,25 +470,6 @@ def prep_git(ref, branch, repo, auth, username, url):
471470
except Exception:
472471
util.run(f"git switch -c {branch}")
473472

474-
# Install the package
475-
# install python package in editable mode with dev and test deps
476-
if util.PYPROJECT.exists():
477-
# check the package can be installed first
478-
text = util.PYPROJECT.read_text(encoding="utf-8")
479-
data = toml.loads(text)
480-
if data.get("build-system"):
481-
util.run('pip install -q -e ".[dev,test]"')
482-
483-
# prefer yarn if yarn lock exists
484-
elif util.YARN_LOCK.exists():
485-
if not shutil.which("yarn"):
486-
util.run("npm install -g yarn")
487-
util.run("yarn")
488-
489-
# npm install otherwise
490-
elif util.PACKAGE_JSON.exists():
491-
util.run("npm install")
492-
493473
try:
494474
has_git_config = util.run("git config user.email").strip()
495475
except Exception:

0 commit comments

Comments
 (0)