[arch-commits] Commit in python-flit/repos/community-any (PKGBUILD PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Sat Dec 19 14:19:40 UTC 2020
Date: Saturday, December 19, 2020 @ 14:19:39
Author: ffy00
Revision: 779971
archrelease: copy trunk to community-any
Added:
python-flit/repos/community-any/PKGBUILD
(from rev 779970, python-flit/trunk/PKGBUILD)
Deleted:
python-flit/repos/community-any/PKGBUILD
----------+
PKGBUILD | 133 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 67 insertions(+), 66 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-19 14:19:22 UTC (rev 779970)
+++ PKGBUILD 2020-12-19 14:19:39 UTC (rev 779971)
@@ -1,66 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=flit
-pkgbase=python-$_pkgname
-pkgname=($pkgbase{,-core})
-pkgver=3.0.0
-pkgrel=2
-pkgdesc='Simplified packaging of Python modules'
-arch=('any')
-url='https://github.com/takluyver/flit'
-license=('BSD')
-depends=('python')
-makedepends=('python-setuptools' 'python-dephell'
- 'python-requests' 'python-docutils' 'python-pytoml')
- #'python-build' 'python-install' 'python-pyproject2setuppy'
-checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-testpath' 'python-responses')
-source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('eaac412613f18e711603ee3dcf692aa0b652cd59de726e547ab91ee96368d804dbe4f312a0c169565ff96f34dd4e72e7fccf63f719910c17955afa64d2f36485')
-
-prepare() {
- cd $_pkgname-$pkgver
-
- dephell deps convert --from pyproject.toml --to setup.py
-
- cd flit_core
-
- dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build() {
- cd $_pkgname-$pkgver
-
- python setup.py build
-
- cd flit_core
-
- python setup.py build
-}
-
-check() {
- cd $_pkgname-$pkgver
-
- python setup.py pytest
-}
-
-package_python-flit() {
- depends+=('python-flit-core' 'python-requests' 'python-docutils' 'python-pytoml')
- provides=($_pkgname)
- conflicts=($_pkgname)
-
- cd $_pkgname-$pkgver
-
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
- install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python-flit-core() {
- pkgdesc+=' (core backend)'
-
- cd $_pkgname-$pkgver/flit_core
-
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
- install -Dm 644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-flit/repos/community-any/PKGBUILD (from rev 779970, python-flit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-12-19 14:19:39 UTC (rev 779971)
@@ -0,0 +1,67 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=flit
+pkgbase=python-$_pkgname
+pkgname=($pkgbase{,-core})
+pkgver=3.0.0
+pkgrel=3
+pkgdesc='Simplified packaging of Python modules'
+arch=('any')
+url='https://github.com/takluyver/flit'
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools' 'python-dephell'
+ 'python-requests' 'python-docutils' 'python-pytoml')
+ #'python-build' 'python-install' 'python-pyproject2setuppy'
+checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-testpath' 'python-responses')
+source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('eaac412613f18e711603ee3dcf692aa0b652cd59de726e547ab91ee96368d804dbe4f312a0c169565ff96f34dd4e72e7fccf63f719910c17955afa64d2f36485')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ dephell deps convert --from pyproject.toml --to setup.py
+
+ cd flit_core
+
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build
+
+ cd flit_core
+
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ python setup.py pytest
+}
+
+package_python-flit() {
+ depends+=('python-flit-core' 'python-requests' 'python-docutils' 'python-pytoml')
+ provides=($_pkgname)
+ conflicts=($_pkgname)
+
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ cp -a flit/license_templates "$pkgdir"/usr/lib/python3.9/site-packages/flit/
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-flit-core() {
+ pkgdesc+=' (core backend)'
+
+ cd $_pkgname-$pkgver/flit_core
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm 644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list