Date: Friday, April 7, 2023 @ 04:02:40
Author: felixonmars
Revision: 1440421
archrelease: copy trunk to community-staging-x86_64
Added:
python-pysmf/repos/community-staging-x86_64/PKGBUILD
(from rev 1440418, python-pysmf/trunk/PKGBUILD)
python-pysmf/repos/community-staging-x86_64/update-pytest-references.patch
(from rev 1440419, python-pysmf/trunk/update-pytest-references.patch)
Deleted:
python-pysmf/repos/community-staging-x86_64/PKGBUILD
python-pysmf/repos/community-staging-x86_64/update-pytest-references.patch
--------------------------------+
PKGBUILD | 128 +++++++++++++++++++--------------------
update-pytest-references.patch | 64 +++++++++----------
2 files changed, 96 insertions(+), 96 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-07 04:02:40 UTC (rev 1440420)
+++ PKGBUILD 2023-04-07 04:02:40 UTC (rev 1440421)
@@ -1,64 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-
-pkgname=python-pysmf
-pkgver=0.1.1
-pkgrel=3
-pkgdesc='Python module for reading & writing Standard MIDI Files'
-arch=('x86_64')
-url='https://das.nasophon.de/pysmf/'
-license=('custom:BSD') # some form of 2-clause BSD
-depends=('python' 'libsmf')
-makedepends=(
- 'git'
- 'python-build'
- 'python-installer'
- 'python-wheel'
- 'python-setuptools'
- 'cython'
-)
-checkdepends=('python-pytest')
-_commit='84806d212c98f56563eacffb472d4114d2ad42a1'
-source=(
- "$pkgname::git+https://github.com/dsacre/pysmf#commit=$_commit"
- 'update-pytest-references.patch'
-)
-sha512sums=('SKIP'
-
'475231e66e77472418571a585c99f4c347d50a4c29f33c3fe5fbe6ab5602b3ea86ec237fc0454a54b8e70304c3726256e4d267ed024fa987bb8b3034c0686142')
-b2sums=('SKIP'
-
'3eb8d25197e68a352819bdef8a57abe17312c5cc938c61bc9a31cc1064949b036eff314e4a21d50daf81a7749a4424ed7371e7fbaab32eed46ef348ddbc7ee73')
-
-pkgver() {
- cd "$pkgname"
-
- git describe --tags | sed 's/^v//'
-}
-
-build() {
- cd "$pkgname"
-
- python -m build --wheel --no-isolation
-}
-
-check() {
- cd "$pkgname"
-
- # update deprecated references to pytest
- patch -p1 -i "$srcdir/update-pytest-references.patch"
-
- local python_version=$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
-
- PYTHONPATH="build/lib.linux-$CARCH-cpython-$python_version:$PYTHONPATH"
pytest -v
-}
-
-package() {
- cd "$pkgname"
-
- python -m installer --destdir="$pkgdir" dist/*.whl
-
- # documentation
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" NEWS README
- cp -vr examples "$pkgdir/usr/share/doc/$pkgname"
-
- # license
- install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYING
-}
Copied: python-pysmf/repos/community-staging-x86_64/PKGBUILD (from rev 1440418,
python-pysmf/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-07 04:02:40 UTC (rev 1440421)
@@ -0,0 +1,64 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-pysmf
+pkgver=0.1.1
+pkgrel=4
+pkgdesc='Python module for reading & writing Standard MIDI Files'
+arch=('x86_64')
+url='https://das.nasophon.de/pysmf/'
+license=('custom:BSD') # some form of 2-clause BSD
+depends=('python' 'libsmf')
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+ 'cython'
+)
+checkdepends=('python-pytest')
+_commit='84806d212c98f56563eacffb472d4114d2ad42a1'
+source=(
+ "$pkgname::git+https://github.com/dsacre/pysmf#commit=$_commit"
+ 'update-pytest-references.patch'
+)
+sha512sums=('SKIP'
+
'475231e66e77472418571a585c99f4c347d50a4c29f33c3fe5fbe6ab5602b3ea86ec237fc0454a54b8e70304c3726256e4d267ed024fa987bb8b3034c0686142')
+b2sums=('SKIP'
+
'3eb8d25197e68a352819bdef8a57abe17312c5cc938c61bc9a31cc1064949b036eff314e4a21d50daf81a7749a4424ed7371e7fbaab32eed46ef348ddbc7ee73')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "$pkgname"
+
+ # update deprecated references to pytest
+ patch -p1 -i "$srcdir/update-pytest-references.patch"
+
+ local python_version=$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
+
+ PYTHONPATH="build/lib.linux-$CARCH-cpython-$python_version:$PYTHONPATH"
pytest -v
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" NEWS README
+ cp -vr examples "$pkgdir/usr/share/doc/$pkgname"
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYING
+}
Deleted: update-pytest-references.patch
===================================================================
--- update-pytest-references.patch 2023-04-07 04:02:40 UTC (rev 1440420)
+++ update-pytest-references.patch 2023-04-07 04:02:40 UTC (rev 1440421)
@@ -1,32 +0,0 @@
---- a/test/test_smf.py
-+++ b/test/test_smf.py
-@@ -1,6 +1,6 @@
- from os.path import dirname, join
-
--import py.test
-+import pytest
- import smf
-
- EMPTY_1_TRACK_120_PPQN = ('MThd\x00\x00\x00\x06\x00\x00\x00\x01\x00\x78'
-@@ -22,7 +22,7 @@ class TestLoadSave:
- a = smf.SMF(TEST_MID1)
- assert len(a.tracks) == 1
-
-- py.test.raises(IOError, smf.SMF, 'nonexistent.mid')
-+ pytest.raises(IOError, smf.SMF, 'nonexistent.mid')
-
- def test_load_from_memory(self):
- a = smf.SMF(data=EMPTY_1_TRACK_120_PPQN)
-@@ -35,10 +35,10 @@ class TestLoadSave:
- with open(TEST_MID1, 'rb') as f1, open(TEST_MID2, 'rb') as f2:
- assert f1.read() == f2.read()
-
-- py.test.raises(IOError, a.save, '')
-+ pytest.raises(IOError, a.save, '')
-
- b = smf.SMF()
-- py.test.raises(IOError, b.save, TEST_MID2)
-+ pytest.raises(IOError, b.save, TEST_MID2)
-
- # def test_save_to_memory(self):
- # a = smf.SMF('test.mid')
Copied:
python-pysmf/repos/community-staging-x86_64/update-pytest-references.patch
(from rev 1440419, python-pysmf/trunk/update-pytest-references.patch)
===================================================================
--- update-pytest-references.patch (rev 0)
+++ update-pytest-references.patch 2023-04-07 04:02:40 UTC (rev 1440421)
@@ -0,0 +1,32 @@
+--- a/test/test_smf.py
++++ b/test/test_smf.py
+@@ -1,6 +1,6 @@
+ from os.path import dirname, join
+
+-import py.test
++import pytest
+ import smf
+
+ EMPTY_1_TRACK_120_PPQN = ('MThd\x00\x00\x00\x06\x00\x00\x00\x01\x00\x78'
+@@ -22,7 +22,7 @@ class TestLoadSave:
+ a = smf.SMF(TEST_MID1)
+ assert len(a.tracks) == 1
+
+- py.test.raises(IOError, smf.SMF, 'nonexistent.mid')
++ pytest.raises(IOError, smf.SMF, 'nonexistent.mid')
+
+ def test_load_from_memory(self):
+ a = smf.SMF(data=EMPTY_1_TRACK_120_PPQN)
+@@ -35,10 +35,10 @@ class TestLoadSave:
+ with open(TEST_MID1, 'rb') as f1, open(TEST_MID2, 'rb') as f2:
+ assert f1.read() == f2.read()
+
+- py.test.raises(IOError, a.save, '')
++ pytest.raises(IOError, a.save, '')
+
+ b = smf.SMF()
+- py.test.raises(IOError, b.save, TEST_MID2)
++ pytest.raises(IOError, b.save, TEST_MID2)
+
+ # def test_save_to_memory(self):
+ # a = smf.SMF('test.mid')