[arch-commits] Commit in python-build/repos/community-any (PKGBUILD PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Tue Feb 9 15:18:55 UTC 2021
Date: Tuesday, February 9, 2021 @ 15:18:55
Author: ffy00
Revision: 851019
archrelease: copy trunk to community-any
Added:
python-build/repos/community-any/PKGBUILD
(from rev 851018, python-build/trunk/PKGBUILD)
Deleted:
python-build/repos/community-any/PKGBUILD
----------+
PKGBUILD | 83 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 44 insertions(+), 39 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-09 15:18:51 UTC (rev 851018)
+++ PKGBUILD 2021-02-09 15:18:55 UTC (rev 851019)
@@ -1,39 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=build
-pkgname=python-$_pkgname
-pkgver=0.1.0
-pkgrel=2
-pkgdesc='A simple, correct PEP517 package builder'
-arch=('any')
-url='https://github.com/pypa/build'
-license=('MIT')
-depends=('python-toml' 'python-pep517' 'python-packaging')
-makedepends=('git' 'python-setuptools'
- 'python-sphinx' 'python-sphinxcontrib-autoprogram' 'python-sphinx-autodoc-typehints' 'python-sphinx-furo')
-source=("git+$url#tag=$pkgver?signed")
-validpgpkeys=('3DCE51D60930EBA47858BA4146F633CBB0EB4BF2') # Filipe Laíns (FFY00) <lains at archlinux.org>
-sha512sums=('SKIP')
-
-build() {
- cd $_pkgname
-
- python setup.py build
-
- cd docs
-
- PYTHONPATH=../src sphinx-build -b dirhtml -v source build/html
-}
-
-package() {
- cd $_pkgname
-
- python setup.py install --root="$pkgdir" --skip-build
- python -m compileall --invalidation-mode=checked-hash "$pkgdir"
-
- install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
- cp -r -a --no-preserve=ownership docs/build/html "$pkgdir"/usr/share/doc/$pkgname
- rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
-
- install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-build/repos/community-any/PKGBUILD (from rev 851018, python-build/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-02-09 15:18:55 UTC (rev 851019)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=build
+pkgname=python-$_pkgname
+pkgver=0.2.1
+pkgrel=1
+pkgdesc='A simple, correct PEP517 package builder'
+arch=('any')
+url='https://github.com/pypa/build'
+license=('MIT')
+depends=('python-toml' 'python-pep517' 'python-packaging')
+makedepends=('git' 'python-setuptools'
+ 'python-sphinx' 'python-sphinxcontrib-autoprogram' 'python-sphinx-autodoc-typehints' 'python-sphinx-furo')
+checkdepends=('python-pytest' 'python-filelock')
+source=("git+$url#tag=$pkgver?signed")
+validpgpkeys=('3DCE51D60930EBA47858BA4146F633CBB0EB4BF2') # Filipe Laíns (FFY00) <lains at archlinux.org>
+sha512sums=('SKIP')
+
+build() {
+ cd $_pkgname
+
+ python setup.py build
+
+ PYTHONPATH=src sphinx-build -b dirhtml -v docs docs/build/html
+}
+
+check() {
+ cd $_pkgname
+
+# PYTHONPATH=src pytest
+}
+
+package() {
+ cd $_pkgname
+
+ python setup.py install --root="$pkgdir" --skip-build
+ python -m compileall --invalidation-mode=checked-hash "$pkgdir"
+
+ install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+ cp -r -a --no-preserve=ownership docs/build/html "$pkgdir"/usr/share/doc/$pkgname
+ rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list