Maintaining libs in playdoh-lib
To add a library via git submodules, you must first know the git url to clone. Once you know that, then you do:
git submodule add <GIT-URL> src/<REPO>
- Add a line to
vendor.pth. Note that this file is sorted alphabetically.
git commit vendor.pth .gitmodules src/<REPO>
To update a library via git submodules:
git fetch --all -p
git checkout <REVISH>
- Do a
git log --oneline <FROM>..<TO>for the library and copy/paste that output into the commit message so that playdoh-lib users can see from the playdoh-lib log what's changed.
git commit -a
From the playdoh-lib root:
pip install -I --install-option="--home=`pwd`" <LIB>
LIB is any pip-happy library spec.
After you do this, make sure that any scripts that get added to
bin/ have a header like this:
git add all the new files and commit.
First, delete the library files:
cd lib/python/ git rm -rf <LIB>
git part. This removes all the files from the git
After you do that, follow the instructions in Adding a library via pip to add the update.
Binary dependencies can't be checked into playdoh-lib repository. Instead, they require a change in the funfactory repository.
Add a line to
When you install/upgrade a library via git submodules, you have to
make sure the minimum required versions of dependencies are all
accounted for in either git submodules or
When you install/upgrade a library via pip, it'll install the
dependencies for you into