aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2023-06-22 20:32:29 +0200
committerBart Ribbers <bribbers@disroot.org>2023-06-22 19:15:54 +0000
commit19f189f79e6e07b35d3ebe6c027c64f437291369 (patch)
treef212b1e3edc63a72e6e8f86997e378d21c0eff58
parent5fef1222705c899992ee4edbacce8956f612eaf3 (diff)
testing/ovos-skill-manager: rename from ovos-skills-manager and upgrade to 0.0.13a2
-rw-r--r--testing/ovos-skill-manager/APKBUILD61
-rw-r--r--testing/ovos-skills-manager/APKBUILD39
2 files changed, 61 insertions, 39 deletions
diff --git a/testing/ovos-skill-manager/APKBUILD b/testing/ovos-skill-manager/APKBUILD
new file mode 100644
index 00000000000..51e16b2a131
--- /dev/null
+++ b/testing/ovos-skill-manager/APKBUILD
@@ -0,0 +1,61 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=ovos-skill-manager
+pkgver=0.0.13a2
+pkgrel=0
+pkgdesc="Open Voice OS skill manager"
+url="https://github.com/OpenVoiceOS/ovos_skill_manager"
+arch="noarch"
+license="Apache-2.0"
+depends="
+ ovos-skill-installer
+ py3-beautifulsoup4
+ py3-click
+ py3-click-default-group
+ py3-combo-lock
+ py3-json-database
+ py3-ovos-config
+ py3-ovos-utils
+ py3-packaging
+ py3-pako
+ py3-requests
+ py3-requests-cache
+ py3-yaml
+ "
+makedepends="
+ py3-gpep517
+ py3-setuptools
+ py3-wheel
+ "
+checkdepends="py3-pytest"
+subpackages="$pkgname-pyc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos_skill_manager/archive/refs/tags/V$pkgver.tar.gz"
+# net required for tests
+options="net"
+builddir="$srcdir/ovos_skill_manager-$pkgver"
+
+# Backwards compatibility from a rename
+provides="ovos-skills-manager=$pkgver-r$pkgrel"
+replaces="ovos-skills-manager"
+
+build() {
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
+}
+
+check() {
+ python3 -m venv --clear --without-pip --system-site-packages .testenv
+ .testenv/bin/python3 -m installer .dist/*.whl
+ .testenv/bin/python3 -m pytest -k 'not test_locate_config' \
+ --deselect test/unittests/test_osm.py
+}
+
+package() {
+ python3 -m installer -d "$pkgdir" \
+ .dist/*.whl
+}
+
+sha512sums="
+11f289fe4219198ef40a05fe3e152aeef8e226a96ec762b7caf53aed2270f62727505930a76092ccfecb75826bed2a55db87f81235f0f433f060fbe7e0f431eb ovos-skill-manager-0.0.13a2.tar.gz
+"
diff --git a/testing/ovos-skills-manager/APKBUILD b/testing/ovos-skills-manager/APKBUILD
deleted file mode 100644
index cdbb92b5afc..00000000000
--- a/testing/ovos-skills-manager/APKBUILD
+++ /dev/null
@@ -1,39 +0,0 @@
-# Contributor: Bart Ribbers <bribbers@disroot.org>
-# Maintainer: Bart Ribbers <bribbers@disroot.org>
-pkgname=ovos-skills-manager
-pkgver=0.0.1
-pkgrel=4
-pkgdesc="Open Voice OS skill manager"
-url="https://github.com/OpenVoiceOS/ovos_skill_manager"
-arch="noarch"
-license="Apache-2.0"
-depends="
- ovos-skill-installer
- py3-beautifulsoup4
- py3-ovos-utils
- py3-pako
- py3-requests-cache
- py3-yaml
- python3
- "
-makedepends="py3-setuptools"
-checkdepends="py3-pytest"
-subpackages="$pkgname-pyc"
-source="https://pypi.python.org/packages/source/o/ovos-skills-manager/ovos-skills-manager-$pkgver.tar.gz"
-# net required for tests
-# tests disabled as they are broken and are in process of being rewritten upstream
-options="!check"
-
-build() {
- python3 setup.py build
-}
-
-check() {
- PYTHONPATH="$PWD/build/lib" pytest
-}
-
-package() {
- python3 setup.py install --skip-build --root="$pkgdir"
-}
-
-sha512sums="a1e95576ccfb6401c42bc34959eb0f0f692fa2ef62fcd8ad9f10712af17f352c7efbc28c09062f8770926280b4e50e62afb9a7879b078fa36a6a15f75dac1cbd ovos-skills-manager-0.0.1.tar.gz"