Changeset 198187 in webkit


Ignore:
Timestamp:
Mar 14, 2016, 6:52:02 PM (9 years ago)
Author:
Dewei Zhu
Message:

Add twisted-15.5.0 module to webkitpy.thirdparty.autoinstalled.
https://bugs.webkit.org/show_bug.cgi?id=154667

Reviewed by Ryosuke Niwa and Simon Fraser.

Add twisted-15.5.0 to webkitpy.thirdparty.autoinstalled.
Minor fix for twsited_http_server used by run-benchmark that we should only stop http server while recieving 'GET /shutdown'.

  • Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py:

(ServerControl.render_POST): Deleted.

  • Scripts/webkitpy/thirdparty/init.py:

(AutoinstallImportHook.find_module):
(AutoinstallImportHook._install_twisted_15_5_0):

  • Scripts/webkitpy/thirdparty/init_unittest.py:

(ThirdpartyTest.test_imports):

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r198168 r198187  
     12016-03-14  Dewei Zhu  <dewei_zhu@apple.com>
     2
     3        Add twisted-15.5.0 module to webkitpy.thirdparty.autoinstalled.
     4        https://bugs.webkit.org/show_bug.cgi?id=154667
     5
     6        Reviewed by Ryosuke Niwa and Simon Fraser.
     7
     8        Add twisted-15.5.0 to webkitpy.thirdparty.autoinstalled.
     9        Minor fix for twsited_http_server used by run-benchmark that we should only stop http server while recieving 'GET /shutdown'.
     10
     11        * Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py:
     12        (ServerControl.render_POST): Deleted.
     13        * Scripts/webkitpy/thirdparty/__init__.py:
     14        (AutoinstallImportHook.find_module):
     15        (AutoinstallImportHook._install_twisted_15_5_0):
     16        * Scripts/webkitpy/thirdparty/__init___unittest.py:
     17        (ThirdpartyTest.test_imports):
     18
    1192016-03-14  Mark Lam  <mark.lam@apple.com>
    220
  • trunk/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py

    r188128 r198187  
    1010except ImportError:
    1111    sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../..')))
    12     from webkitpy.thirdparty.autoinstalled.twisted import twisted
     12    from webkitpy.thirdparty.autoinstalled.twisted_15_5_0 import twisted
    1313
    1414from twisted.web import static, server
     
    3030        sys.stdout.write(request.content.getvalue())
    3131        sys.stdout.flush()
    32         reactor.stop()
    3332        return 'OK'
    3433
  • trunk/Tools/Scripts/webkitpy/thirdparty/__init__.py

    r187925 r198187  
    9292        elif '.keyring' in fullname:
    9393            self._install_keyring()
     94        elif '.twisted_15_5_0' in fullname:
     95            self._install_twisted_15_5_0()
    9496        elif '.twisted' in fullname:
    9597            self._install_twisted()
     
    156158        installer.install(url="https://pypi.python.org/packages/source/T/Twisted/Twisted-12.1.0.tar.bz2#md5=f396f1d6f5321e869c2f89b2196a9eb5", url_subpath="Twisted-12.1.0/twisted")
    157159
     160    def _install_twisted_15_5_0(self):
     161        twisted_dir = self._fs.join(_AUTOINSTALLED_DIR, "twisted_15_5_0")
     162        installer = AutoInstaller(prepend_to_search_path=True, target_dir=twisted_dir)
     163        installer.install(url="https://pypi.python.org/packages/source/T/Twisted/Twisted-15.5.0.tar.bz2#md5=0831d7c90d0020062de0f7287530a285", url_subpath="Twisted-15.5.0/twisted")
     164
    158165    def _install(self, url, url_subpath=None, target_name=None):
    159166        installer = AutoInstaller(target_dir=_AUTOINSTALLED_DIR)
  • trunk/Tools/Scripts/webkitpy/thirdparty/__init___unittest.py

    r181145 r198187  
    6565        import webkitpy.thirdparty.autoinstalled.pylint
    6666        import webkitpy.thirdparty.autoinstalled.pep8
     67        import webkitpy.thirdparty.autoinstalled.twisted
     68        import webkitpy.thirdparty.autoinstalled.twisted_15_5_0
Note: See TracChangeset for help on using the changeset viewer.