[arch-commits] Commit in python-fluidity/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:21:36 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:21:36
  Author: felixonmars
Revision: 1058097

archrelease: copy trunk to community-staging-any

Added:
  python-fluidity/repos/community-staging-any/
  python-fluidity/repos/community-staging-any/PKGBUILD
    (from rev 1058096, python-fluidity/trunk/PKGBUILD)

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Copied: python-fluidity/repos/community-staging-any/PKGBUILD (from rev 1058096, python-fluidity/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:21:36 UTC (rev 1058097)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-fluidity
+pkgver=0.2.1
+_commit=468627ea13ed4c3043dc67ccc1ff16089fdb7b25
+pkgrel=2
+pkgdesc="Fluidity: state machine implementation for Python objects"
+url="https://github.com/nsi-iff/fluidity"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-should-dsl')
+source=("https://github.com/nsi-iff/fluidity/archive/$_commit/$pkgname-$_commit.tar.gz")
+sha512sums=('9c80fb3480fe4167247374f4fb8f1d8d8b77cb7d485d26518485b06b628d70f7bf0d538c4b6a08bf071bccff3082c7266e446d1682984a60e447c0d090b0f899')
+
+build() {
+  cd fluidity-$_commit
+  python setup.py build
+}
+
+check() {
+  cd fluidity-$_commit
+  (
+    export PYTHONPATH="$PWD"
+    # Copied from https://github.com/nsi-iff/fluidity/blob/master/tox.ini
+    python spec/callable_support_spec.py
+    python spec/callback_order_spec.py
+    python spec/configuration_spec.py
+    python spec/event_parameters_spec.py
+    python spec/event_spec.py
+    python spec/guard_spec.py
+    python spec/individuation_spec.py
+    python spec/one_event_multiple_transitions_spec.py
+    python spec/state_action_spec.py
+    python spec/state_spec.py
+    python spec/transition_action_spec.py
+    python spec/boolean_state_getters_spec.py
+  )
+}
+
+package() {
+  cd fluidity-$_commit
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list