⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267380 in webkit


Ignore:
Timestamp:
Sep 21, 2020, 4:10:08 PM (6 years ago)
Author:
Jonathan Bedard
Message:

[webkitpy] Use webkitcorepy's auto installer for pytest packages
https://bugs.webkit.org/show_bug.cgi?id=215895
<rdar://problem/67885471>

Rubber-stamped by Aakash Jain.

  • Scripts/webkitpy/init.py: Add pytest and it's dependencies.
  • Scripts/webkitpy/thirdparty/init.py:

(AutoinstallImportHook.find_module): Remove pytest and pytest_timeout.
(AutoinstallImportHook._install_pytest_timeout): Deleted.
(AutoinstallImportHook._install_pytest): Deleted.

  • Scripts/webkitpy/webdriver_tests/pytest_runner.py: Implicitly use webkitcorepy's autoinstaller.
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r267369 r267380  
     12020-09-21  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [webkitpy] Use webkitcorepy's auto installer for pytest packages
     4        https://bugs.webkit.org/show_bug.cgi?id=215895
     5        <rdar://problem/67885471>
     6
     7        Rubber-stamped by Aakash Jain.
     8
     9        * Scripts/webkitpy/__init__.py: Add pytest and it's dependencies.
     10        * Scripts/webkitpy/thirdparty/__init__.py:
     11        (AutoinstallImportHook.find_module): Remove pytest and pytest_timeout.
     12        (AutoinstallImportHook._install_pytest_timeout): Deleted.
     13        (AutoinstallImportHook._install_pytest): Deleted.
     14        * Scripts/webkitpy/webdriver_tests/pytest_runner.py: Implicitly use webkitcorepy's autoinstaller.
     15
    1162020-09-21  Jiewen Tan  <jiewen_tan@apple.com>
    217
  • trunk/Tools/Scripts/webkitpy/__init__.py

    r267368 r267380  
    2828AutoInstall.set_directory(os.path.join(libraries, 'autoinstalled', 'python-{}'.format(sys.version_info[0])))
    2929
     30AutoInstall.register(Package('atomicwrites', Version(1, 4, 0)))
     31AutoInstall.register(Package('attr', Version(20, 1, 0), pypi_name='attrs'))
     32AutoInstall.register(Package('configparser', Version(4, 0, 2)))
     33AutoInstall.register(Package('contextlib2', Version(0, 6, 0)))
    3034AutoInstall.register(Package('coverage', Version(5, 2, 1)))
     35AutoInstall.register(Package('funcsigs', Version(1, 0, 2)))
     36AutoInstall.register(Package('importlib_metadata', Version(1, 7, 0)))
     37AutoInstall.register(Package('more-itertools', Version(5, 0, 0)))
    3138AutoInstall.register(Package('mozprocess', Version(1, 2, 0)))
    3239AutoInstall.register(Package('mozlog', Version(6, 1)))
    3340AutoInstall.register(Package('mozterm', Version(1, 0, 0)))
     41AutoInstall.register(Package('pathlib2', Version(2, 3, 5)))
     42AutoInstall.register(Package('pluggy', Version(0, 13, 1)))
     43AutoInstall.register(Package('py', Version(1, 9, 0)))
     44AutoInstall.register(Package('pytest-timeout', Version(1, 4, 2)))
     45AutoInstall.register(Package('pytest', Version(4, 6, 11)))
    3446AutoInstall.register(Package('selenium', Version(3, 141, 0)))
    3547AutoInstall.register(Package('toml', Version(0, 10, 1)))
     48AutoInstall.register(Package('wcwidth', Version(0, 2, 5)))
     49AutoInstall.register(Package('zipp', Version(1, 2, 0)))
     50AutoInstall.register(Package('zope.interface', Version(5, 1, 0), pypi_name='zope-interface'))
    3651
    3752AutoInstall.register(Package('webkitscmpy', Version(0, 0, 1)), local=True)
  • trunk/Tools/Scripts/webkitpy/thirdparty/__init__.py

    r267368 r267380  
    110110        elif '.geckodriver' in fullname:
    111111            self.install_geckodriver()
    112         elif '.pytest_timeout' in fullname:
    113             self._install_pytest_timeout()
    114         elif '.pytest' in fullname:
    115             self._install_pytest()
    116112        elif '.bs4' in fullname:
    117113            self._install_beautifulsoup()
  • trunk/Tools/Scripts/webkitpy/webdriver_tests/pytest_runner.py

    r240649 r267380  
    3030from webkitpy.common.system.filesystem import FileSystem
    3131from webkitpy.common.webkit_finder import WebKitFinder
    32 import webkitpy.thirdparty.autoinstalled.pytest
    33 import webkitpy.thirdparty.autoinstalled.pytest_timeout
    3432import pytest
    3533from _pytest.main import EXIT_INTERNALERROR
Note: See TracChangeset for help on using the changeset viewer.