Date: Sunday, May 14, 2023 @ 21:06:02
Author: dvzrv
Revision: 1461716
archrelease: copy trunk to community-any
Added:
python-pylink-square/repos/community-any/PKGBUILD
(from rev 1461715, python-pylink-square/trunk/PKGBUILD)
python-pylink-square/repos/community-any/python-pylink-square-0.14.3-remove_mock.patch
(from rev 1461715,
python-pylink-square/trunk/python-pylink-square-0.14.3-remove_mock.patch)
Deleted:
python-pylink-square/repos/community-any/PKGBUILD
python-pylink-square/repos/community-any/python-pylink-square-0.14.3-remove_mock.patch
-----------------------------------------------+
PKGBUILD | 100 ++++-----
python-pylink-square-0.14.3-remove_mock.patch | 266 ++++++++++++------------
2 files changed, 188 insertions(+), 178 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-14 21:05:50 UTC (rev 1461715)
+++ PKGBUILD 2023-05-14 21:06:02 UTC (rev 1461716)
@@ -1,45 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=pylink-square
-pkgname=python-pylink-square
-pkgver=1.0.0
-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=('22409c78a0bb858b1fc3cf8ed110885c366964af656ad06d3fe969565d91b6491599b7e65979fdee9d9a89a092eb87dad8d9e60101b5f1f4bda3f8a5b3539a77'
-
'35ff6497171de4acb6eebbca0619419ba8fa74da9487181dcbd90068fe2c7122e79d0d3e54dfc9a0bf010e398d144ff6ce20ca5e76e426269f6274b1d66287da')
-b2sums=('31c6b14d382a2d1eb5d30062af1caed718978b452980e1ba7332da5970b4c804b727b244b5d027f1fdaa3ef5575ccfcd399d8210ad940852752fceab361f3324'
-
'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/PKGBUILD (from rev 1461715,
python-pylink-square/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-05-14 21:06:02 UTC (rev 1461716)
@@ -0,0 +1,55 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=pylink-square
+pkgname=python-pylink-square
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Python interface for the SEGGER J-Link"
+arch=(any)
+url="https://github.com/Square/pylink"
+license=(Apache)
+depends=(
+ python
+ 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=('cbb222998fe52b69685734bd12423dae2828bcb19127060afef67cbb56df204e819c5359690854a528b44880fcee597c374356192841a54f20808de7846f23f2'
+
'35ff6497171de4acb6eebbca0619419ba8fa74da9487181dcbd90068fe2c7122e79d0d3e54dfc9a0bf010e398d144ff6ce20ca5e76e426269f6274b1d66287da')
+b2sums=('7dbff8ea9d2ea478c6654402d112a503c6c3c856c9280b3b416c5c731860295f9e64d32d940a34fbb74ae5439afd555f719b3676827c3d16ae188ca3709e8256'
+
'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"
+}
Deleted: python-pylink-square-0.14.3-remove_mock.patch
===================================================================
--- python-pylink-square-0.14.3-remove_mock.patch 2023-05-14 21:05:50 UTC
(rev 1461715)
+++ python-pylink-square-0.14.3-remove_mock.patch 2023-05-14 21:06:02 UTC
(rev 1461716)
@@ -1,133 +0,0 @@
-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
-
Copied:
python-pylink-square/repos/community-any/python-pylink-square-0.14.3-remove_mock.patch
(from rev 1461715,
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 2023-05-14 21:06:02 UTC
(rev 1461716)
@@ -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
+