Date: Thursday, April 6, 2023 @ 14:29:51
Author: felixonmars
Revision: 1439234
archrelease: copy trunk to community-staging-any
Added:
python-atomicwrites/repos/community-staging-any/
python-atomicwrites/repos/community-staging-any/PKGBUILD
(from rev 1439231, python-atomicwrites/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-atomicwrites/repos/community-staging-any/PKGBUILD (from rev
1439231, python-atomicwrites/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 14:29:51 UTC (rev 1439234)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <[email protected]>
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+
+_name=atomicwrites
+pkgname=python-atomicwrites
+pkgver=1.4.1
+pkgrel=3
+pkgdesc="Atomic file writes on POSIX"
+arch=('any')
+url="https://github.com/untitaker/python-atomicwrites"
+license=('MIT')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('d02f58ba639a3ba677eedd78016d366a6e77c79d31903ad34f0a50202aba9b9616f933e9763c42da197ada124abd3510c54d0b10099159308c186bccc6270f32')
+
+build() {
+ cd "${_name}-${pkgver}"
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd "${_name}-${pkgver}"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "${_name}-${pkgver}"
+ python -m installer --destdir="${pkgdir}" dist/*.whl
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+ # Symlink license file
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ install -d "${pkgdir}"/usr/share/licenses/${pkgname}
+ ln -s "${site_packages}"/${_name}-${pkgver}.dist-info/LICENSE \
+ "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}