Skip to content

Conversation

@r5d
Copy link
Contributor

@r5d r5d commented May 24, 2025

Use fish's string sub command to get fish's major version from
$FISH_VERSION.

The head program in OpenBSD does not have the -c flag.

Addresses #2892.

gaborbernat
gaborbernat previously approved these changes May 27, 2025
@gaborbernat gaborbernat enabled auto-merge May 27, 2025 14:42
Use fish's [`string sub`][ss] command to get fish's major version from
`$FISH_VERSION`.

The [`head`][head] program in OpenBSD does not have the `-c` flag.

Addresses #2892.

[head]: https://man.openbsd.org/head
[ss]: https://fishshell.com/docs/current/cmds/string.html#sub-subcommand
auto-merge was automatically disabled May 28, 2025 23:07

Head branch was pushed to by a user without write access

@r5d
Copy link
Contributor Author

r5d commented Jun 21, 2025

@gaborbernat some tests are failing and it does not seem to be related to the changes in this PR. Are you able to look into it and possibly get this merged?

Copy link
Contributor

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not worry about other tests until you add a test to validate your change.

Add `test_fish_path` to verify that the PATH is reverted to the
original PATH after virtualenv deactivation. This verification
confirms that the `_OLD_VIRTUAL_PATH` was correctly set in fish during
the activation of the virtualenv.
@r5d
Copy link
Contributor Author

r5d commented Jun 28, 2025

Let's not worry about other tests until you add a test to validate your change.

@gaborbernat

Added a test in test_fish.py to verify that the PATH is reverted to
the original PATH after virtualenv deactivation. This verification
confirms that the _OLD_VIRTUAL_PATH was correctly set in fish during
the activation of the virtualenv.

See if it looks good.

Move test `test_fish_path` into `test_fish`. Rename the class that
verifies the preservation of original `PATH` after virtualenv
deactivation to `FishPath`.
r5d and others added 2 commits June 30, 2025 17:19
@gaborbernat gaborbernat merged commit 29e9698 into pypa:main Jul 21, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants