~roadmr/canonical-identity-provider/fix-deprecation-warnings-1

  • Committer: Daniel Manrique
  • Date: 2018-05-25 17:03:41 UTC
  • Revision ID: roadmr@ubuntu.com-20180525170341-c4rrfl2ajdtv16tu
Ignore annoying import warnings.

Some harmless but annoying import warnings are shown with -Wd, which on the
other hand is needed so Django DeprecationWarnings are shown. Since these
ImportWarnings are for external modules over which we have no control, and they
are just warnings, it should be OK to ignore/suppress them. A real problem like
an ImportError is NOT silenced by this.

Example warnings when doing e.g. make start-db:


/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/paste': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)
/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/lazr': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)
/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/backports': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)
/usr/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/env/lib/python2.7/site-packages/sphinxcontrib': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)

affected modules (seen here, there may be others):
paste
lazr
backports
sphinxcontrib
Filename Latest Rev Last Changed Committer Comment Size
..
identityprovider 1069.2.7 10 years ago Ricardo Kirkner updated locale support Diff
api 1069.2.7 10 years ago Ricardo Kirkner updated locale support Diff
webservices 1473 7 years ago Tarmac [r=michael.nelson] Add new webservices app, refact Diff
ubuntu_sso_saml 1236.2.2 9 years ago Natalia Do not track actual translations inside the source Diff
testing 1385 8 years ago Tarmac [r=matt-goodall] Move the test runner in its own d Diff
webui 1069.2.7 10 years ago Ricardo Kirkner updated locale support Diff
oauth_backend 1321 8 years ago Tarmac [r=james-w] - Moved bits of oauth_backend still us Diff
tests 1386 8 years ago Tarmac [r=matt-goodall] Call make lint as part of the tes Diff