From 78d2985210052b4388dd1b04f0e6d7059ca44784 Mon Sep 17 00:00:00 2001 From: Jasper Woudenberg Date: Mon, 13 May 2019 16:35:20 +0100 Subject: [PATCH] Document upgrading a Python package It's pretty basic stuff, but I don't otherwise write a lot of Python. --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5839691..4e4d058 100644 --- a/README.md +++ b/README.md @@ -115,17 +115,26 @@ Sometimes, elm-package flakes out due to connection issues. The simplest solutio with_retry.rb elm-package install ``` - ## elm_self_publish Sometimes, we want to "install" our packages locally to test them before publishing them remotely. This is designed only with the use case of testing packaged, not using them in production. It doesn't provide any of the guarantees nor support that elm-package does. If you're doing production stuff, elm-package is what you want. - ``` python elm_self_publish.py ../elm-css ../json-to-elm/ ``` will publish elm-css into json-to-elm +## Upgrading a Python dependency + +If you have Nix, you can load a shell with the necessary dependencies like this: + +``` +nix-shell -p python37Packages.pip-tools +``` +Once in the shell, run: +``` +pip-compile --upgrade-package my-package +```