-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fix pip install in git checkout #319
Conversation
blink1073
commented
May 18, 2022
- Check for pyproject.toml
- Install both dev and test extras (will warn if either do not exist).
Codecov Report
@@ Coverage Diff @@
## main #319 +/- ##
=======================================
Coverage 83.87% 83.87%
=======================================
Files 19 19
Lines 2555 2555
Branches 336 336
=======================================
Hits 2143 2143
Misses 296 296
Partials 116 116
Continue to review full report at Codecov.
|
if util.SETUP_PY.exists(): | ||
util.run('pip install -q -e ".[test]"') | ||
# install python package in editable mode with dev and test deps | ||
if util.PYPROJECT.exists(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah this seems to be causing issues with projects using a top-level pyproject.toml
to manage configuration for Python monorepos (isort, tbump), without the top-level being installable.
Noticed in jupyterlite/jupyterlite#644 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe there could be a new releaser configurable option to skip this installation step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or the installation step moved to another step, so it can be skip-
ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hoisted to #321