On the extreme end, Id prefer to see examples like this bundled as an installable package with it's own setup.py and requirements (even if the source resides where it is, not in a separate repo), but documenting the requirements in a separate .txt file is a reasonable start.