-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
Including Poetry files for Dependency Management #264
Conversation
Hey @vedosis, thanks for your contribution. This does sound like a better solution than just using a regular requirements file. At the moment we install pytorch and pyvision in the dockerfile and install script. Would it be possible to add this dependency to poetry? We also build dlib from source, and I am not sure how to exclude them when building the requirement file. Or do we then have to spin up a private repository to add it to the poetry file via the url tag? |
What a dizzying little rabbit hole you found for me. Like seriously. People seem to have strong opinions in this area.. Long story short, "let me see if I can." I can use the Let me play with this a little while and get back to you. |
Just bringing this back up here. I've filed a pull request upstream to poetry which fixes the most immediate problem. If they approve it, we can move Still thinking about and working on |
Follow up question @derneuere, is there a reason we're building from src on |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Awesome work! Dlib has to be compiled AFAIK. The dlib wheel from pip will also compile it, but it does not have an option to compile it explicitly to CPUs that don't have AVX/SSE. The GitHub action build servers all have new CPUs that have these instruction sets, so the wheel will just compile it for AVX. This leads to an error where, for example, LibrePhotos will just constantly reboot on old xeon processors. Maybe I missed something in the documentation 😅 |
…lugin-react-7.x Update dependency eslint-plugin-react to v7.33.1
Added required files, imported existing
requirements.txt
andrequirements.dev.txt
dependencies.https://python-poetry.org/docs/ is a PEP 582 compatible dependency backend. I chose it because
pipenv
(personal favorite) doesn't seem to be moving forward at the moment,pdm
doesn't play well with some datascience libs (pycocotools
in particular,scipy
in general), and poetry generates pip compatiblerequirements.txt
files for "production."In theory, we shouldn't need anything extra for the docker environment if we used the poetry output to fix the dependency tree in a point in time. Additionally, it'll be easier to upgrade ALL THE THINGS by using a more diverse versioning syntax (https://python-poetry.org/docs/dependency-specification/)
poetry install
to setup a dev environmentpoetry install --no-dev
to setup a prod environmentTo install to root system (Docker)