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
installation: added docker script to auto update dependencies for all Py versions #843
Conversation
Signed-off-by: Nischay Mamidi <NischayPro@gmail.com>
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.
Love this! I immediately tested it out on #838 and it works very nicely.
@nhoening this seems to me potentially useful in the context of our release process, too. If you agree, a follow-up ticket could be to amend our release process notes.
@Flix6x I agree and created FlexMeasures/tsc#10 |
Signed-off-by: Nischay Mamidi <NischayPro@gmail.com>
Updated the PR to copy only the required files for updating the package versions. |
@nhoening @Flix6x I was thinking if it was possible to integrate this into the CI. Each time a new package gets added to the requirement base files execute the |
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.
Nice work!
I'm not sure about adding it to the ci. @nhoening is more knowledgeable on the matter.
I decided that we don't need to do that right now. Maybe later. |
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.
I agree, very good and valuable.
With the testing of all versions in the CI, there is now good support for doing these updates.
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Description
This PR adds a new script which automatically builds the docker images for multiple python versions, installs the required dependencies for flexmeasures, and updates the dependency files of the current project folder.
This simplifies the dependency upgrade chore by automating the updates using docker.
To run simply follow the following steps
cd ci ./update-packages.sh
The script will check if docker is installed, running, and controllable without root requirement before building the images.
The script will also automatically clean up the containers, images and builder caches once completed.