Thanks for the update Hannah! It's great to know- and the error message seems pretty useful. Best -P.
On Thu, Apr 2, 2020 at 9:05 PM Hannah Jiang <[email protected]> wrote: > Hello Dev@ > > A new precommit was added for Python. It is in master now. > *PythonDocker ("Run PythonDocker PreCommit")* is a job to build Python > SDK containers with licenses/notices of third party dependencies. > The trigger rule is the same as Python Precommit and the test runs for > Py2, Py35, Py36 and Py37. > > Licenses/notices of third party dependencies are added during docker build > and the job would fail if any license of dependencies cannot be pulled > *automatically*. > Here are examples when it fails. > 1. a PR added new dependencies and their licenses are not able to be > pulled automatically. > 2. Dependency is upgraded to a new version and sometimes, the license is > no longer able to be pulled automatically from the new version. > > Error message is > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > RuntimeError: Could not retrieve licences for packages [singledispatch] in > Python2.7 environment. > These licenses were not able to be pulled automatically. Please search > code source of the dependencies on the internet and add urls to RAW license > file at > sdks/python/container/license_scripts/dep_urls_py.yaml for each missing > license and rerun the test. If no such urls can be found, you need to > manually add > LICENSE and NOTICE (if available) files at > sdks/python/container/license_scripts/manual_licenses/{dep}/ and add > entries to sdks/python/container/license_scripts/dep_urls_py.yaml. > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Please let me know if the error message doesn't provide enough information > to fix the failures. > Please feel free to create a ticket and assign to @hannahjiang if you > notice unexpected behaviors. > > Thanks, > Hannah > >
