Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Print correct cmd to activate venv after mlem build venv #597

Merged
merged 2 commits into from
Jan 27, 2023

Conversation

aguschin
Copy link
Contributor

close #547

@aguschin aguschin self-assigned this Jan 27, 2023
@aguschin aguschin requested a review from a team January 27, 2023 07:04
@aguschin aguschin temporarily deployed to internal January 27, 2023 07:04 — with GitHub Actions Inactive
@aguschin aguschin temporarily deployed to internal January 27, 2023 10:28 — with GitHub Actions Inactive
@@ -14,7 +14,7 @@
"aiohttp<4",
"aiohttp_swagger<2",
"Jinja2>=3",
"fsspec>=2021.7.0",
"fsspec>=2021.7.0,<2023.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Create an issue?

@codecov
Copy link

codecov bot commented Jan 27, 2023

Codecov Report

Base: 86.42% // Head: 86.43% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (0585c0c) compared to base (b547033).
Patch coverage: 90.69% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #597      +/-   ##
==========================================
+ Coverage   86.42%   86.43%   +0.01%     
==========================================
  Files         106      106              
  Lines        9567     9589      +22     
==========================================
+ Hits         8268     8288      +20     
- Misses       1299     1301       +2     
Impacted Files Coverage Δ
mlem/polydantic/core.py 94.64% <77.77%> (-1.62%) ⬇️
mlem/contrib/venv.py 89.38% <80.00%> (-0.62%) ⬇️
mlem/cli/main.py 85.11% <100.00%> (+0.17%) ⬆️
mlem/cli/utils.py 87.33% <100.00%> (+0.30%) ⬆️
mlem/core/base.py 85.31% <100.00%> (+0.51%) ⬆️
mlem/core/objects.py 87.21% <100.00%> (+0.03%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

install_cmd.append("--no-cache-dir")
install_cmd.extend(obj.requirements.to_pip())
run_in_subprocess(install_cmd, error_msg="Error running pip")
if obj.requirements.to_pip():
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe create a variable since it's used twice

@aguschin aguschin merged commit 95b682b into main Jan 27, 2023
@aguschin aguschin deleted the fix/venv-wrong-printed branch January 27, 2023 11:47
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Wrap pip error with MLEM error
2 participants