[arch-commits] Commit in python-cloudpickle/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Tue Nov 30 20:23:59 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:23:58
Author: foutrelis
Revision: 1058195
archrelease: copy trunk to community-staging-any
Added:
python-cloudpickle/repos/community-staging-any/
python-cloudpickle/repos/community-staging-any/PKGBUILD
(from rev 1058194, python-cloudpickle/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-cloudpickle/repos/community-staging-any/PKGBUILD (from rev 1058194, python-cloudpickle/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 20:23:58 UTC (rev 1058195)
@@ -0,0 +1,45 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: Chris Warrick <aur at chriswarrick.com>
+
+_pkg=cloudpickle
+pkgname=python-${_pkg}
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="Extended pickling support for Python objects"
+arch=(any)
+url="https://github.com/cloudpipe/cloudpickle"
+license=(BSD)
+depends=(python-setuptools)
+checkdepends=(
+ python-pytest
+ python-psutil
+ python-tornado
+ python-numpy
+)
+options=(!emptydirs)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('5cd02f3b417a783ba84a4ec3e290ff7929009fe51f6405423cfccfadd43ba4a4')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ cd tests/cloudpickle_testpkg
+ python setup.py build
+ cd ../../
+ PYTHONPATH="${PWD}"/tests/cloudpickle_testpkg/build/lib/ \
+ pytest -vl -k 'not test_pickle_empty and not test_dont_steal_unknown_functions' \
+ --deselect tests/cloudpickle_file_test.py::CloudPickleFileTests::test_pickling_special_file_handles \
+ --deselect tests/cloudpickle_test.py::CloudPickleTest::test_pickling_file_handles \
+ --deselect tests/cloudpickle_test.py::Protocol2CloudPickleTest::test_pickling_file_handles
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
More information about the arch-commits
mailing list