-
Notifications
You must be signed in to change notification settings - Fork 44
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
Refactoring to Use Poetry #305
Refactoring to Use Poetry #305
Conversation
665c8b5
to
bc36cb9
Compare
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.
It'd be great to update the SDK e2e test and make sure it passes with Poetry:
Thanks for the review @astefanutti Yes we should definitely do this. Do you think it would be okay if I create a new/follow on ticket for this, or would that need to be completed before merging? |
@Fiona-Waters creating a follow up ticket to have it done along the next SDK dependency upgrade in the CodeFlare operator sounds the best course of action 👍🏼. |
48de283
to
cf43361
Compare
Excellent job on this PR! 👏 To fix the pre-commit checks:
|
pre-commit now passing! Thanks @ChristianZaccaria |
Ticket created - project-codeflare/codeflare-operator#250 |
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 I figured out why the unit tests are failing:
import executing
E ModuleNotFoundError: No module named 'executing'
In the pyproject.toml
, executing
should be a base dependency, not a test dependency. It's a package required in the SDK itself
8d7ae42
to
7306d8b
Compare
@Maxusmusti I was able to get the tests to pass by adding |
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 Tested installation and sdk whl file thats created
0e62b01
to
d96e1e1
Compare
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.
Looks good, just one question about other places where the virtual env may need to be turned off. Also, the poetry.lock file needs to be updated once more to update the codeflare-torchx
dependency version
Signed-off-by: Anish Asthana <[email protected]>
Co-authored-by: Anish Asthana [email protected] Co-authored-by: Fiona Waters [email protected]
64ba22d
to
57d2dac
Compare
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Bobbins228, KPostOffice, Maxusmusti The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
6c24d74
into
project-codeflare:main
Issue link
#274
What changes have been made
The .gitignore has been updated so that the poetry.lock file is committed to the repo - allowing everyone to use the same versions of dependencies.
The main requirements.txt file in the root of the repo has been removed.
The readme has been updated to include
poetry install
rather than using pipThe pre-commit Containerfile has been updated to use poetry, the build command will now be run from the root directory to allow access to the pyproject.toml file and all required dependencies.
Any installation commands and documentation/readmes have been updated to reflect the changes.
We will not remove the requirements.txt files from the demo notebooks. For more info see thread here.
Verification steps
poetry install
poetry build
To verify the building of the precommit image
podman build -f .github/build/Containerfile .
and ensure that the build completes successfully.Ensure that unit tests pass
poetry run pytest -v tests/unit_test.py
Test demo notebooks
make all-in-one
pip uninstall codeflare-sdk -y
pip install codeflare_sdk-0.0.0.dev0-py3-none-any.whl
Checks