Skip to content

Instantly share code, notes, and snippets.

@erikrose
Created October 6, 2015 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikrose/30e129d7368cd24809bc to your computer and use it in GitHub Desktop.
Save erikrose/30e129d7368cd24809bc to your computer and use it in GitHub Desktop.
- [ ] Rising standards of repeatability:
- [ ] pip freeze
- [ ] This gives you the basics, defending you against buggy or
incompatible upstream updates.
- [ ] Be sure to include dependencies! Install with --no-deps
and run your test suite to make sure it works.
- [ ] hashes
- [ ] This defends you against package replacement (which PyPI
doesn't allow anymore but other indexes might), indexes
getting hacked, and MITM attacks. (HTTPS also contributes
to MITM protection but is vulnerable to governments and
other entities issuing fake MITM certs.)
- [ ] wheelballs
- [ ] This lets you install even if the index server is
unreachable.
- [ ] Combine it with hashes to be able to build a new
wheelball with verifiably identical packages (perhaps
minus a few you've decided to update).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment