Date: Sunday, November 13, 2022 @ 15:23:42
Author: dvzrv
Revision: 1347283
archrelease: copy trunk to community-any
Added:
python-pylink-square/repos/community-any/PKGBUILD
(from rev 1347282, python-pylink-square/trunk/PKGBUILD)
python-pylink-square/repos/community-any/python-pylink-square-0.14.3-remove_mock.patch
(from rev 1347282,
python-pylink-square/trunk/python-pylink-square-0.14.3-remove_mock.patch)
Deleted:
python-pylink-square/repos/community-any/PKGBUILD
-----------------------------------------------+
PKGBUILD | 80 ++++++++------
python-pylink-square-0.14.3-remove_mock.patch | 133 ++++++++++++++++++++++++
2 files changed, 178 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-13 15:22:48 UTC (rev 1347282)
+++ PKGBUILD 2022-11-13 15:23:42 UTC (rev 1347283)
@@ -1,35 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=pylink-square
-pkgname=python-pylink-square
-pkgver=0.14.3
-pkgrel=1
-pkgdesc="Python interface for the SEGGER J-Link"
-arch=(any)
-url="https://github.com/Square/pylink"
-license=(Apache)
-depends=(python-future python-psutil python-six)
-makedepends=(python-build python-installer python-setuptools python-wheel)
-checkdepends=(python-mock python-pytest)
-conflicts=(pylink)
-provides=(pylink)
-replaces=(pylink)
-source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-sha512sums=('30622abc506f3892d283fa6e0cd9709b8cf22564b6139ebb7d0a42abd6b3b37fcbc6e5c99a40de67721ce0852d9d0998682763c0b06c64e6725bf65d1c18d06c')
-b2sums=('c009c46285bf6e1fb774c062a0c897e2b5915c071afb908ba1e297a89d42505b1d11b45af17053f218718ec8230df799b194fb3355e8053956c6346d638a0a34')
-
-build() {
- cd $_name-$pkgver
- python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
- cd $_name-$pkgver
- pytest -v
-}
-
-package() {
- cd $_name-$pkgver
- python -m installer --destdir="$pkgdir" dist/*.whl
- install -vDm 644 *.md -t "$pkgdir/usr/share/doc/$pkgname"
-}
Copied: python-pylink-square/repos/community-any/PKGBUILD (from rev 1347282,
python-pylink-square/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-13 15:23:42 UTC (rev 1347283)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=pylink-square
+pkgname=python-pylink-square
+pkgver=0.14.3
+pkgrel=2
+pkgdesc="Python interface for the SEGGER J-Link"
+arch=(any)
+url="https://github.com/Square/pylink"
+license=(Apache)
+depends=(python-future python-psutil python-six)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+conflicts=(pylink)
+provides=(pylink)
+replaces=(pylink)
+source=(
+
https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz
+ $pkgname-0.14.3-remove_mock.patch
+)
+sha512sums=('30622abc506f3892d283fa6e0cd9709b8cf22564b6139ebb7d0a42abd6b3b37fcbc6e5c99a40de67721ce0852d9d0998682763c0b06c64e6725bf65d1c18d06c'
+
'35ff6497171de4acb6eebbca0619419ba8fa74da9487181dcbd90068fe2c7122e79d0d3e54dfc9a0bf010e398d144ff6ce20ca5e76e426269f6274b1d66287da')
+b2sums=('c009c46285bf6e1fb774c062a0c897e2b5915c071afb908ba1e297a89d42505b1d11b45af17053f218718ec8230df799b194fb3355e8053956c6346d638a0a34'
+
'4cc08b683975b3400caa0d73efb986737971c1003f1c0632d7440c25c9f0cc661f847275753c6ba03dc214e303a3cfd1ea8d3fb2bb6824c7560945fe1f2ecb05')
+
+prepare() {
+ # remove use of mock: https://github.com/square/pylink/issues/149
+ patch -Np1 -d $_name-$pkgver -i ../$pkgname-0.14.3-remove_mock.patch
+}
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_name-$pkgver
+ pytest -v
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 *.md -t "$pkgdir/usr/share/doc/$pkgname"
+}
Copied:
python-pylink-square/repos/community-any/python-pylink-square-0.14.3-remove_mock.patch
(from rev 1347282,
python-pylink-square/trunk/python-pylink-square-0.14.3-remove_mock.patch)
===================================================================
--- python-pylink-square-0.14.3-remove_mock.patch
(rev 0)
+++ python-pylink-square-0.14.3-remove_mock.patch 2022-11-13 15:23:42 UTC
(rev 1347283)
@@ -0,0 +1,133 @@
+diff --git c/setup.py w/setup.py
+index f87b026..6312871 100644
+--- c/setup.py
++++ w/setup.py
+@@ -263,11 +263,6 @@ setuptools.setup(
+ # Tests
+ test_suite='tests',
+
+- # Test requirements
+- tests_require=[
+- 'mock == 2.0.0'
+- ],
+-
+ # Additional scripts.
+ scripts=[
+ os.path.join('examples', 'pylink-rtt'),
+diff --git c/tests/unit/protocols/test_swd.py
w/tests/unit/protocols/test_swd.py
+index 03652f6..1a74455 100644
+--- c/tests/unit/protocols/test_swd.py
++++ w/tests/unit/protocols/test_swd.py
+@@ -15,7 +15,7 @@
+ import pylink.protocols.swd as swd
+ import pylink.util
+
+-import mock
++from unittest import mock
+
+ import unittest
+
+diff --git c/tests/unit/test_decorators.py w/tests/unit/test_decorators.py
+index ba2096b..2430cc3 100644
+--- c/tests/unit/test_decorators.py
++++ w/tests/unit/test_decorators.py
+@@ -14,7 +14,7 @@
+
+ import pylink.decorators as decorators
+
+-import mock
++from unittest import mock
+
+ import threading
+ import unittest
+diff --git c/tests/unit/test_jlink.py w/tests/unit/test_jlink.py
+index fa7c32f..8beb2b9 100644
+--- c/tests/unit/test_jlink.py
++++ w/tests/unit/test_jlink.py
+@@ -20,7 +20,7 @@ import pylink.structs as structs
+ import pylink.unlockers.unlock_kinetis as unlock_kinetis
+ import pylink.util as util
+
+-import mock
++from unittest import mock
+
+ try:
+ import StringIO
+diff --git c/tests/unit/test_jlock.py w/tests/unit/test_jlock.py
+index 7913b86..7492900 100644
+--- c/tests/unit/test_jlock.py
++++ w/tests/unit/test_jlock.py
+@@ -14,7 +14,7 @@
+
+ import pylink.jlock as jlock
+
+-import mock
++from unittest import mock
+
+ import errno
+ import os
+diff --git c/tests/unit/test_library.py w/tests/unit/test_library.py
+index fb92f92..3b06800 100644
+--- c/tests/unit/test_library.py
++++ w/tests/unit/test_library.py
+@@ -16,7 +16,7 @@ from platform import platform
+ import pylink.library as library
+ import pylink.util as util
+
+-import mock
++from unittest import mock
+
+ import unittest
+
+diff --git c/tests/unit/test_main.py w/tests/unit/test_main.py
+index 9b50396..c9cadbd 100644
+--- c/tests/unit/test_main.py
++++ w/tests/unit/test_main.py
+@@ -16,7 +16,7 @@ import pylink
+ import pylink.__main__ as main
+
+ import logging
+-import mock
++from unittest import mock
+
+ try:
+ import StringIO
+diff --git c/tests/unit/test_util.py w/tests/unit/test_util.py
+index c60d6da..67f70a0 100644
+--- c/tests/unit/test_util.py
++++ w/tests/unit/test_util.py
+@@ -15,7 +15,7 @@
+ import pylink.enums as enums
+ import pylink.util as util
+
+-import mock
++from unittest import mock
+
+ try:
+ import StringIO
+diff --git c/tests/unit/unlockers/test_unlock.py
w/tests/unit/unlockers/test_unlock.py
+index e625745..ce4f0a6 100644
+--- c/tests/unit/unlockers/test_unlock.py
++++ w/tests/unit/unlockers/test_unlock.py
+@@ -14,7 +14,7 @@
+
+ import pylink.unlockers as unlock
+
+-import mock
++from unittest import mock
+
+ import unittest
+
+diff --git c/tests/unit/unlockers/test_unlock_kinetis.py
w/tests/unit/unlockers/test_unlock_kinetis.py
+index e1c0738..1e80f8d 100644
+--- c/tests/unit/unlockers/test_unlock_kinetis.py
++++ w/tests/unit/unlockers/test_unlock_kinetis.py
+@@ -16,7 +16,7 @@ import pylink.enums as enums
+ import pylink.protocols.swd as swd
+ import pylink.unlockers as unlock
+
+-import mock
++from unittest import mock
+
+ import unittest
+