All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH/next 1/4] package/python-gitdb2: new package
@ 2019-11-29 21:29 aduskett at gmail.com
  2019-11-29 21:29 ` [Buildroot] [PATCH/next 2/4] support/testing: add gitdb2 test aduskett at gmail.com
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: aduskett at gmail.com @ 2019-11-29 21:29 UTC (permalink / raw)
  To: buildroot

From: Adam Duskett <Aduskett@gmail.com>

GitDB allows you to access bare git repositories for reading and writing.
It aims at allowing full access to loose objects as well as packs with
performance and scalability in mind. It operates exclusively on streams,
allowing to handle large objects with a small memory footprint.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
 DEVELOPERS                               |  1 +
 package/Config.in                        |  1 +
 package/python-gitdb2/Config.in          | 13 +++++++++++++
 package/python-gitdb2/python-gitdb2.hash |  5 +++++
 package/python-gitdb2/python-gitdb2.mk   | 14 ++++++++++++++
 5 files changed, 34 insertions(+)
 create mode 100644 package/python-gitdb2/Config.in
 create mode 100644 package/python-gitdb2/python-gitdb2.hash
 create mode 100644 package/python-gitdb2/python-gitdb2.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 16e8510b0a..7397c80a83 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -61,6 +61,7 @@ F:	package/python-channels-redis/
 F:	package/python-daphne/
 F:	package/python-django-enumfields/
 F:	package/python-flask-sqlalchemy/
+F:	package/python-gitdb2/
 F:	package/python-mutagen/
 F:	package/python-pip/
 F:	package/python-psycopg2/
diff --git a/package/Config.in b/package/Config.in
index 37861387e8..15abe0871c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -923,6 +923,7 @@ menu "External python modules"
 	source "package/python-future/Config.in"
 	source "package/python-futures/Config.in"
 	source "package/python-gobject/Config.in"
+	source "package/python-gitdb2/Config.in"
 	source "package/python-gunicorn/Config.in"
 	source "package/python-h2/Config.in"
 	source "package/python-hiredis/Config.in"
diff --git a/package/python-gitdb2/Config.in b/package/python-gitdb2/Config.in
new file mode 100644
index 0000000000..a5962e7b77
--- /dev/null
+++ b/package/python-gitdb2/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_PYTHON_GITDB2
+	bool "python-gitdb2"
+	select BR2_PACKAGE_PYTHON_SMMAP2 # runtime
+	select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON  # runtime
+	select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3  # runtime
+	help
+	  GitDB allows you to access bare git repositories for reading
+	  and writing. It aims at allowing full access to loose objects
+	  as well as packs with performance and scalability in mind. It
+	  operates exclusively on streams, allowing to handle large
+	  objects with a small memory footprint.
+
+	  https://github.com/gitpython-developers/gitdb
diff --git a/package/python-gitdb2/python-gitdb2.hash b/package/python-gitdb2/python-gitdb2.hash
new file mode 100644
index 0000000000..e97d25cf4f
--- /dev/null
+++ b/package/python-gitdb2/python-gitdb2.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/gitdb2/json
+md5	1a7ea3362e405f8a5634f7ee53636094  gitdb2-2.0.6.tar.gz
+sha256	1b6df1433567a51a4a9c1a5a0de977aa351a405cc56d7d35f3388bad1f630350  gitdb2-2.0.6.tar.gz
+# Locally computed sha256 checksums
+sha256	efd29f596a08e8857e68e7694a50bcda72839792da7c3f041bcbff5f18009239  LICENSE
diff --git a/package/python-gitdb2/python-gitdb2.mk b/package/python-gitdb2/python-gitdb2.mk
new file mode 100644
index 0000000000..d5293a2bd1
--- /dev/null
+++ b/package/python-gitdb2/python-gitdb2.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-gitdb2
+#
+################################################################################
+
+PYTHON_GITDB2_VERSION = 2.0.6
+PYTHON_GITDB2_SOURCE = gitdb2-$(PYTHON_GITDB2_VERSION).tar.gz
+PYTHON_GITDB2_SITE = https://files.pythonhosted.org/packages/c5/62/ed7205331e8d7cc377e2512cb32f8f8f075c0defce767551d0a76e102ce2
+PYTHON_GITDB2_SETUP_TYPE = setuptools
+PYTHON_GITDB2_LICENSE = Sebastian Thiel and contributors
+PYTHON_GITDB2_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH/next 2/4] support/testing: add gitdb2 test
  2019-11-29 21:29 [Buildroot] [PATCH/next 1/4] package/python-gitdb2: new package aduskett at gmail.com
@ 2019-11-29 21:29 ` aduskett at gmail.com
  2019-12-16 22:37   ` Thomas Petazzoni
  2019-12-28 11:27   ` Thomas Petazzoni
  2019-11-29 21:29 ` [Buildroot] [PATCH/next 3/4] package/python-gitpython: new package aduskett at gmail.com
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 7+ messages in thread
From: aduskett at gmail.com @ 2019-11-29 21:29 UTC (permalink / raw)
  To: buildroot

From: Adam Duskett <Aduskett@gmail.com>

Add a simple test case that imports the module.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
 .gitlab-ci.yml                                |  2 ++
 .../tests/package/sample_python_gitdb2.py     |  4 ++++
 .../tests/package/test_python_gitdb2.py       | 21 +++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 support/testing/tests/package/sample_python_gitdb2.py
 create mode 100644 support/testing/tests/package/test_python_gitdb2.py

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 22befa0427..af41a94427 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -448,6 +448,8 @@ tests.package.test_python_constantly.TestPythonPy3Constantly: { extends: .runtim
 tests.package.test_python_crossbar.TestPythonPy3Crossbar: { extends: .runtime_test }
 tests.package.test_python_cryptography.TestPythonPy2Cryptography: { extends: .runtime_test }
 tests.package.test_python_cryptography.TestPythonPy3Cryptography: { extends: .runtime_test }
+tests.package.test_python_gitdb2.TestPythonPy2Gitdb2: { extends: .runtime_test }
+tests.package.test_python_gitdb2.TestPythonPy3Gitdb2: { extends: .runtime_test }
 tests.package.test_python_incremental.TestPythonPy2Incremental: { extends: .runtime_test }
 tests.package.test_python_incremental.TestPythonPy3Incremental: { extends: .runtime_test }
 tests.package.test_python_passlib.TestPythonPy2Passlib: { extends: .runtime_test }
diff --git a/support/testing/tests/package/sample_python_gitdb2.py b/support/testing/tests/package/sample_python_gitdb2.py
new file mode 100644
index 0000000000..b5c43cd858
--- /dev/null
+++ b/support/testing/tests/package/sample_python_gitdb2.py
@@ -0,0 +1,4 @@
+# Taken from smmap/test/test_tutorial.py
+
+from gitdb import *
+
diff --git a/support/testing/tests/package/test_python_gitdb2.py b/support/testing/tests/package/test_python_gitdb2.py
new file mode 100644
index 0000000000..fc55f20821
--- /dev/null
+++ b/support/testing/tests/package/test_python_gitdb2.py
@@ -0,0 +1,21 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy2Gitdb2(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON=y
+        BR2_PACKAGE_PYTHON_GITDB2=y
+        """
+    sample_scripts = ["tests/package/sample_python_gitdb2.py"]
+
+
+class TestPythonPy3Gitdb2(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON3=y
+        BR2_PACKAGE_PYTHON_GITDB2=y
+        """
+    sample_scripts = ["tests/package/sample_python_gitdb2.py"]
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH/next 3/4] package/python-gitpython: new package
  2019-11-29 21:29 [Buildroot] [PATCH/next 1/4] package/python-gitdb2: new package aduskett at gmail.com
  2019-11-29 21:29 ` [Buildroot] [PATCH/next 2/4] support/testing: add gitdb2 test aduskett at gmail.com
@ 2019-11-29 21:29 ` aduskett at gmail.com
  2019-11-29 21:29 ` [Buildroot] [PATCH/next 4/4] support/testing: add gitpython test aduskett at gmail.com
  2019-12-16 22:35 ` [Buildroot] [PATCH/next 1/4] package/python-gitdb2: new package Thomas Petazzoni
  3 siblings, 0 replies; 7+ messages in thread
From: aduskett at gmail.com @ 2019-11-29 21:29 UTC (permalink / raw)
  To: buildroot

From: Adam Duskett <Aduskett@gmail.com>

GitPython is a python library used to interact with git repositories, high-level
like git-porcelain, or low-level like git-plumbing.

It provides abstractions of git objects for easy access of repository data, and
additionally allows you to access the git repository more directly using either
a pure python implementation, or the faster, but more resource intensive git
command implementation.

The object database implementation is optimized for handling large quantities of
objects and large datasets, which is achieved by using low-level structures and
data streaming.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
 package/Config.in                             |  1 +
 package/python-gitpython/Config.in            | 21 +++++++++++++++++++
 .../python-gitpython/python-gitpython.hash    |  5 +++++
 package/python-gitpython/python-gitpython.mk  | 14 +++++++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 package/python-gitpython/Config.in
 create mode 100644 package/python-gitpython/python-gitpython.hash
 create mode 100644 package/python-gitpython/python-gitpython.mk

diff --git a/package/Config.in b/package/Config.in
index 15abe0871c..f01810b2cd 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -924,6 +924,7 @@ menu "External python modules"
 	source "package/python-futures/Config.in"
 	source "package/python-gobject/Config.in"
 	source "package/python-gitdb2/Config.in"
+	source "package/python-gitpython/Config.in"
 	source "package/python-gunicorn/Config.in"
 	source "package/python-h2/Config.in"
 	source "package/python-hiredis/Config.in"
diff --git a/package/python-gitpython/Config.in b/package/python-gitpython/Config.in
new file mode 100644
index 0000000000..3cd813a142
--- /dev/null
+++ b/package/python-gitpython/Config.in
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_PYTHON_GITPYTHON
+	bool "python-gitpython"
+	depends on BR2_PACKAGE_PYTHON3 # runtime
+	select BR2_PACKAGE_PYTHON_GITDB2 # runtime
+	select BR2_PACKAGE_GIT # runtime
+	help
+	  GitPython is a python library used to interact with git
+	  repositories, high-level like git-porcelain, or low-level like
+	  git-plumbing.
+
+	  It provides abstractions of git objects for easy access of
+	  repository data, and additionally allows you to access the git
+	  repository more directly using either a pure python
+	  implementation, or the faster, but more resource intensive git
+	  command implementation.
+
+	  The object database implementation is optimized for handling
+	  large quantities of objects and large datasets, which is
+	  achieved by using low-level structures and data streaming.
+
+	  https://github.com/gitpython-developers/GitPython
diff --git a/package/python-gitpython/python-gitpython.hash b/package/python-gitpython/python-gitpython.hash
new file mode 100644
index 0000000000..928839d7fe
--- /dev/null
+++ b/package/python-gitpython/python-gitpython.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/gitpython/json
+md5	7555ad89a22f663c25cced5f623bdef0  GitPython-3.0.5.tar.gz
+sha256	9c2398ffc3dcb3c40b27324b316f08a4f93ad646d5a6328cafbb871aa79f5e42  GitPython-3.0.5.tar.gz
+# Locally computed sha256 checksums
+sha256	fd657ffc2cef63d25c78cab7808d414dd03a282e63893491fd11c32f98be67fb  LICENSE
diff --git a/package/python-gitpython/python-gitpython.mk b/package/python-gitpython/python-gitpython.mk
new file mode 100644
index 0000000000..107cc8afa2
--- /dev/null
+++ b/package/python-gitpython/python-gitpython.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-gitpython
+#
+################################################################################
+
+PYTHON_GITPYTHON_VERSION = 3.0.5
+PYTHON_GITPYTHON_SOURCE = GitPython-$(PYTHON_GITPYTHON_VERSION).tar.gz
+PYTHON_GITPYTHON_SITE = https://files.pythonhosted.org/packages/d2/e8/0bd80cc9e1422f5449d663479459c3c032ff7acaf6609a63324d23bde9ac
+PYTHON_GITPYTHON_SETUP_TYPE = setuptools
+PYTHON_GITPYTHON_LICENSE = BSD-3-Clause
+PYTHON_GITPYTHON_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH/next 4/4] support/testing: add gitpython test
  2019-11-29 21:29 [Buildroot] [PATCH/next 1/4] package/python-gitdb2: new package aduskett at gmail.com
  2019-11-29 21:29 ` [Buildroot] [PATCH/next 2/4] support/testing: add gitdb2 test aduskett at gmail.com
  2019-11-29 21:29 ` [Buildroot] [PATCH/next 3/4] package/python-gitpython: new package aduskett at gmail.com
@ 2019-11-29 21:29 ` aduskett at gmail.com
  2019-12-16 22:35 ` [Buildroot] [PATCH/next 1/4] package/python-gitdb2: new package Thomas Petazzoni
  3 siblings, 0 replies; 7+ messages in thread
From: aduskett at gmail.com @ 2019-11-29 21:29 UTC (permalink / raw)
  To: buildroot

From: Adam Duskett <Aduskett@gmail.com>

Add a simple test case that imports the module.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
 .gitlab-ci.yml                                        |  1 +
 .../testing/tests/package/sample_python_gitpython.py  |  2 ++
 .../testing/tests/package/test_python_gitpython.py    | 11 +++++++++++
 3 files changed, 14 insertions(+)
 create mode 100644 support/testing/tests/package/sample_python_gitpython.py
 create mode 100644 support/testing/tests/package/test_python_gitpython.py

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index af41a94427..3b57af0aba 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -450,6 +450,7 @@ tests.package.test_python_cryptography.TestPythonPy2Cryptography: { extends: .ru
 tests.package.test_python_cryptography.TestPythonPy3Cryptography: { extends: .runtime_test }
 tests.package.test_python_gitdb2.TestPythonPy2Gitdb2: { extends: .runtime_test }
 tests.package.test_python_gitdb2.TestPythonPy3Gitdb2: { extends: .runtime_test }
+tests.package.test_python_gitpython.TestPythonPy3GitPython: { extends: .runtime_test }
 tests.package.test_python_incremental.TestPythonPy2Incremental: { extends: .runtime_test }
 tests.package.test_python_incremental.TestPythonPy3Incremental: { extends: .runtime_test }
 tests.package.test_python_passlib.TestPythonPy2Passlib: { extends: .runtime_test }
diff --git a/support/testing/tests/package/sample_python_gitpython.py b/support/testing/tests/package/sample_python_gitpython.py
new file mode 100644
index 0000000000..3ffd6843f3
--- /dev/null
+++ b/support/testing/tests/package/sample_python_gitpython.py
@@ -0,0 +1,2 @@
+from git import *
+
diff --git a/support/testing/tests/package/test_python_gitpython.py b/support/testing/tests/package/test_python_gitpython.py
new file mode 100644
index 0000000000..651453c577
--- /dev/null
+++ b/support/testing/tests/package/test_python_gitpython.py
@@ -0,0 +1,11 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy3GitPython(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON3=y
+        BR2_PACKAGE_PYTHON_GITPYTHON=y
+        """
+    sample_scripts = ["tests/package/sample_python_gitpython.py"]
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH/next 1/4] package/python-gitdb2: new package
  2019-11-29 21:29 [Buildroot] [PATCH/next 1/4] package/python-gitdb2: new package aduskett at gmail.com
                   ` (2 preceding siblings ...)
  2019-11-29 21:29 ` [Buildroot] [PATCH/next 4/4] support/testing: add gitpython test aduskett at gmail.com
@ 2019-12-16 22:35 ` Thomas Petazzoni
  3 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2019-12-16 22:35 UTC (permalink / raw)
  To: buildroot

On Fri, 29 Nov 2019 13:29:07 -0800
aduskett at gmail.com wrote:

> From: Adam Duskett <Aduskett@gmail.com>
> 
> GitDB allows you to access bare git repositories for reading and writing.
> It aims at allowing full access to loose objects as well as packs with
> performance and scalability in mind. It operates exclusively on streams,
> allowing to handle large objects with a small memory footprint.
> 
> Signed-off-by: Adam Duskett <Aduskett@gmail.com>

I've applied, with one change. See below.

> +PYTHON_GITDB2_LICENSE = Sebastian Thiel and contributors

This clearly isn't a license. The license is BSD-3-Clause, as a quick
inspection to the LICENSE file reveals. I fixed that when applying.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH/next 2/4] support/testing: add gitdb2 test
  2019-11-29 21:29 ` [Buildroot] [PATCH/next 2/4] support/testing: add gitdb2 test aduskett at gmail.com
@ 2019-12-16 22:37   ` Thomas Petazzoni
  2019-12-28 11:27   ` Thomas Petazzoni
  1 sibling, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2019-12-16 22:37 UTC (permalink / raw)
  To: buildroot

On Fri, 29 Nov 2019 13:29:08 -0800
aduskett at gmail.com wrote:

> From: Adam Duskett <Aduskett@gmail.com>
> 
> Add a simple test case that imports the module.
> 
> Signed-off-by: Adam Duskett <Aduskett@gmail.com>

I've applied to master, after tweaking one thing.

> diff --git a/support/testing/tests/package/sample_python_gitdb2.py b/support/testing/tests/package/sample_python_gitdb2.py
> new file mode 100644
> index 0000000000..b5c43cd858
> --- /dev/null
> +++ b/support/testing/tests/package/sample_python_gitdb2.py
> @@ -0,0 +1,4 @@
> +# Taken from smmap/test/test_tutorial.py

This really smells like a bad copy/paste from the python-smmap2 test
script, so I dropped this line :-)

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH/next 2/4] support/testing: add gitdb2 test
  2019-11-29 21:29 ` [Buildroot] [PATCH/next 2/4] support/testing: add gitdb2 test aduskett at gmail.com
  2019-12-16 22:37   ` Thomas Petazzoni
@ 2019-12-28 11:27   ` Thomas Petazzoni
  1 sibling, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2019-12-28 11:27 UTC (permalink / raw)
  To: buildroot

Hello Adam,

On Fri, 29 Nov 2019 13:29:08 -0800
aduskett at gmail.com wrote:

> new file mode 100644
> index 0000000000..b5c43cd858
> --- /dev/null
> +++ b/support/testing/tests/package/sample_python_gitdb2.py
> @@ -0,0 +1,4 @@
> +# Taken from smmap/test/test_tutorial.py
> +
> +from gitdb import *

This causes a flake8 warning:

support/testing/tests/package/sample_python_gitdb2.py:1:1: F403 'from gitdb import *' used; unable to detect undefined names

See https://lintlyci.github.io/Flake8Rules/rules/F403.html for more
details about this, and
https://gitlab.com/buildroot.org/buildroot/-/jobs/389451584 for the
GitlabCI job that reported this.

Could you have a look ?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-12-28 11:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-29 21:29 [Buildroot] [PATCH/next 1/4] package/python-gitdb2: new package aduskett at gmail.com
2019-11-29 21:29 ` [Buildroot] [PATCH/next 2/4] support/testing: add gitdb2 test aduskett at gmail.com
2019-12-16 22:37   ` Thomas Petazzoni
2019-12-28 11:27   ` Thomas Petazzoni
2019-11-29 21:29 ` [Buildroot] [PATCH/next 3/4] package/python-gitpython: new package aduskett at gmail.com
2019-11-29 21:29 ` [Buildroot] [PATCH/next 4/4] support/testing: add gitpython test aduskett at gmail.com
2019-12-16 22:35 ` [Buildroot] [PATCH/next 1/4] package/python-gitdb2: new package Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.