HUE-8737 [core] Futurize desktop/libs/notebook for Python 3.5

Review Request #14206 — Created Aug. 9, 2019 and updated

yingc
hue
master
HUE-8737
hue
jgauthier, johan, romain, weixia
commit f23674672447e6a6270311abcedf03034baa960a (HEAD -> master)
Author: Ying Chen <yingchen@cloudera.com>
Date:   Tue Aug 6 14:51:33 2019 -0700

    HUE-8737 [core] Futurize desktop/libs/notebook for Python 3.5

:100644 100644 5199635ca6... ca39dc8b34... M    desktop/libs/notebook/src/notebook/api.py
:100644 100644 275187a3e4... 95249300d7... M    desktop/libs/notebook/src/notebook/connectors/altus.py
:100644 100644 83625783ea... bb80cb7084... M    desktop/libs/notebook/src/notebook/connectors/altus_adb.py
:100644 100644 79711135ff... e550b4a2d5... M    desktop/libs/notebook/src/notebook/connectors/base.py
:100644 100644 a97c5a9354... b2d8519210... M    desktop/libs/notebook/src/notebook/connectors/hbase.py
:100644 100644 b5cb125bed... 28f1717aee... M    desktop/libs/notebook/src/notebook/connectors/hive_metastore.py
:100644 100644 5423b1e14a... 0b144cfc33... M    desktop/libs/notebook/src/notebook/connectors/hiveserver2.py
:100644 100644 9b9c777772... 6f3c449e91... M    desktop/libs/notebook/src/notebook/connectors/hiveserver2_tests.py
:100644 100644 cfe3698273... e4b68a1d27... M    desktop/libs/notebook/src/notebook/connectors/jdbc.py
:100644 100644 4b0ea87ff4... ad0fac6a86... M    desktop/libs/notebook/src/notebook/connectors/jdbc_vertica.py
:100644 100644 fc553ee454... a04159636f... M    desktop/libs/notebook/src/notebook/connectors/kafka.py
:100644 100644 d2b247d14f... bd5760ec2a... M    desktop/libs/notebook/src/notebook/connectors/oozie_batch.py
:100644 100644 0cb8510e71... 4e8fa707f7... M    desktop/libs/notebook/src/notebook/connectors/rdbms.py
:100644 100644 6d95f5a582... a79783e719... M    desktop/libs/notebook/src/notebook/connectors/solr.py
:100644 100644 180215a5bf... 84c1e8f1aa... M    desktop/libs/notebook/src/notebook/connectors/spark_batch.py
:100644 100644 b30bf4b859... a98e098c66... M    desktop/libs/notebook/src/notebook/connectors/spark_shell.py
:100644 100644 8f5a83272b... b368f7508d... M    desktop/libs/notebook/src/notebook/connectors/spark_tests.py
:100644 100644 0f037f9a2d... f121cee940... M    desktop/libs/notebook/src/notebook/connectors/sql_alchemy.py
:100644 100644 6b75feaac8... 9293b78052... M    desktop/libs/notebook/src/notebook/connectors/sql_alchemy_tests.py
:100644 100644 cad0fd66bd... d69669d481... M    desktop/libs/notebook/src/notebook/dashboard_api.py
:100644 100644 8035d11b7b... 554eefb35a... M    desktop/libs/notebook/src/notebook/decorators.py
:100644 100644 9060bc29b6... ed1e604abb... M    desktop/libs/notebook/src/notebook/management/commands/send_query_stats.py
:100644 100644 7447bc85df... 57dccd1430... M    desktop/libs/notebook/src/notebook/models.py
:100644 100644 2641b41d31... 72b4653ce8... M    desktop/libs/notebook/src/notebook/monkey_patches.py
:100644 100644 fe6e9e3a49... 97e47b1b4a... M    desktop/libs/notebook/src/notebook/sql_utils.py
:100644 100644 f8b6272dfc... 74b66c7164... M    desktop/libs/notebook/src/notebook/tasks.py
:100644 100644 9634d259fe... f2bb6af671... M    desktop/libs/notebook/src/notebook/tests.py
:100644 100644 7bfc0a9f7e... 17050f9baa... M    desktop/libs/notebook/src/notebook/views.py

https://circleci.com/gh/cloudera/hue/762?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link passed

romain
  1. Ship It!
  2. 
      
yingc
Review request changed

Change Summary:

Rebased from master and fix one unit test

======================================================================
ERROR: notebook.tests.TestNotebookApiMocked.test_download_result
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/case.py", line 381, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/util.py", line 471, in try_run
    return func()
  File "/usr/share/hue/desktop/libs/notebook/src/notebook/tests.py", line 371, in setUp
    originalCluster.FS_CACHE["default"] = MockFs()
  File "/usr/share/hue/desktop/libs/notebook/src/notebook/tests.py", line 332, in __init__
    self.user = 'test'
AttributeError: can't set attribute

Testing Done:

  +

https://circleci.com/gh/cloudera/hue/762?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link passed

Diff:

Revision 2 (+215 -130)

Show changes

Loading...