-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newlines in output of --py
#5969
Labels
Type: Enhancement 💡
This is a feature or enhancement request.
Comments
Proposal: diff --git a/pipenv/cli/command.py b/pipenv/cli/command.py
index fb4ee05..a61b9a6 100644
--- a/pipenv/cli/command.py
+++ b/pipenv/cli/command.py
@@ -27,6 +27,7 @@ from pipenv.utils.processes import subprocess_run
from pipenv.vendor.click import (
Choice,
argument,
+ echo,
edit,
group,
option,
@@ -125,7 +126,7 @@ def cli(
do_where(state.project, bare=True)
return 0
elif py:
- do_py(state.project, ctx=ctx)
+ do_py(state.project, ctx=ctx, bare=True)
return 0
# --support was passed...
elif support:
@@ -758,7 +759,7 @@ if __name__ == "__main__":
cli()
-def do_py(project, ctx=None, system=False):
+def do_py(project, ctx=None, system=False, bare=False):
if not project.virtualenv_exists:
err.print(
"[red]No virtualenv has been created for this project[/red] "
@@ -768,6 +769,7 @@ def do_py(project, ctx=None, system=False):
ctx.abort()
try:
- console.print(project._which("python", allow_global=system))
+ (echo if bare else console.print)(project._which("python", allow_global=system))
except AttributeError:
console.print("No project found!", style="red")
+ ctx.abort() |
@notEvil Feel free to open a PR since it seems like you have a patch. I am not quite sure I understand where the new line is coming from though. |
I'd say here coming from |
2 tasks
emilymclean
pushed a commit
to TechlauncherFireApp/backend
that referenced
this issue
Oct 26, 2023
Bumps [pipenv](https://github.com/pypa/pipenv) from 2023.2.4 to 2023.10.24. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pypa/pipenv/releases">pipenv's releases</a>.</em></p> <blockquote> <h2>Release v2023.10.24</h2> <h2>What's Changed</h2> <ul> <li>Simplify sorting code by <a href="https://github.com/daveschaefer"><code>@daveschaefer</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5990">pypa/pipenv#5990</a></li> <li>Updates all vendoring to latest (except pipdeptree) by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5986">pypa/pipenv#5986</a></li> <li>Added safety check in _fold_markers by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5988">pypa/pipenv#5988</a></li> <li>Python 3.12 support (passing) by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5987">pypa/pipenv#5987</a></li> <li>Pip 23.3.1 <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://github.com/pypa/pipenv/commit/ebc3883daccc6ee041928accd7d176c13a260c06">https://github.com/pypa/pipenv/commit/ebc3883daccc6ee041928accd7d176c13a260c06</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pypa/pipenv/compare/v2023.10.20...v2023.10.24">https://github.com/pypa/pipenv/compare/v2023.10.20...v2023.10.24</a></p> <h2>Release v2023.10.20</h2> <h2>What's Changed</h2> <ul> <li>Drop pep517 by <a href="https://github.com/oz123"><code>@oz123</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5970">pypa/pipenv#5970</a></li> <li>Add quiet option to pipenv shell. by <a href="https://github.com/fmssn"><code>@fmssn</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5966">pypa/pipenv#5966</a></li> <li>ci: fix ruff linter by <a href="https://github.com/engineerakki"><code>@engineerakki</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5984">pypa/pipenv#5984</a></li> <li>Update advanced.md to restore Automatic Python Installation header by <a href="https://github.com/iamed2"><code>@iamed2</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5985">pypa/pipenv#5985</a></li> <li>Update to Pip 23.3 by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5979">pypa/pipenv#5979</a></li> <li>Bump urllib3 from 1.26.17 to 1.26.18 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5980">pypa/pipenv#5980</a></li> <li>Drop support for python3.7 by <a href="https://github.com/deronnax"><code>@deronnax</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5879">pypa/pipenv#5879</a></li> <li>Bump urllib3 from 2.0.6 to 2.0.7 in /examples by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5981">pypa/pipenv#5981</a></li> <li>Change <code>--py</code> to use <code>print</code> instead of <code>console.print</code> by <a href="https://github.com/notEvil"><code>@notEvil</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5971">pypa/pipenv#5971</a></li> <li>Bump urllib3 from 1.26.17 to 1.26.18 in /docs by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5982">pypa/pipenv#5982</a></li> <li>Sort packages alphabetically inside each category by <a href="https://github.com/daveschaefer"><code>@daveschaefer</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5965">pypa/pipenv#5965</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/engineerakki"><code>@engineerakki</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5984">pypa/pipenv#5984</a></li> <li><a href="https://github.com/iamed2"><code>@iamed2</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5985">pypa/pipenv#5985</a></li> <li><a href="https://github.com/notEvil"><code>@notEvil</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5971">pypa/pipenv#5971</a></li> <li><a href="https://github.com/daveschaefer"><code>@daveschaefer</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5965">pypa/pipenv#5965</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pypa/pipenv/compare/v2023.10.3...v2023.10.20">https://github.com/pypa/pipenv/compare/v2023.10.3...v2023.10.20</a></p> <h2>Release v2023.10.3</h2> <h2>What's Changed</h2> <ul> <li>Include the package name in the information to the resolver by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5930">pypa/pipenv#5930</a></li> <li>Solving slashes or other less usual symbols in vcs refs were not being interpreted correctly. by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5935">pypa/pipenv#5935</a></li> <li>Update some external links on the docs by <a href="https://github.com/pmhaddad"><code>@pmhaddad</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5943">pypa/pipenv#5943</a></li> <li>Bump certifi from 2023.5.7 to 2023.7.22 in /examples by <a href="https://github.com/yurishevtsov"><code>@yurishevtsov</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5941">pypa/pipenv#5941</a></li> <li>Update README.md by <a href="https://github.com/umarmnaq"><code>@umarmnaq</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5946">pypa/pipenv#5946</a></li> <li>Catch req.link = None by <a href="https://github.com/fmssn"><code>@fmssn</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5951">pypa/pipenv#5951</a></li> <li>Bump urllib3 from 2.0.2 to 2.0.6 in /examples by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5958">pypa/pipenv#5958</a></li> <li>Bump urllib3 from 1.26.14 to 1.26.17 in /docs by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5960">pypa/pipenv#5960</a></li> <li>Bump urllib3 from 1.26.14 to 1.26.17 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5959">pypa/pipenv#5959</a></li> <li>set regular logging level to ERROR by <a href="https://github.com/fmssn"><code>@fmssn</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5957">pypa/pipenv#5957</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/pmhaddad"><code>@pmhaddad</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5943">pypa/pipenv#5943</a></li> <li><a href="https://github.com/yurishevtsov"><code>@yurishevtsov</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5941">pypa/pipenv#5941</a></li> <li><a href="https://github.com/umarmnaq"><code>@umarmnaq</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5946">pypa/pipenv#5946</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pypa/pipenv/blob/main/CHANGELOG.md">pipenv's changelog</a>.</em></p> <blockquote> <h1>2023.10.24 (2023-10-24)</h1> <h1>Pipenv 2023.10.24 (2023-10-24)</h1> <h2>Features & Improvements</h2> <ul> <li>Officially support python 3.12 <code>[#5987](pypa/pipenv#5987) <https://github.com/pypa/pipenv/issues/5987></code>_</li> </ul> <h2>Bug Fixes</h2> <ul> <li>Additional safety check in <em>fold_markers logic that affected some lock resolutions in prior release. <code>[#5988](pypa/pipenv#5988) <https://github.com/pypa/pipenv/issues/5988></code></em></li> </ul> <h2>Vendored Libraries</h2> <ul> <li>Update vendored versions of: <ul> <li>click==8.1.7</li> <li>markupsafe==2.1.3</li> <li>pydantic==1.10.13</li> <li>pythonfinder==2.0.6</li> <li>ruamel.yaml==0.17.39</li> <li>shellingham==1.5.3</li> <li>tomlkit==0.12.1 <code>[#5986](pypa/pipenv#5986) <https://github.com/pypa/pipenv/issues/5986></code>_</li> </ul> </li> <li>Update vendored pip to <code>23.3.1</code> <code>[#5991](pypa/pipenv#5991) <https://github.com/pypa/pipenv/issues/5991></code>_</li> </ul> <h1>2023.10.20 (2023-10-20)</h1> <h2>Features & Improvements</h2> <ul> <li>Add quiet option to pipenv shell, hiding "Launching subshell in virtual environment..." <code>[#5966](pypa/pipenv#5966) <https://github.com/pypa/pipenv/issues/5966></code>_</li> <li>Vendor in pip==23.3 which includes updates to certifi, urllib3, and adds truststore among other improvements. <code>[#5979](pypa/pipenv#5979) <https://github.com/pypa/pipenv/issues/5979></code>_</li> </ul> <h2>Behavior Changes</h2> <ul> <li>Change <code>--py</code> to use <code>print</code> preventing insertion of newline characters <code>[#5969](pypa/pipenv#5969) <https://github.com/pypa/pipenv/issues/5969></code>_</li> </ul> <h2>Vendored Libraries</h2> <ul> <li>Drop pep517 - as it is no longer used. <code>[#5970](pypa/pipenv#5970) <https://github.com/pypa/pipenv/issues/5970></code>_</li> </ul> <p>Removals and Deprecations</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pypa/pipenv/commit/07787da9aa87162955bb2d6890ba951ddc26199a"><code>07787da</code></a> Release v2023.10.24</li> <li><a href="https://github.com/pypa/pipenv/commit/49a86af6327b430311d78688755a181776c069a2"><code>49a86af</code></a> fix ruff lint</li> <li><a href="https://github.com/pypa/pipenv/commit/1b3b61eb218c3eb74836e9862a1db612a6bb1a0f"><code>1b3b61e</code></a> Python 3.12 support (passing) (<a href="https://redirect.github.com/pypa/pipenv/issues/5987">#5987</a>)</li> <li><a href="https://github.com/pypa/pipenv/commit/548fe82597c30d4d8b70e53b07a356c2f63b1686"><code>548fe82</code></a> add news fragment</li> <li><a href="https://github.com/pypa/pipenv/commit/5793e62407ba7e4a4e9b37ff912f6e3d9680c2cc"><code>5793e62</code></a> Ran across this edge case of the new release with PyJWT</li> <li><a href="https://github.com/pypa/pipenv/commit/c70337f1461474947ea8519df3ae940440748d9d"><code>c70337f</code></a> add news fragment</li> <li><a href="https://github.com/pypa/pipenv/commit/ebc3883daccc6ee041928accd7d176c13a260c06"><code>ebc3883</code></a> Vendor pip 23.3.1</li> <li><a href="https://github.com/pypa/pipenv/commit/565bc44ed0d38609cc6c9b77c144dc2c90a32f76"><code>565bc44</code></a> Add news fragment</li> <li><a href="https://github.com/pypa/pipenv/commit/ab392a64043401a208fec7472cee361026f98705"><code>ab392a6</code></a> Add missing files</li> <li><a href="https://github.com/pypa/pipenv/commit/649a05842d28249ac3738c64275dafbf044bb2dc"><code>649a058</code></a> Update all vendoring to latest (except pipdeptree).</li> <li>Additional commits viewable in <a href="https://github.com/pypa/pipenv/compare/v2023.2.4...v2023.10.24">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pipenv&package-manager=pip&previous-version=2023.2.4&new-version=2023.10.24)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
achim-k
pushed a commit
to foxglove/ws-protocol
that referenced
this issue
Nov 13, 2023
Bumps [pipenv](https://github.com/pypa/pipenv) from 2023.3.20 to 2023.10.24. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pypa/pipenv/releases">pipenv's releases</a>.</em></p> <blockquote> <h2>Release v2023.10.24</h2> <h2>What's Changed</h2> <ul> <li>Simplify sorting code by <a href="https://github.com/daveschaefer"><code>@daveschaefer</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5990">pypa/pipenv#5990</a></li> <li>Updates all vendoring to latest (except pipdeptree) by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5986">pypa/pipenv#5986</a></li> <li>Added safety check in _fold_markers by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5988">pypa/pipenv#5988</a></li> <li>Python 3.12 support (passing) by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5987">pypa/pipenv#5987</a></li> <li>Pip 23.3.1 <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://github.com/pypa/pipenv/commit/ebc3883daccc6ee041928accd7d176c13a260c06">https://github.com/pypa/pipenv/commit/ebc3883daccc6ee041928accd7d176c13a260c06</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pypa/pipenv/compare/v2023.10.20...v2023.10.24">https://github.com/pypa/pipenv/compare/v2023.10.20...v2023.10.24</a></p> <h2>Release v2023.10.20</h2> <h2>What's Changed</h2> <ul> <li>Drop pep517 by <a href="https://github.com/oz123"><code>@oz123</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5970">pypa/pipenv#5970</a></li> <li>Add quiet option to pipenv shell. by <a href="https://github.com/fmssn"><code>@fmssn</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5966">pypa/pipenv#5966</a></li> <li>ci: fix ruff linter by <a href="https://github.com/engineerakki"><code>@engineerakki</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5984">pypa/pipenv#5984</a></li> <li>Update advanced.md to restore Automatic Python Installation header by <a href="https://github.com/iamed2"><code>@iamed2</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5985">pypa/pipenv#5985</a></li> <li>Update to Pip 23.3 by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5979">pypa/pipenv#5979</a></li> <li>Bump urllib3 from 1.26.17 to 1.26.18 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5980">pypa/pipenv#5980</a></li> <li>Drop support for python3.7 by <a href="https://github.com/deronnax"><code>@deronnax</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5879">pypa/pipenv#5879</a></li> <li>Bump urllib3 from 2.0.6 to 2.0.7 in /examples by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5981">pypa/pipenv#5981</a></li> <li>Change <code>--py</code> to use <code>print</code> instead of <code>console.print</code> by <a href="https://github.com/notEvil"><code>@notEvil</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5971">pypa/pipenv#5971</a></li> <li>Bump urllib3 from 1.26.17 to 1.26.18 in /docs by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5982">pypa/pipenv#5982</a></li> <li>Sort packages alphabetically inside each category by <a href="https://github.com/daveschaefer"><code>@daveschaefer</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5965">pypa/pipenv#5965</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/engineerakki"><code>@engineerakki</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5984">pypa/pipenv#5984</a></li> <li><a href="https://github.com/iamed2"><code>@iamed2</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5985">pypa/pipenv#5985</a></li> <li><a href="https://github.com/notEvil"><code>@notEvil</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5971">pypa/pipenv#5971</a></li> <li><a href="https://github.com/daveschaefer"><code>@daveschaefer</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5965">pypa/pipenv#5965</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pypa/pipenv/compare/v2023.10.3...v2023.10.20">https://github.com/pypa/pipenv/compare/v2023.10.3...v2023.10.20</a></p> <h2>Release v2023.10.3</h2> <h2>What's Changed</h2> <ul> <li>Include the package name in the information to the resolver by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5930">pypa/pipenv#5930</a></li> <li>Solving slashes or other less usual symbols in vcs refs were not being interpreted correctly. by <a href="https://github.com/matteius"><code>@matteius</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5935">pypa/pipenv#5935</a></li> <li>Update some external links on the docs by <a href="https://github.com/pmhaddad"><code>@pmhaddad</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5943">pypa/pipenv#5943</a></li> <li>Bump certifi from 2023.5.7 to 2023.7.22 in /examples by <a href="https://github.com/yurishevtsov"><code>@yurishevtsov</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5941">pypa/pipenv#5941</a></li> <li>Update README.md by <a href="https://github.com/umarmnaq"><code>@umarmnaq</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5946">pypa/pipenv#5946</a></li> <li>Catch req.link = None by <a href="https://github.com/fmssn"><code>@fmssn</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5951">pypa/pipenv#5951</a></li> <li>Bump urllib3 from 2.0.2 to 2.0.6 in /examples by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5958">pypa/pipenv#5958</a></li> <li>Bump urllib3 from 1.26.14 to 1.26.17 in /docs by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5960">pypa/pipenv#5960</a></li> <li>Bump urllib3 from 1.26.14 to 1.26.17 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5959">pypa/pipenv#5959</a></li> <li>set regular logging level to ERROR by <a href="https://github.com/fmssn"><code>@fmssn</code></a> in <a href="https://redirect.github.com/pypa/pipenv/pull/5957">pypa/pipenv#5957</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/pmhaddad"><code>@pmhaddad</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5943">pypa/pipenv#5943</a></li> <li><a href="https://github.com/yurishevtsov"><code>@yurishevtsov</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5941">pypa/pipenv#5941</a></li> <li><a href="https://github.com/umarmnaq"><code>@umarmnaq</code></a> made their first contribution in <a href="https://redirect.github.com/pypa/pipenv/pull/5946">pypa/pipenv#5946</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pypa/pipenv/blob/main/CHANGELOG.md">pipenv's changelog</a>.</em></p> <blockquote> <h1>2023.10.24 (2023-10-24)</h1> <h1>Pipenv 2023.10.24 (2023-10-24)</h1> <h2>Features & Improvements</h2> <ul> <li>Officially support python 3.12 <code>[#5987](pypa/pipenv#5987) <https://github.com/pypa/pipenv/issues/5987></code>_</li> </ul> <h2>Bug Fixes</h2> <ul> <li>Additional safety check in <em>fold_markers logic that affected some lock resolutions in prior release. <code>[#5988](pypa/pipenv#5988) <https://github.com/pypa/pipenv/issues/5988></code></em></li> </ul> <h2>Vendored Libraries</h2> <ul> <li>Update vendored versions of: <ul> <li>click==8.1.7</li> <li>markupsafe==2.1.3</li> <li>pydantic==1.10.13</li> <li>pythonfinder==2.0.6</li> <li>ruamel.yaml==0.17.39</li> <li>shellingham==1.5.3</li> <li>tomlkit==0.12.1 <code>[#5986](pypa/pipenv#5986) <https://github.com/pypa/pipenv/issues/5986></code>_</li> </ul> </li> <li>Update vendored pip to <code>23.3.1</code> <code>[#5991](pypa/pipenv#5991) <https://github.com/pypa/pipenv/issues/5991></code>_</li> </ul> <h1>2023.10.20 (2023-10-20)</h1> <h2>Features & Improvements</h2> <ul> <li>Add quiet option to pipenv shell, hiding "Launching subshell in virtual environment..." <code>[#5966](pypa/pipenv#5966) <https://github.com/pypa/pipenv/issues/5966></code>_</li> <li>Vendor in pip==23.3 which includes updates to certifi, urllib3, and adds truststore among other improvements. <code>[#5979](pypa/pipenv#5979) <https://github.com/pypa/pipenv/issues/5979></code>_</li> </ul> <h2>Behavior Changes</h2> <ul> <li>Change <code>--py</code> to use <code>print</code> preventing insertion of newline characters <code>[#5969](pypa/pipenv#5969) <https://github.com/pypa/pipenv/issues/5969></code>_</li> </ul> <h2>Vendored Libraries</h2> <ul> <li>Drop pep517 - as it is no longer used. <code>[#5970](pypa/pipenv#5970) <https://github.com/pypa/pipenv/issues/5970></code>_</li> </ul> <p>Removals and Deprecations</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pypa/pipenv/commit/07787da9aa87162955bb2d6890ba951ddc26199a"><code>07787da</code></a> Release v2023.10.24</li> <li><a href="https://github.com/pypa/pipenv/commit/49a86af6327b430311d78688755a181776c069a2"><code>49a86af</code></a> fix ruff lint</li> <li><a href="https://github.com/pypa/pipenv/commit/1b3b61eb218c3eb74836e9862a1db612a6bb1a0f"><code>1b3b61e</code></a> Python 3.12 support (passing) (<a href="https://redirect.github.com/pypa/pipenv/issues/5987">#5987</a>)</li> <li><a href="https://github.com/pypa/pipenv/commit/548fe82597c30d4d8b70e53b07a356c2f63b1686"><code>548fe82</code></a> add news fragment</li> <li><a href="https://github.com/pypa/pipenv/commit/5793e62407ba7e4a4e9b37ff912f6e3d9680c2cc"><code>5793e62</code></a> Ran across this edge case of the new release with PyJWT</li> <li><a href="https://github.com/pypa/pipenv/commit/c70337f1461474947ea8519df3ae940440748d9d"><code>c70337f</code></a> add news fragment</li> <li><a href="https://github.com/pypa/pipenv/commit/ebc3883daccc6ee041928accd7d176c13a260c06"><code>ebc3883</code></a> Vendor pip 23.3.1</li> <li><a href="https://github.com/pypa/pipenv/commit/565bc44ed0d38609cc6c9b77c144dc2c90a32f76"><code>565bc44</code></a> Add news fragment</li> <li><a href="https://github.com/pypa/pipenv/commit/ab392a64043401a208fec7472cee361026f98705"><code>ab392a6</code></a> Add missing files</li> <li><a href="https://github.com/pypa/pipenv/commit/649a05842d28249ac3738c64275dafbf044bb2dc"><code>649a058</code></a> Update all vendoring to latest (except pipdeptree).</li> <li>Additional commits viewable in <a href="https://github.com/pypa/pipenv/compare/v2023.3.20...v2023.10.24">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pipenv&package-manager=pip&previous-version=2023.3.20&new-version=2023.10.24)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
pipenv --py
adds newlines. For instancepython -c "import subprocess; print(subprocess.Popen(['pipenv', '--py'], stdout=subprocess.PIPE).stdout.read())"
Expected result
should print something like
b'/home/user/.local/share/virtualenvs/name-hash/bin/python\n'
Actual result
but actually prints things like
b'/home/user/.local/share/virtualenvs/name-hash/bin/p\nython\n'
. This is due topipenv/pipenv/cli/command.py
Line 771 in e45cc7a
Steps to replicate
python -c "import subprocess; print(subprocess.Popen(['pipenv', '--py'], stdout=subprocess.PIPE).stdout.read())"
This is an issue if run as part of a script or application, for instance here. Maybe add the argument
bare
similar topipenv/pipenv/utils/virtualenv.py
Line 360 in e45cc7a
The text was updated successfully, but these errors were encountered: