-
Notifications
You must be signed in to change notification settings - Fork 290
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
Update install dependencies #1476
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1476 +/- ##
=======================================
Coverage 85.50% 85.50%
=======================================
Files 135 135
Lines 5657 5657
=======================================
Hits 4837 4837
Misses 820 820 ☔ View full report in Codecov by Sentry. |
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.
LGTM!
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.
LGTM! Thanks for the changes!
- name: Install Minimal Dependencies | ||
run: pip install -r requirements/minimal_requirements.txt | ||
- name: Install Package Without Dependencies | ||
run: pip install --no-deps . | ||
- name: Run Tests | ||
run: python -m pytest -s -v --runslow | ||
run: | | ||
export LIGHTLY_SERVER_LOCATION="localhost:-1" |
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.
Why is this necessary?
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.
We use it in the other test as well. To make sure we can run all tests offline and don't require the lightly api online.
* remove openapi.txt requirements file * Add pydantic and aenum to base.txt dependencies * Add minimal dependencies requirements file * Add test for minimal dependency * Update readme and other docs to make it clear users need Python 3.7 to use lightly
Changes
This allows to install the lightly package with minimal dependencies (no PyTorch and torchvision)
New minimal dependencies (to run all the unittests) are the following: