Skip to content

Commit

Permalink
Merge pull request #23 from freedomofpress/upgrade_dependency_makefile
Browse files Browse the repository at this point in the history
Adds upgrade-pip makefile target
  • Loading branch information
sssoleileraaa authored Aug 25, 2021
2 parents 84f7e0b + 89f191f commit 501b945
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ safety: ## Runs `safety check` to check python dependencies for vulnerabilities
update-pip-requirements: ## Updates all Python requirements files via pip-compile.
pip-compile --generate-hashes --output-file requirements.txt requirements.in

.PHONY: upgrade-pip
upgrade-pip: ## Upgrade one single package via pip-compile
pip-compile --generate-hashes --upgrade-package $(PACKAGE) --output-file requirements.txt requirements.in

# Explaination of the below shell command should it ever break.
# 1. Set the field separator to ": ##" and any make targets that might appear between : and ##
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

This is a Python module and qrexec service for logging in Qubes for [SecureDrop](https://securedrop.org).

## How to upgrade the dependencies?

To upgrade one single Python dependency, say `redis`, run the following:

```bash
PACKAGE=redis make upgrade-pip
```

## How to use/try this?

In our example, we will use a vm named *logging* for storing logs, and we will use
Expand Down

0 comments on commit 501b945

Please sign in to comment.