package/python-git: new package

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 <thomas.petazzoni@bootlin.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Thomas Petazzoni 2021-09-19 14:45:17 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent e6ee07f41a
commit 0132f4748c
7 changed files with 48 additions and 0 deletions

View 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 <nicolas.cavallari@green-communications.fr>
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 <timo.ketola@exertus.fi>

View 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"

View File

@ -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

View File

@ -0,0 +1,3 @@
# locally computed hashes
sha256 78baf9fc223536e38a6e0d9241536fedaecf79bc000b3a05962257d83571fc5d python-git-3.1.20.tar.gz
sha256 fd657ffc2cef63d25c78cab7808d414dd03a282e63893491fd11c32f98be67fb LICENSE

View File

@ -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))

View File

@ -0,0 +1 @@
from git import * # noqa

View File

@ -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"]