Skip to content
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

One windows check #607

Merged
merged 3 commits into from
Jan 23, 2021
Merged

One windows check #607

merged 3 commits into from
Jan 23, 2021

Conversation

itsayellow
Copy link
Contributor

  • I have added an entry to docs/changelog.md

Summary of changes

This just centralizes the code to check if we are running on Windows to constants.py.

Previously, there were a couple of different places where the code checked if we were on Windows. A bunch of modules were even importing from utils.py, which in turn was importing from constants.py!!

Test plan

Tested by running

# command(s) to exercise these changes

@itsayellow
Copy link
Contributor Author

@uranusjr looks like you had the same idea in #606 😄

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.

@itsayellow itsayellow merged commit c2feed6 into pypa:master Jan 23, 2021
@itsayellow itsayellow deleted the one-windows-check branch January 23, 2021 00:38
itsayellow added a commit to itsayellow/pipx that referenced this pull request Feb 16, 2021
Add app_name "pipx" to ensurepath comments, don't duplicate bin_paths.

Apply typing.NoReturn to code base (pypa#605)

Fix post-release development versioning (pypa#601)

Make constants.py single source for WINDOWS boolean. (pypa#607)

Add section on where pipx keeps its logs. (pypa#608)

Upgrade all pre-commit plugins except black. (pypa#611)

Fix show/hide cursor for older Windows (pypa#610)

Drop .exe appending on Windows (pypa#606)

This makes Venv.run_app() and code path along it accept an additional
argument, so we can distinguish between the "real" name (filename) of an
app, and the name supplied by the user.

This makes the code simpler, espacially when dealing with the proposed
[pipx.run] entry points.

Add text color capability for Windows (pypa#612)

Better Unicode / emoji capability detection (pypa#614)

Use python 3.9 as default python for CI. (pypa#622)

Don't show / hide cursor if not in tty. (pypa#620)
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