David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
python-pylink-square


Commits:
686571f9 by David Runge at 2024-04-05T22:32:16+02:00
Add nvchecker integration

Signed-off-by: David Runge <[email protected]>

- - - - -
abbf2b21 by David Runge at 2024-04-05T22:33:51+02:00
Switch to correct SPDX license identifier

Signed-off-by: David Runge <[email protected]>

- - - - -
9f02a355 by David Runge at 2024-04-05T22:35:45+02:00
Switch to upstream provided auto-generated source tarball

Signed-off-by: David Runge <[email protected]>

- - - - -
2938c563 by David Runge at 2024-04-05T22:36:10+02:00
Remove unnecessary dependency on python-future

Signed-off-by: David Runge <[email protected]>

- - - - -
7536aa1d by David Runge at 2024-04-05T22:48:32+02:00
upgpkg: 1.2.0-2: Rebuild against Python 3.12

- - - - -


3 changed files:

- + .SRCINFO
- + .nvchecker.toml
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,26 @@
+pkgbase = python-pylink-square
+       pkgdesc = Python interface for the SEGGER J-Link
+       pkgver = 1.2.0
+       pkgrel = 2
+       url = https://github.com/Square/pylink
+       arch = any
+       license = Apache-2.0
+       checkdepends = python-pytest
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = python
+       depends = python-psutil
+       depends = python-six
+       provides = pylink
+       conflicts = pylink
+       replaces = pylink
+       source = 
python-pylink-square-1.2.0.tar.gz::https://github.com/square/pylink/archive/refs/tags/v1.2.0.tar.gz
+       source = python-pylink-square-0.14.3-remove_mock.patch
+       sha512sums = 
eca7432884ecbd0deb70018c8046f95e4e9aac5b0306a0f855f09742d268c54a5c7521b5cebc45cdc0e8f53b7c2d5ad4b31c1c3611976343b4fe3979faba258c
+       sha512sums = 
35ff6497171de4acb6eebbca0619419ba8fa74da9487181dcbd90068fe2c7122e79d0d3e54dfc9a0bf010e398d144ff6ce20ca5e76e426269f6274b1d66287da
+       b2sums = 
5bf83a517706a09e9c569040086d7be76d2bb06cbcb9937c3a0003d19d68ee10f0eeb12f74324bc5caaa915063d095e12c9057699e2c22755ac8249ba4ef5b8f
+       b2sums = 
4cc08b683975b3400caa0d73efb986737971c1003f1c0632d7440c25c9f0cc661f847275753c6ba03dc214e303a3cfd1ea8d3fb2bb6824c7560945fe1f2ecb05
+
+pkgname = python-pylink-square


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,3 @@
+[python-pylink-square]
+source = "pypi"
+pypi = "pylink-square"


=====================================
PKGBUILD
=====================================
@@ -1,16 +1,15 @@
 # Maintainer: David Runge <[email protected]>
 
-_name=pylink-square
 pkgname=python-pylink-square
+_name=pylink
 pkgver=1.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python interface for the SEGGER J-Link"
 arch=(any)
 url="https://github.com/Square/pylink";
-license=(Apache)
+license=(Apache-2.0)
 depends=(
   python
-  python-future
   python-psutil
   python-six
 )
@@ -25,17 +24,19 @@ conflicts=(pylink)
 provides=(pylink)
 replaces=(pylink)
 source=(
-  
https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz
+  
$pkgname-$pkgver.tar.gz::https://github.com/square/pylink/archive/refs/tags/v$pkgver.tar.gz
   $pkgname-0.14.3-remove_mock.patch
 )
-sha512sums=('eb9164e7bf409a595f17edfc5352f4d361e96cf4f315d42874401918e3ec869fc5a63cf38c9f7fde1448dc967d8aec4e2f0ac1eeb05f276e4def4bbbf7ab821b'
+sha512sums=('eca7432884ecbd0deb70018c8046f95e4e9aac5b0306a0f855f09742d268c54a5c7521b5cebc45cdc0e8f53b7c2d5ad4b31c1c3611976343b4fe3979faba258c'
             
'35ff6497171de4acb6eebbca0619419ba8fa74da9487181dcbd90068fe2c7122e79d0d3e54dfc9a0bf010e398d144ff6ce20ca5e76e426269f6274b1d66287da')
-b2sums=('4e0d8deb63f4d927eda7578cb6f23f44225d3bacb419768353b2966dca30a48a258ea1acd268392b4dc3a49047827e81de5321d6fb6027b9517cf4855d644d9b'
+b2sums=('5bf83a517706a09e9c569040086d7be76d2bb06cbcb9937c3a0003d19d68ee10f0eeb12f74324bc5caaa915063d095e12c9057699e2c22755ac8249ba4ef5b8f'
         
'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
+  # test library changed with Python 3.12: 
https://github.com/square/pylink/issues/197
+  sed -i 's/assertEquals/assertEqual/g' 
$_name-$pkgver/tests/unit/test_library.py
 }
 
 build() {
@@ -44,8 +45,16 @@ build() {
 }
 
 check() {
+  local pytest_options=(
+    -vv
+    # tests broken with Python 3.12: 
https://github.com/square/pylink/issues/197
+    --deselect 
tests/unit/test_jlink.py::TestJLink::test_cp15_register_write_success
+    --deselect tests/unit/test_jlink.py::TestJLink::test_jlink_restarted
+    --deselect tests/unit/test_jlink.py::TestJLink::test_set_log_file_success
+  )
+
   cd $_name-$pkgver
-  pytest -v
+  pytest "${pytest_options[@]}"
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pylink-square/-/compare/6e8f62d69b281a37369465a9220a4a9463bed7f2...7536aa1d9a8ceec6b0ab8cb174bf83153dbf4dd6

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pylink-square/-/compare/6e8f62d69b281a37369465a9220a4a9463bed7f2...7536aa1d9a8ceec6b0ab8cb174bf83153dbf4dd6
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to