Skip to content

fix: detect virtualenvs on Windows #472

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

Merged
merged 4 commits into from
Sep 5, 2023
Merged

fix: detect virtualenvs on Windows #472

merged 4 commits into from
Sep 5, 2023

Conversation

mmarchetti
Copy link
Contributor

This is a variant of #470 that is based on a local branch (CI will not pass on fork branches).

@github-actions
Copy link

github-actions bot commented Aug 30, 2023

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
4285 2762 64% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/bundle.py 80% 🟢
rsconnect/main.py 55% 🟢
TOTAL 67% 🟢

updated for commit: f18b6d7 by action🐍

Copy link
Contributor

@kgartland-rstudio kgartland-rstudio left a comment

Choose a reason for hiding this comment

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

Looks good, we now get a message when virtualenv is detected in Windows and we successfully ignore those folders on deployments.

The warning message thrown doesn't really apply to Windows though, I think that's more about unix systems that have venvs:

   Warning: The deployment directory appears to be a python virtual environment.
            Excluding the 'bin' and 'lib' directories.

@kgartland-rstudio
Copy link
Contributor

The PR failure is due to a breaking change by fsspec released last week. We are free to merge and ignore the failure. Isabel will be releasing a new version of pins by the end of the week to pin the fsspec package to a working version.

rstudio/pins-python#212

@mmarchetti mmarchetti merged commit eea813e into master Sep 5, 2023
@mmarchetti mmarchetti deleted the ignore-win-env branch September 5, 2023 20:19
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.

3 participants