[arch-commits] Commit in python-tomlkit/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed May 29 06:29:14 UTC 2019
Date: Wednesday, May 29, 2019 @ 06:29:14
Author: felixonmars
Revision: 473672
archrelease: copy trunk to community-any
Added:
python-tomlkit/repos/community-any/PKGBUILD
(from rev 473671, python-tomlkit/trunk/PKGBUILD)
Deleted:
python-tomlkit/repos/community-any/PKGBUILD
----------+
PKGBUILD | 72 ++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 41 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-29 06:29:00 UTC (rev 473671)
+++ PKGBUILD 2019-05-29 06:29:14 UTC (rev 473672)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-tomlkit
-pkgver=0.5.3
-pkgrel=2
-pkgdesc="Style-preserving TOML library for Python"
-url="https://github.com/sdispater/tomlkit"
-license=('MIT')
-arch=('any')
-depends=('python')
-checkdepends=('python-pytest')
-source=("https://pypi.io/packages/source/t/tomlkit/tomlkit-$pkgver.tar.gz")
-sha512sums=('90939b380fb8c58a1825c45740d599f116adf5075b1efb327ceb72353b1d1b3d6d6b960ed7673d46af586fc3ed56a866a6a8eb8dfc2a78ea128b5b7f214b0b55')
-
-build() {
- cd tomlkit-$pkgver
- python setup.py build
-}
-
-check() {
- cd tomlkit-$pkgver
- # TODO: package a pyproject to setup converter and use git source
- # python -m pytest
-}
-
-package() {
- cd tomlkit-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
Copied: python-tomlkit/repos/community-any/PKGBUILD (from rev 473671, python-tomlkit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-05-29 06:29:14 UTC (rev 473672)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tomlkit
+pkgver=0.5.3
+_tomltestcommit=f910e151d1b14d94b1e8a4264db0814fb03520d9
+pkgrel=3
+pkgdesc="Style-preserving TOML library for Python"
+url="https://github.com/sdispater/tomlkit"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-dephell')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sdispater/tomlkit/archive/$pkgver.tar.gz"
+ "toml-test-$_tomltestcommit.tar.gz::https://github.com/BurntSushi/toml-test/archive/$_tomltestcommit.tar.gz")
+sha512sums=('68f2c2df5bfe0986a8530bb72d35179be974105a11427a59d8d88ea2c1828284ed5518e9fdd90f82ab508e44e63176f7efb78acccc8f4baaa901805979f32c90'
+ '49431bf72cd5b40b6732eec75b2ea25d349df4f76c84a7fc51443f55712c47b0ae0f7a049d7ae19f328ca504ded1f6df00861c725dcfdbeaac07c3bd999c5f3b')
+
+prepare() {
+ cd tomlkit-$pkgver
+ dephell deps convert --from pyproject.toml --to setup.py
+ rmdir tests/toml-test
+ ln -s "$srcdir"/toml-test-$_tomltestcommit tests/toml-test
+}
+
+build() {
+ cd tomlkit-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd tomlkit-$pkgver
+ python -m pytest
+}
+
+package() {
+ cd tomlkit-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list