Skip to content

Commit

Permalink
Fix double parentheses caused by pypa/virtualenv#2224
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Feb 3, 2022
1 parent 5c4a8ba commit 47d63e9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pyproject_devenv/__init__.py
Expand Up @@ -161,7 +161,7 @@ def create(self) -> int:
args = [
str(self.venv_dir),
"--prompt",
f"({self.config['name']}) ",
f"{self.config['name']}",
"--seeder",
"pip",
"--download",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -6,4 +6,4 @@ packaging>=20.9
pyproject-parser>=0.2.0
shippinglabel>=0.14.1
typing-extensions>=3.7.4.3
virtualenv>=20.4.3
virtualenv>=20.10.0
4 changes: 2 additions & 2 deletions tests/test_cli.py
Expand Up @@ -74,7 +74,7 @@ def test_mkdevenv(tmp_pathplus: PathPlus):
pyvenv_config: Dict[str, str] = read_pyvenv(venv_dir)

assert "prompt" in pyvenv_config
assert pyvenv_config["prompt"] == "(pyproject-devenv-demo) "
assert pyvenv_config["prompt"] == "pyproject-devenv-demo"

assert "pyproject-devenv" in pyvenv_config
assert pyvenv_config["pyproject-devenv"] == __version__
Expand Down Expand Up @@ -158,7 +158,7 @@ def test_mkdevenv_verbose(tmp_pathplus: PathPlus, extra_args):
pyvenv_config: Dict[str, str] = read_pyvenv(venv_dir)

assert "prompt" in pyvenv_config
assert pyvenv_config["prompt"] == "(pyproject-devenv-demo) "
assert pyvenv_config["prompt"] == "pyproject-devenv-demo"

assert "pyproject-devenv" in pyvenv_config
assert pyvenv_config["pyproject-devenv"] == __version__
Expand Down
12 changes: 6 additions & 6 deletions tests/test_devenv.py
Expand Up @@ -70,7 +70,7 @@ def test_mkdevenv(tmp_pathplus: PathPlus, capsys, verbosity: int):
pyvenv_config: Dict[str, str] = read_pyvenv(venv_dir)

assert "prompt" in pyvenv_config
assert pyvenv_config["prompt"] == "(pyproject-devenv-demo) "
assert pyvenv_config["prompt"] == "pyproject-devenv-demo"

assert "pyproject-devenv" in pyvenv_config
assert pyvenv_config["pyproject-devenv"] == __version__
Expand Down Expand Up @@ -144,7 +144,7 @@ def test_mkdevenv_extras(tmp_pathplus: PathPlus, capsys):
pyvenv_config: Dict[str, str] = read_pyvenv(venv_dir)

assert "prompt" in pyvenv_config
assert pyvenv_config["prompt"] == "(pyproject-devenv-demo) "
assert pyvenv_config["prompt"] == "pyproject-devenv-demo"

assert "pyproject-devenv" in pyvenv_config
assert pyvenv_config["pyproject-devenv"] == __version__
Expand Down Expand Up @@ -213,7 +213,7 @@ def test_mkdevenv_no_build_deps(tmp_pathplus: PathPlus, capsys):
pyvenv_config: Dict[str, str] = read_pyvenv(venv_dir)

assert "prompt" in pyvenv_config
assert pyvenv_config["prompt"] == "(pyproject-devenv-demo) "
assert pyvenv_config["prompt"] == "pyproject-devenv-demo"

assert "pyproject-devenv" in pyvenv_config
assert pyvenv_config["pyproject-devenv"] == __version__
Expand Down Expand Up @@ -268,7 +268,7 @@ def test_mkdevenv_no_lib_deps(tmp_pathplus: PathPlus, capsys):
pyvenv_config: Dict[str, str] = read_pyvenv(venv_dir)

assert "prompt" in pyvenv_config
assert pyvenv_config["prompt"] == "(pyproject-devenv-demo) "
assert pyvenv_config["prompt"] == "pyproject-devenv-demo"

assert "pyproject-devenv" in pyvenv_config
assert pyvenv_config["pyproject-devenv"] == __version__
Expand Down Expand Up @@ -323,7 +323,7 @@ def test_mkdevenv_no_lib_deps_dynamic(tmp_pathplus: PathPlus, capsys):
pyvenv_config: Dict[str, str] = read_pyvenv(venv_dir)

assert "prompt" in pyvenv_config
assert pyvenv_config["prompt"] == "(pyproject-devenv-demo) "
assert pyvenv_config["prompt"] == "pyproject-devenv-demo"

assert "pyproject-devenv" in pyvenv_config
assert pyvenv_config["pyproject-devenv"] == __version__
Expand Down Expand Up @@ -390,7 +390,7 @@ def test_mkdevenv_no_dynamic(tmp_pathplus: PathPlus, capsys):
pyvenv_config: Dict[str, str] = read_pyvenv(venv_dir)

assert "prompt" in pyvenv_config
assert pyvenv_config["prompt"] == "(pyproject-devenv-demo) "
assert pyvenv_config["prompt"] == "pyproject-devenv-demo"

assert "pyproject-devenv" in pyvenv_config
assert pyvenv_config["pyproject-devenv"] == __version__
Expand Down

0 comments on commit 47d63e9

Please sign in to comment.