[arch-commits] Commit in python-flit/repos/community-any (PKGBUILD PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Wed Jun 3 20:47:58 UTC 2020


    Date: Wednesday, June 3, 2020 @ 20:47:57
  Author: ffy00
Revision: 638566

archrelease: copy trunk to community-any

Added:
  python-flit/repos/community-any/PKGBUILD
    (from rev 638565, python-flit/trunk/PKGBUILD)
Deleted:
  python-flit/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  130 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 69 insertions(+), 61 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-03 20:47:37 UTC (rev 638565)
+++ PKGBUILD	2020-06-03 20:47:57 UTC (rev 638566)
@@ -1,61 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=flit
-pkgbase=python-$_pkgname
-pkgname=($pkgbase{,-core})
-pkgver=2.3.0
-pkgrel=4
-pkgdesc='Simplified packaging of Python modules'
-arch=('any')
-url='https://github.com/takluyver/flit'
-license=('BSD')
-depends=('python')
-makedepends=('python-build' 'python-install' 'python-pyproject2setuppy'
-             'python-requests' 'python-docutils' 'python-pytoml')
-checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-testpath' 'python-responses')
-source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('d60ad9ac7d5a0af7a5f8ed095c3f828a714b7f1aa27609e4baa89cd4d9a51da37749bccb9b794c0c3c37cee3cc073b9a251d49b2c18f5b1b2902c7a0838b527c')
-
-prepare() {
-  rm $_pkgname-$pkgver/tests/test_installfrom.py
-}
-
-build() {
-  cd $_pkgname-$pkgver
-
-  PYTHONPATH=flit_core python -m pyproject2setuppy.main build
-
-  cd flit_core
-
-  python -m build
-  python -m install --cache dist/*.whl
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  PYTHONPATH=flit_core python -m pyproject2setuppy.main pytest
-}
-
-package_python-flit() {
-  depends+=('python-flit-core' 'python-requests' 'python-docutils' 'python-pytoml')
-  provides=($_pkgname)
-  conflicts=($_pkgname)
-
-  cd $_pkgname-$pkgver
-
-  PYTHONPATH=flit_core python -m pyproject2setuppy.main 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 -m install --skip-build -d "$pkgdir" dist/*.whl
-
-  install -Dm 644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-

Copied: python-flit/repos/community-any/PKGBUILD (from rev 638565, python-flit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-06-03 20:47:57 UTC (rev 638566)
@@ -0,0 +1,69 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=flit
+pkgbase=python-$_pkgname
+pkgname=($pkgbase{,-core})
+pkgver=2.3.0
+pkgrel=5
+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=('d60ad9ac7d5a0af7a5f8ed095c3f828a714b7f1aa27609e4baa89cd4d9a51da37749bccb9b794c0c3c37cee3cc073b9a251d49b2c18f5b1b2902c7a0838b527c')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  rm tests/test_installfrom.py
+
+  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
+}
+


More information about the arch-commits mailing list