public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pslab-python/, dev-python/pslab-python/files/
@ 2019-06-28 18:40 Marek Szuba
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Szuba @ 2019-06-28 18:40 UTC (permalink / raw
  To: gentoo-commits

commit:     1abca237df4ea8babf6b00af64b5bde541915493
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 28 18:38:52 2019 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Jun 28 18:39:40 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1abca237

dev-python/pslab-python: new package

Official library for communicating with the Pocket Science Lab, a
universal USB-powered board featuring an oscilloscope, multimeter, logic
analyser and many more.

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

 dev-python/pslab-python/Manifest                   |  1 +
 .../pslab-python-1.0.1-no_install_udev_rules.patch |  9 +++++
 .../files/pslab-python-1.0.1-sys_version.patch     | 11 ++++++
 dev-python/pslab-python/metadata.xml               | 11 ++++++
 dev-python/pslab-python/pslab-python-1.0.1.ebuild  | 40 ++++++++++++++++++++++
 5 files changed, 72 insertions(+)

diff --git a/dev-python/pslab-python/Manifest b/dev-python/pslab-python/Manifest
new file mode 100644
index 00000000000..607e84c133d
--- /dev/null
+++ b/dev-python/pslab-python/Manifest
@@ -0,0 +1 @@
+DIST pslab-python-1.0.1.tar.gz 15460183 BLAKE2B 6837c40352eecdf563fa700617ee1712997fc0532483357d889d0fb03645732e0febf5ac83cdc8c766b7ec6d9ac9a436a313d0f44221c2ea69044be6f4c11fa6 SHA512 939f3649a0060a59a39ee97b57134075f8602b966fb3d14250c8ae96c340a4ab33e9fa8d7c5d8cf09ae9297b762c203e4a256bc29b9ff6006ce6ff254c468ad2

diff --git a/dev-python/pslab-python/files/pslab-python-1.0.1-no_install_udev_rules.patch b/dev-python/pslab-python/files/pslab-python-1.0.1-no_install_udev_rules.patch
new file mode 100644
index 00000000000..b721e8a8ab0
--- /dev/null
+++ b/dev-python/pslab-python/files/pslab-python-1.0.1-no_install_udev_rules.patch
@@ -0,0 +1,9 @@
+--- a/setup.py
++++ b/setup.py
+@@ -50,6 +50,5 @@
+     packages=find_packages(),
+     #scripts=["PSL/bin/"+a for a in os.listdir("PSL/bin/")],
+     package_data={'': ['*.css','*.png','*.gif','*.html','*.css','*.js','*.png','*.jpg','*.jpeg','*.htm','99-pslab.rules']},
+-    cmdclass={'install': CustomInstall},
+ )
+ 

diff --git a/dev-python/pslab-python/files/pslab-python-1.0.1-sys_version.patch b/dev-python/pslab-python/files/pslab-python-1.0.1-sys_version.patch
new file mode 100644
index 00000000000..474850a34b0
--- /dev/null
+++ b/dev-python/pslab-python/files/pslab-python-1.0.1-sys_version.patch
@@ -0,0 +1,11 @@
+--- a/PSL/SENSORS/AD9833.py
++++ b/PSL/SENSORS/AD9833.py
+@@ -3,7 +3,7 @@
+ 
+ 
+ class AD9833:
+-    if sys.version.major == 3:
++    if sys.version_info.major == 3:
+         DDS_MAX_FREQ = 0xFFFFFFF - 1  # 24 bit resolution
+     else:
+         DDS_MAX_FREQ = eval("0xFFFFFFFL-1")  # 24 bit resolution

diff --git a/dev-python/pslab-python/metadata.xml b/dev-python/pslab-python/metadata.xml
new file mode 100644
index 00000000000..d93b6e0e274
--- /dev/null
+++ b/dev-python/pslab-python/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>marecki@gentoo.org</email>
+		<name>Marek Szuba</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">fossasia/pslab-python</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/dev-python/pslab-python/pslab-python-1.0.1.ebuild b/dev-python/pslab-python/pslab-python-1.0.1.ebuild
new file mode 100644
index 00000000000..b3feed3e628
--- /dev/null
+++ b/dev-python/pslab-python/pslab-python-1.0.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library for communicating with Pocket Science Lab"
+HOMEPAGE="https://pslab.io"
+SRC_URI="https://github.com/fossasia/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc"
+
+RDEPEND="${PYTHON_DEPS}
+	dev-python/numpy
+	dev-python/pyqtgraph
+	dev-python/pyserial
+	sci-libs/scipy"
+DEPEND="${RDEPEND}
+	doc? ( dev-python/sphinx )"
+BDEPEND="dev-python/setuptools"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.0.1-sys_version.patch
+	"${FILESDIR}"/${PN}-1.0.1-no_install_udev_rules.patch
+)
+
+python_compile_all() {
+	use doc && esetup.py build_sphinx
+}
+
+python_install_all() {
+	use doc && HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. )
+	distutils-r1_python_install_all
+}


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

* [gentoo-commits] repo/gentoo:master commit in: dev-python/pslab-python/, dev-python/pslab-python/files/
@ 2022-02-07 16:17 Marek Szuba
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Szuba @ 2022-02-07 16:17 UTC (permalink / raw
  To: gentoo-commits

commit:     55d57c2b0758ec4de962c345ccfcf9f4e783df5b
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  7 16:16:59 2022 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Mon Feb  7 16:17:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55d57c2b

dev-python/pslab-python: add 2.5.0

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 dev-python/pslab-python/Manifest                   |  1 +
 .../pslab-python-2.5.0-ad9833_sys_version.patch    | 11 +++++++
 dev-python/pslab-python/pslab-python-2.5.0.ebuild  | 37 ++++++++++++++++++++++
 3 files changed, 49 insertions(+)

diff --git a/dev-python/pslab-python/Manifest b/dev-python/pslab-python/Manifest
index 607e84c133d8..4e36b7586ba2 100644
--- a/dev-python/pslab-python/Manifest
+++ b/dev-python/pslab-python/Manifest
@@ -1 +1,2 @@
 DIST pslab-python-1.0.1.tar.gz 15460183 BLAKE2B 6837c40352eecdf563fa700617ee1712997fc0532483357d889d0fb03645732e0febf5ac83cdc8c766b7ec6d9ac9a436a313d0f44221c2ea69044be6f4c11fa6 SHA512 939f3649a0060a59a39ee97b57134075f8602b966fb3d14250c8ae96c340a4ab33e9fa8d7c5d8cf09ae9297b762c203e4a256bc29b9ff6006ce6ff254c468ad2
+DIST pslab-python-2.5.0.tar.gz 353493 BLAKE2B 4eae07fec800dc357041578a75e48812848588e49e14b75425ee4b24c62b1116d0493055564188e33e4d934f4d572708c811ec9bb7fbf5d437befedfcad5da1a SHA512 e8e4f53dc8c1d6aa4385cdbdc8a82bac21d9de15643980fed42a2b16c10ff56e0836371368840c9207d6bd6f8d73900a344507b8bce8b197f0580373137c0f1f

diff --git a/dev-python/pslab-python/files/pslab-python-2.5.0-ad9833_sys_version.patch b/dev-python/pslab-python/files/pslab-python-2.5.0-ad9833_sys_version.patch
new file mode 100644
index 000000000000..b34182266c4a
--- /dev/null
+++ b/dev-python/pslab-python/files/pslab-python-2.5.0-ad9833_sys_version.patch
@@ -0,0 +1,11 @@
+--- a/pslab/external/AD9833.py
++++ b/pslab/external/AD9833.py
+@@ -2,7 +2,7 @@
+ 
+ 
+ class AD9833:
+-    if sys.version.major == 3:
++    if sys.version_info.major == 3:
+         DDS_MAX_FREQ = 0xFFFFFFF - 1  # 24 bit resolution
+     else:
+         DDS_MAX_FREQ = eval("0xFFFFFFFL-1")  # 24 bit resolution

diff --git a/dev-python/pslab-python/pslab-python-2.5.0.ebuild b/dev-python/pslab-python/pslab-python-2.5.0.ebuild
new file mode 100644
index 000000000000..acc28d08330a
--- /dev/null
+++ b/dev-python/pslab-python/pslab-python-2.5.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1
+
+DESCRIPTION="Python library for communicating with Pocket Science Lab"
+HOMEPAGE="https://pslab.io"
+SRC_URI="https://github.com/fossasia/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=">=dev-python/numpy-1.16.3[${PYTHON_USEDEP}]
+	>=dev-python/pyserial-3.4[${PYTHON_USEDEP}]
+	>=dev-python/scipy-1.3.0[${PYTHON_USEDEP}]"
+BDEPEND="test? (
+	dev-python/pytest-mock[${PYTHON_USEDEP}]
+)"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-2.5.0-ad9833_sys_version.patch
+)
+
+# Flaky in 2.5.0
+EPYTEST_DESELECT=(
+	tests/test_logic_analyzer.py::test_stop
+)
+
+distutils_enable_tests pytest
+
+distutils_enable_sphinx docs dev-python/recommonmark


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

* [gentoo-commits] repo/gentoo:master commit in: dev-python/pslab-python/, dev-python/pslab-python/files/
@ 2022-03-15 14:26 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2022-03-15 14:26 UTC (permalink / raw
  To: gentoo-commits

commit:     e20a076b0f847a52021685048c34bd017cd4c74a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 15 14:19:52 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 15 14:19:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e20a076b

dev-python/pslab-python: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pslab-python/Manifest                   |  1 -
 .../pslab-python-1.0.1-no_install_udev_rules.patch |  9 -------
 .../files/pslab-python-1.0.1-sys_version.patch     | 11 ---------
 .../pslab-python/pslab-python-1.0.1-r1.ebuild      | 28 ----------------------
 4 files changed, 49 deletions(-)

diff --git a/dev-python/pslab-python/Manifest b/dev-python/pslab-python/Manifest
index 4e36b7586ba2..f33e127e0135 100644
--- a/dev-python/pslab-python/Manifest
+++ b/dev-python/pslab-python/Manifest
@@ -1,2 +1 @@
-DIST pslab-python-1.0.1.tar.gz 15460183 BLAKE2B 6837c40352eecdf563fa700617ee1712997fc0532483357d889d0fb03645732e0febf5ac83cdc8c766b7ec6d9ac9a436a313d0f44221c2ea69044be6f4c11fa6 SHA512 939f3649a0060a59a39ee97b57134075f8602b966fb3d14250c8ae96c340a4ab33e9fa8d7c5d8cf09ae9297b762c203e4a256bc29b9ff6006ce6ff254c468ad2
 DIST pslab-python-2.5.0.tar.gz 353493 BLAKE2B 4eae07fec800dc357041578a75e48812848588e49e14b75425ee4b24c62b1116d0493055564188e33e4d934f4d572708c811ec9bb7fbf5d437befedfcad5da1a SHA512 e8e4f53dc8c1d6aa4385cdbdc8a82bac21d9de15643980fed42a2b16c10ff56e0836371368840c9207d6bd6f8d73900a344507b8bce8b197f0580373137c0f1f

diff --git a/dev-python/pslab-python/files/pslab-python-1.0.1-no_install_udev_rules.patch b/dev-python/pslab-python/files/pslab-python-1.0.1-no_install_udev_rules.patch
deleted file mode 100644
index b721e8a8ab03..000000000000
--- a/dev-python/pslab-python/files/pslab-python-1.0.1-no_install_udev_rules.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- a/setup.py
-+++ b/setup.py
-@@ -50,6 +50,5 @@
-     packages=find_packages(),
-     #scripts=["PSL/bin/"+a for a in os.listdir("PSL/bin/")],
-     package_data={'': ['*.css','*.png','*.gif','*.html','*.css','*.js','*.png','*.jpg','*.jpeg','*.htm','99-pslab.rules']},
--    cmdclass={'install': CustomInstall},
- )
- 

diff --git a/dev-python/pslab-python/files/pslab-python-1.0.1-sys_version.patch b/dev-python/pslab-python/files/pslab-python-1.0.1-sys_version.patch
deleted file mode 100644
index 474850a34b08..000000000000
--- a/dev-python/pslab-python/files/pslab-python-1.0.1-sys_version.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/PSL/SENSORS/AD9833.py
-+++ b/PSL/SENSORS/AD9833.py
-@@ -3,7 +3,7 @@
- 
- 
- class AD9833:
--    if sys.version.major == 3:
-+    if sys.version_info.major == 3:
-         DDS_MAX_FREQ = 0xFFFFFFF - 1  # 24 bit resolution
-     else:
-         DDS_MAX_FREQ = eval("0xFFFFFFFL-1")  # 24 bit resolution

diff --git a/dev-python/pslab-python/pslab-python-1.0.1-r1.ebuild b/dev-python/pslab-python/pslab-python-1.0.1-r1.ebuild
deleted file mode 100644
index b56fef33cdc7..000000000000
--- a/dev-python/pslab-python/pslab-python-1.0.1-r1.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..9} )
-
-inherit distutils-r1
-
-DESCRIPTION="Python library for communicating with Pocket Science Lab"
-HOMEPAGE="https://pslab.io"
-SRC_URI="https://github.com/fossasia/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64"
-
-RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
-	dev-python/pyqtgraph[${PYTHON_USEDEP}]
-	dev-python/pyserial[${PYTHON_USEDEP}]
-	dev-python/scipy[${PYTHON_USEDEP}]"
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-1.0.1-sys_version.patch
-	"${FILESDIR}"/${PN}-1.0.1-no_install_udev_rules.patch
-)
-
-distutils_enable_sphinx docs


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

end of thread, other threads:[~2022-03-15 14:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-28 18:40 [gentoo-commits] repo/gentoo:master commit in: dev-python/pslab-python/, dev-python/pslab-python/files/ Marek Szuba
  -- strict thread matches above, loose matches on Subject: below --
2022-02-07 16:17 Marek Szuba
2022-03-15 14:26 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox