]> Git Repo - buildroot-mgba.git/commitdiff
package/python-git: new package
authorThomas Petazzoni <[email protected]>
Sun, 19 Sep 2021 12:45:17 +0000 (14:45 +0200)
committerArnout Vandecappelle (Essensium/Mind) <[email protected]>
Thu, 23 Sep 2021 19:59:26 +0000 (21:59 +0200)
The files added by this commit are associated both to Nicolas Carrier
and myself in the DEVELOPERS, as this commit is based on initial work
from Nicolas.

Signed-off-by: Thomas Petazzoni <[email protected]>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
DEVELOPERS
package/Config.in
package/python-git/Config.in [new file with mode: 0644]
package/python-git/python-git.hash [new file with mode: 0644]
package/python-git/python-git.mk [new file with mode: 0644]
support/testing/tests/package/sample_python_git.py [new file with mode: 0644]
support/testing/tests/package/test_python_git.py [new file with mode: 0644]

index 6ffe20426b7fe224c8f23fc7a90b2bc31f649350..fb211830a83751963338ad0026a80f04fc079e72 100644 (file)
@@ -1983,12 +1983,15 @@ F:      package/bmap-tools/
 F:     package/php-xdebug/
 F:     package/python-augeas/
 F:     package/python-flask-expects-json/
+F:     package/python-git/
 F:     support/testing/tests/package/sample_bmap_tools.sh
 F:     support/testing/tests/package/sample_python_augeas.py
 F:     support/testing/tests/package/sample_python_flask_expects_json.py
+F:     support/testing/tests/package/sample_python_git.py
 F:     support/testing/tests/package/test_bmap_tools.py
 F:     support/testing/tests/package/test_python_augeas.py
 F:     support/testing/tests/package/test_python_flask_expects_json.py
+F:     support/testing/tests/package/test_python_git.py
 
 N:     Nicolas Cavallari <[email protected]>
 F:     package/libgit2/
@@ -2686,6 +2689,7 @@ F:        package/python/
 F:     package/python3/
 F:     package/python-augeas/
 F:     package/python-flask-expects-json/
+F:     package/python-git/
 F:     package/python-mad/
 F:     package/python-serial/
 F:     package/qextserialport/
@@ -2702,9 +2706,11 @@ F:       support/testing/tests/boot/test_syslinux.py
 F:     support/testing/tests/package/sample_python_augeas.py
 F:     support/testing/tests/package/sample_python_flask.py
 F:     support/testing/tests/package/sample_python_flask_expects_json.py
+F:     support/testing/tests/package/sample_python_git.py
 F:     support/testing/tests/package/test_python_augeas.py
 F:     support/testing/tests/package/test_python_flask.py
 F:     support/testing/tests/package/test_python_flask_expects_json.py
+F:     support/testing/tests/package/test_python_git.py
 F:     toolchain/
 
 N:     Timo Ketola <[email protected]>
index c334fa5b676bd83010df51084f6034a1f90b6c6d..3136fcc65f0c5dafa958b054504509644bc2f5f3 100644 (file)
@@ -1010,6 +1010,7 @@ menu "External python modules"
        source "package/python-functools32/Config.in"
        source "package/python-future/Config.in"
        source "package/python-futures/Config.in"
+       source "package/python-git/Config.in"
        source "package/python-gitdb2/Config.in"
        source "package/python-gobject/Config.in"
        source "package/python-gpiozero/Config.in"
diff --git a/package/python-git/Config.in b/package/python-git/Config.in
new file mode 100644 (file)
index 0000000..b8dbc3a
--- /dev/null
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_PYTHON_GIT
+       bool "python-git"
+       depends on BR2_PACKAGE_PYTHON3
+       depends on BR2_USE_MMU # git
+       select BR2_PACKAGE_GIT # runtime
+       select BR2_PACKAGE_PYTHON_GITDB2 # runtime
+       select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
+       help
+         GitPython is a python library used to interact with git
+         repositories, high-level like git-porcelain, or low-level
+         like git-plumbing.
+
+         https://github.com/gitpython-developers/GitPython
diff --git a/package/python-git/python-git.hash b/package/python-git/python-git.hash
new file mode 100644 (file)
index 0000000..db3d743
--- /dev/null
@@ -0,0 +1,3 @@
+# locally computed hashes
+sha256  78baf9fc223536e38a6e0d9241536fedaecf79bc000b3a05962257d83571fc5d  python-git-3.1.20.tar.gz
+sha256  fd657ffc2cef63d25c78cab7808d414dd03a282e63893491fd11c32f98be67fb  LICENSE
diff --git a/package/python-git/python-git.mk b/package/python-git/python-git.mk
new file mode 100644 (file)
index 0000000..0e15843
--- /dev/null
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-git
+#
+################################################################################
+
+PYTHON_GIT_VERSION = 3.1.20
+PYTHON_GIT_SITE = $(call github,gitpython-developers,GitPython,$(PYTHON_GIT_VERSION))
+PYTHON_GIT_LICENSE = BSD-3-Clause
+PYTHON_GIT_LICENSE_FILES = LICENSE
+PYTHON_GIT_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
diff --git a/support/testing/tests/package/sample_python_git.py b/support/testing/tests/package/sample_python_git.py
new file mode 100644 (file)
index 0000000..fa9ff23
--- /dev/null
@@ -0,0 +1 @@
+from git import *  # noqa
diff --git a/support/testing/tests/package/test_python_git.py b/support/testing/tests/package/test_python_git.py
new file mode 100644 (file)
index 0000000..4d5489e
--- /dev/null
@@ -0,0 +1,11 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy3Git(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON3=y
+        BR2_PACKAGE_PYTHON_GIT=y
+        """
+    sample_scripts = ["tests/package/sample_python_git.py"]
This page took 0.046771 seconds and 4 git commands to generate.