Diff
Modified: trunk/Tools/ChangeLog (266254 => 266255)
--- trunk/Tools/ChangeLog 2020-08-27 21:16:01 UTC (rev 266254)
+++ trunk/Tools/ChangeLog 2020-08-27 21:28:18 UTC (rev 266255)
@@ -1,3 +1,22 @@
+2020-08-27 Jonathan Bedard <[email protected]>
+
+ [webkitscmpy] Initial commit
+ https://bugs.webkit.org/show_bug.cgi?id=215864
+ <rdar://problem/67827063>
+
+ Reviewed by Dewei Zhu.
+
+ * Scripts/libraries/webkitscmpy: Added.
+ * Scripts/libraries/webkitscmpy/MANIFEST.in: Added.
+ * Scripts/libraries/webkitscmpy/README.md: Added.
+ * Scripts/libraries/webkitscmpy/setup.py: Added.
+ (readme):
+ * Scripts/libraries/webkitscmpy/webkitscmpy: Added.
+ * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Added.
+ (_maybe_add_webkitcorepy_path):
+ * Scripts/webkitpy/test/main.py:
+ (main): Add webkitscmpy to test-webkitpy.
+
2020-08-27 Sihui Liu <[email protected]>
REGRESSION (r264790): IndexedDB may abort transactions of in-memory databases
Added: trunk/Tools/Scripts/libraries/webkitscmpy/MANIFEST.in (0 => 266255)
--- trunk/Tools/Scripts/libraries/webkitscmpy/MANIFEST.in (rev 0)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/MANIFEST.in 2020-08-27 21:28:18 UTC (rev 266255)
@@ -0,0 +1 @@
+include README.md
Added: trunk/Tools/Scripts/libraries/webkitscmpy/README.md (0 => 266255)
--- trunk/Tools/Scripts/libraries/webkitscmpy/README.md (rev 0)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/README.md 2020-08-27 21:28:18 UTC (rev 266255)
@@ -0,0 +1,3 @@
+# webkitscmpy
+
+Provides a utilities for interacting with a git or svn repository.
Added: trunk/Tools/Scripts/libraries/webkitscmpy/setup.py (0 => 266255)
--- trunk/Tools/Scripts/libraries/webkitscmpy/setup.py (rev 0)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/setup.py 2020-08-27 21:28:18 UTC (rev 266255)
@@ -0,0 +1,55 @@
+# Copyright (C) 2020 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+from webkitscmpy import version
+from setuptools import setup
+
+
+def readme():
+ with open('README.md') as f:
+ return f.read()
+
+
+setup(
+ name='webkitscmpy',
+ version=str(version),
+ description='Library designed to interact with git and svn repositories.',
+ long_description=readme(),
+ classifiers=[
+ 'Development Status :: 1 - Planning',
+ 'Intended Audience :: Developers',
+ 'License :: Other/Proprietary License',
+ 'Operating System :: MacOS',
+ 'Natural Language :: English',
+ 'Programming Language :: Python :: 3',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ ],
+ keywords='git svn',
+ url='',
+ author='Jonathan Bedard',
+ author_email='[email protected]',
+ license='Modified BSD',
+ packages=['webkitscmpy'],
+ install_requires=['webkitcorepy'],
+ include_package_data=True,
+ zip_safe=False,
+)
Added: trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py (0 => 266255)
--- trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py (rev 0)
+++ trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py 2020-08-27 21:28:18 UTC (rev 266255)
@@ -0,0 +1,50 @@
+# Copyright (C) 2019 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS" AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+import logging
+import os
+import sys
+
+log = logging.getLogger('webkitscmpy')
+
+
+def _maybe_add_webkitcorepy_path():
+ # Hopefully we're beside webkitcorepy, otherwise webkitcorepy will need to be installed.
+ libraries_path = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
+ webkitcorepy_path = os.path.join(libraries_path, 'webkitcorepy')
+ if os.path.isdir(webkitcorepy_path) and os.path.isdir(os.path.join(webkitcorepy_path, 'webkitcorepy')) and webkitcorepy_path not in sys.path:
+ sys.path.insert(0, webkitcorepy_path)
+
+
+_maybe_add_webkitcorepy_path()
+
+try:
+ from webkitcorepy.version import Version
+except ImportError:
+ raise ImportError(
+ "'webkitcorepy' could not be found on your Python path.\n" +
+ "You are not running from a WebKit checkout.\n" +
+ "Please install webkitcorepy with `pip install webkitcorepy --extra-index-url <package index URL>`"
+ )
+
+version = Version(0, 0, 1)
+name = 'webkitscmpy'
Modified: trunk/Tools/Scripts/webkitpy/test/main.py (266254 => 266255)
--- trunk/Tools/Scripts/webkitpy/test/main.py 2020-08-27 21:16:01 UTC (rev 266254)
+++ trunk/Tools/Scripts/webkitpy/test/main.py 2020-08-27 21:28:18 UTC (rev 266255)
@@ -63,6 +63,7 @@
tester = Tester()
tester.add_tree(os.path.join(_webkit_root, 'Tools', 'Scripts'), 'webkitpy')
tester.add_tree(os.path.join(_webkit_root, 'Tools', 'Scripts', 'libraries', 'webkitcorepy'), 'webkitcorepy')
+ tester.add_tree(os.path.join(_webkit_root, 'Tools', 'Scripts', 'libraries', 'webkitscmpy'), 'webkitscmpy')
# There is no WebKit2 on Windows, so we don't need to run WebKit2 unittests on it.
if not (sys.platform.startswith('win') or sys.platform == 'cygwin'):