torch/_vendor/README.md
packagingSource: https://github.com/pypa/packaging/
PyPI: https://pypi.org/project/packaging/
Vendored version: 23.2.0
Instructions to update:
packaging/version.py and all files that it is depending onquackThis is a subset of the full quack library, currently vendoring the following implementation paths:
Note: There are a couple of patchsets applied to make the library vendorable - at a high level:
quack.module to relative .modulequack packageSource: https://github.com/Dao-AILab/quack
The pinned upstream commit is the PINNED_SHA constant in
tools/vendoring/quack/vendor.sh (__version__ in the generated vendored
package records the upstream version). That constant is the single source of
truth; do not duplicate the pin here.
Instructions to update:
Edit PINNED_SHA in tools/vendoring/quack/vendor.sh to the new commit, then
re-render (no SHA is passed):
tools/vendoring/quack/vendor.sh
# Or, to reuse an existing local clone instead of fetching:
tools/vendoring/quack/vendor.sh --src /path/to/local/quack
Instructions to update the subset of quack being vendored:
vendor.sh script:
FILES)rewrite_imports methods is there are more patterns requiredtools/vendoring/quack/patches