[gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyagentx/

2024-04-13 Thread Julien Roy
commit: c8c3735d54424798f03fa4a654fe518e193c935e
Author: Julien Roy  jroy  ca>
AuthorDate: Sun Apr 14 02:13:28 2024 +
Commit: Julien Roy  jroy  ca>
CommitDate: Sun Apr 14 02:13:28 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c8c3735d

dev-python/pyagentx: enable py3.12, use PEP517

Closes: https://bugs.gentoo.org/921856
Closes: https://bugs.gentoo.org/897518
Signed-off-by: Julien Roy  jroy.ca>

 .../pyagentx/{pyagentx-0.4.ebuild => pyagentx-0.4-r1.ebuild} | 9 -
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/dev-python/pyagentx/pyagentx-0.4.ebuild 
b/dev-python/pyagentx/pyagentx-0.4-r1.ebuild
similarity index 60%
rename from dev-python/pyagentx/pyagentx-0.4.ebuild
rename to dev-python/pyagentx/pyagentx-0.4-r1.ebuild
index 73526de94b..571ebd7277 100644
--- a/dev-python/pyagentx/pyagentx-0.4.ebuild
+++ b/dev-python/pyagentx/pyagentx-0.4-r1.ebuild
@@ -1,15 +1,16 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_10 )
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
 
 inherit distutils-r1
 
 DESCRIPTION="Python AgentX Implementation"
 HOMEPAGE="https://github.com/hosthvo/pyagentx;
-SRC_URI="https://github.com/hosthvo/pyagentx/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
+SRC_URI="https://github.com/hosthvo/pyagentx/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 
 LICENSE="BSD-2"
 SLOT="0"
@@ -17,5 +18,3 @@ KEYWORDS="~amd64"
 
 PATCHES="${FILESDIR}/updater.patch
${FILESDIR}/python3.patch"
-
-distutils_enable_tests setup.py



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyagentx/

2022-04-05 Thread Andrea Postiglione
commit: 6585d217711de914ffb34546c9d9f990652b1ea9
Author: Andrea Postiglione  gmail  com>
AuthorDate: Tue Apr  5 14:38:05 2022 +
Commit: Andrea Postiglione  gmail  com>
CommitDate: Tue Apr  5 14:38:05 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6585d217

dev-python/pyagentx fix test

Signed-off-by: Andrea Postiglione  gmail.com>

 dev-python/pyagentx/pyagentx-0.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pyagentx/pyagentx-0.4.ebuild 
b/dev-python/pyagentx/pyagentx-0.4.ebuild
index 197cc7ddc..8b5371f7f 100644
--- a/dev-python/pyagentx/pyagentx-0.4.ebuild
+++ b/dev-python/pyagentx/pyagentx-0.4.ebuild
@@ -18,4 +18,4 @@ KEYWORDS="~amd64"
 PATCHES="${FILESDIR}/updater.patch
${FILESDIR}/python3.patch"
 
-distutils_enable_tests pytest
+distutils_enable_tests setup.py



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyagentx/

2022-04-05 Thread Andrea Postiglione
commit: a7b508062a6ba9af0eff87c8a18e3ce24f041b37
Author: Andrea Postiglione  gmail  com>
AuthorDate: Tue Apr  5 08:49:26 2022 +
Commit: Andrea Postiglione  gmail  com>
CommitDate: Tue Apr  5 08:49:26 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a7b50806

dev-python/pyagentx: remove python 3.7 from python_compat

Signed-off-by: Andrea Postiglione  gmail.com>

 dev-python/pyagentx/pyagentx-0.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pyagentx/pyagentx-0.4.ebuild 
b/dev-python/pyagentx/pyagentx-0.4.ebuild
index 10dfac0e2..197cc7ddc 100644
--- a/dev-python/pyagentx/pyagentx-0.4.ebuild
+++ b/dev-python/pyagentx/pyagentx-0.4.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{7..10} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1
 



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyagentx/

2022-04-05 Thread Andrea Postiglione
commit: 5aa27dbd7bb4c690c2e8546d095a48ebf22b7747
Author: Andrea Postiglione  gmail  com>
AuthorDate: Tue Apr  5 08:50:15 2022 +
Commit: Andrea Postiglione  gmail  com>
CommitDate: Tue Apr  5 08:50:15 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5aa27dbd

dev-python/pyagentx ebuild digest

Signed-off-by: Andrea Postiglione  gmail.com>

 dev-python/pyagentx/Manifest | 4 
 1 file changed, 4 deletions(-)

diff --git a/dev-python/pyagentx/Manifest b/dev-python/pyagentx/Manifest
index 6037dcd45..052a6 100644
--- a/dev-python/pyagentx/Manifest
+++ b/dev-python/pyagentx/Manifest
@@ -1,5 +1 @@
-AUX python3.patch 7481 BLAKE2B 
2142c64935f067f88e7a59daa505a6ae4f44b5999191d43787fd9e2bddc6e79bf1a687c4ee341677958ba473f5f347a19a2ec0c09da3ab6049f2d3423c72ba50
 SHA512 
6b3a57c8bb5436b2a32970051a91d22f3c990aa52130c85ffc44a77413d424926f88f96426d2ce60b0123ee0b9b6a20c33fe485e591e048a7ac2783d97ad1a9b
-AUX updater.patch 798 BLAKE2B 
3e8ada0c8cef641b490cd797f8e610e7b6bc30443c65510d050cc8d0ca417fde58b2046ab2da6947cb8246c3bc36588e2936d5aaa76fd6c79a2a552d36d29a28
 SHA512 
d19e5647c9a0879908f93adf1d295f2ef4e35de48185824db6e0145cf78d85597a9f597fa2408aa1db009b100360fe5337f05a373e7c5b9ae9e8e5166f9d8f0e
 DIST pyagentx-0.4.tar.gz 11353 BLAKE2B 
1ae8197431a60651de61577d384ff3168ee2beb4bf6ce5cb2ccb4fbd9482f808c875301225e2d871e3fde94828e3291604f61e358570074b64af2271005e3f7f
 SHA512 
2c13dc04b926fa0d6d7df24d577fc37d08440145adbc5e9ec45f99157da40d92afd7bd7e875e3d980b83330ee66ccde8649698cd967c150056db19cbbc4f7f6b
-EBUILD pyagentx-0.4.ebuild 493 BLAKE2B 
a12f8e9d5ace3b69ca67edc5766d9e367e3c8761d3e42868c65f249712db57cd37a6408d0c70c48acd922f9c6a6f74226f3606a79aa620ad84ea4739b57ab7a8
 SHA512 
3a12026be830c0bf488d551e1819be58bdc39e69d1df99ab019317d90e1d37eb1d0fc595c8ad0cecc3a263867c98a5edbc24845d0a8e85ff06fd3e747d4369d6
-MISC metadata.xml 626 BLAKE2B 
c3db5c408e852c05ab7b0eee7feef9cd52d2f42b7180b4a1071087f94e5326bb7797d2865bc8cb0612a3537b4ea870a8e1010c5975c52127957bf3ca575b6546
 SHA512 
c3e9f17b07bb9f1ba849901a3697552dd015242f08856a156642532d7eec9180efc02d6af2846c5b211b7f71c1f79cc9c7d6ff40a783b6bc0c8a2d27f51e5f3b



[gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyagentx/files/, dev-python/pyagentx/

2022-04-02 Thread Andrea Postiglione
commit: b74f56d404379fa3d4e1a7256ddd0f14a34ecfc5
Author: Andrea Postiglione  gmail  com>
AuthorDate: Sat Apr  2 13:26:37 2022 +
Commit: Andrea Postiglione  gmail  com>
CommitDate: Sat Apr  2 13:26:37 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b74f56d4

dev-python/pyagentx-0.4 first release

Signed-off-by: Andrea Postiglione  gmail.com>

 dev-python/pyagentx/Manifest|   5 +
 dev-python/pyagentx/files/python3.patch | 255 
 dev-python/pyagentx/files/updater.patch |  27 
 dev-python/pyagentx/metadata.xml|  16 ++
 dev-python/pyagentx/pyagentx-0.4.ebuild |  21 +++
 5 files changed, 324 insertions(+)

diff --git a/dev-python/pyagentx/Manifest b/dev-python/pyagentx/Manifest
new file mode 100644
index 0..6037dcd45
--- /dev/null
+++ b/dev-python/pyagentx/Manifest
@@ -0,0 +1,5 @@
+AUX python3.patch 7481 BLAKE2B 
2142c64935f067f88e7a59daa505a6ae4f44b5999191d43787fd9e2bddc6e79bf1a687c4ee341677958ba473f5f347a19a2ec0c09da3ab6049f2d3423c72ba50
 SHA512 
6b3a57c8bb5436b2a32970051a91d22f3c990aa52130c85ffc44a77413d424926f88f96426d2ce60b0123ee0b9b6a20c33fe485e591e048a7ac2783d97ad1a9b
+AUX updater.patch 798 BLAKE2B 
3e8ada0c8cef641b490cd797f8e610e7b6bc30443c65510d050cc8d0ca417fde58b2046ab2da6947cb8246c3bc36588e2936d5aaa76fd6c79a2a552d36d29a28
 SHA512 
d19e5647c9a0879908f93adf1d295f2ef4e35de48185824db6e0145cf78d85597a9f597fa2408aa1db009b100360fe5337f05a373e7c5b9ae9e8e5166f9d8f0e
+DIST pyagentx-0.4.tar.gz 11353 BLAKE2B 
1ae8197431a60651de61577d384ff3168ee2beb4bf6ce5cb2ccb4fbd9482f808c875301225e2d871e3fde94828e3291604f61e358570074b64af2271005e3f7f
 SHA512 
2c13dc04b926fa0d6d7df24d577fc37d08440145adbc5e9ec45f99157da40d92afd7bd7e875e3d980b83330ee66ccde8649698cd967c150056db19cbbc4f7f6b
+EBUILD pyagentx-0.4.ebuild 493 BLAKE2B 
a12f8e9d5ace3b69ca67edc5766d9e367e3c8761d3e42868c65f249712db57cd37a6408d0c70c48acd922f9c6a6f74226f3606a79aa620ad84ea4739b57ab7a8
 SHA512 
3a12026be830c0bf488d551e1819be58bdc39e69d1df99ab019317d90e1d37eb1d0fc595c8ad0cecc3a263867c98a5edbc24845d0a8e85ff06fd3e747d4369d6
+MISC metadata.xml 626 BLAKE2B 
c3db5c408e852c05ab7b0eee7feef9cd52d2f42b7180b4a1071087f94e5326bb7797d2865bc8cb0612a3537b4ea870a8e1010c5975c52127957bf3ca575b6546
 SHA512 
c3e9f17b07bb9f1ba849901a3697552dd015242f08856a156642532d7eec9180efc02d6af2846c5b211b7f71c1f79cc9c7d6ff40a783b6bc0c8a2d27f51e5f3b

diff --git a/dev-python/pyagentx/files/python3.patch 
b/dev-python/pyagentx/files/python3.patch
new file mode 100644
index 0..63ea7d1a6
--- /dev/null
+++ b/dev-python/pyagentx/files/python3.patch
@@ -0,0 +1,255 @@
+commit dd1f0e84f8e321789264aec5ada0f1cb4d9ac8af
+Author: Ondrej Mular 
+Date:   Tue Nov 21 08:40:55 2017 +0100
+
+Port to python3
+
+diff --git a/pyagentx/__init__.py b/pyagentx/__init__.py
+index efeef10..d4fd627 100644
+--- a/pyagentx/__init__.py
 b/pyagentx/__init__.py
+@@ -1,5 +1,10 @@
+ #!/usr/bin/env python
+ # -*- coding: utf-8 -*-
++from __future__ import (
++absolute_import,
++division,
++print_function,
++)
+ 
+ import logging
+ 
+diff --git a/pyagentx/agent.py b/pyagentx/agent.py
+index b6c0e2a..2db39db 100644
+--- a/pyagentx/agent.py
 b/pyagentx/agent.py
+@@ -1,5 +1,10 @@
+ #!/usr/bin/env python
+ # -*- coding: utf-8 -*-
++from __future__ import (
++absolute_import,
++division,
++print_function,
++)
+ 
+ # 
+ import logging
+@@ -11,8 +16,11 @@ logger.addHandler(NullHandler())
+ # 
+ 
+ import time
+-import Queue
+ import inspect
++try:
++import queue
++except ImportError:
++import Queue as queue
+ 
+ import pyagentx
+ from pyagentx.updater import Updater
+@@ -57,18 +65,18 @@ class Agent(object):
+ pass
+ 
+ def start(self):
+-queue = Queue.Queue(maxsize=20)
++update_queue = queue.Queue(maxsize=20)
+ self.setup()
+ # Start Updaters
+ for u in self._updater_list:
+ logger.debug('Starting updater [%s]' % u['oid'])
+ t = u['class']()
+-t.agent_setup(queue, u['oid'], u['freq'])
++t.agent_setup(update_queue, u['oid'], u['freq'])
+ t.start()
+ self._threads.append(t)
+ # Start Network
+ oid_list = [u['oid'] for u in self._updater_list]
+-t = Network(queue, oid_list, self._sethandlers)
++t = Network(update_queue, oid_list, self._sethandlers)
+ t.start()
+ self._threads.append(t)
+ # Do nothing ... just wait for someone to stop you
+diff --git a/pyagentx/network.py b/pyagentx/network.py
+index 9711398..f30edad 100644
+--- a/pyagentx/network.py
 b/pyagentx/network.py
+@@ -1,5 +1,10 @@
+ #!/usr/bin/env python
+ # -*- coding: utf-8 -*-
++from __future__ import (
++absolute_import,
++division,
++print_function,
++)
+ 
+ # 
+ import logging
+@@ -13,7 +18,10 @@