Skip to content

Instantly share code, notes, and snippets.

@jku
Last active October 7, 2020 16:37
Show Gist options
  • Save jku/22d5f08083c8b7b2f3e552f7ca6c301e to your computer and use it in GitHub Desktop.
Save jku/22d5f08083c8b7b2f3e552f7ca6c301e to your computer and use it in GitHub Desktop.
Example of vendoring failure with 'package.module' style imports
# install vendoring
pip install vendoring
# vendor tuf and securesystemslib in to _vendor/
vendoring sync -v
# test: If you do not have tuf installed, this will fail
# (_vendor/tuf/client/updater.py tries to import tuf.download)
python3 -m _vendor.tuf.client.updater
[tool.vendoring]
destination = "_vendor/"
requirements = "vendor.txt"
namespace = "_vendor"
protected-files = ["vendor.txt",]
patches-dir = "patches"
[tool.vendoring.transformations]
substitute = []
drop = ["bin/",]
[tool.vendoring.license.fallback-urls]
tuf = "https://github.com/theupdateframework/tuf/blob/develop/LICENSE"
[tool.vendoring.license.directories]
[tool.vendoring.typing-stubs]
tuf==0.14.0
securesystemslib==0.16.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment