summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD42
2 files changed, 44 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 04f2b390ad6..8e4189b80f9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,24 @@
pkgbase = python-sqliteschema
pkgdesc = Dump table schema of a SQLite database file
- pkgver = 1.0.5
+ pkgver = 1.2.0
pkgrel = 1
url = https://github.com/thombashi/sqliteschema
arch = any
license = MIT
+ checkdepends = python-pytest-runner
+ checkdepends = python-simplesqlite>=1
makedepends = python-setuptools
- depends = python
- depends = python-mbstrdecoder
- depends = python-tabledata
- depends = python-typepy
- source = https://files.pythonhosted.org/packages/source/s/sqliteschema/sqliteschema-1.0.5.tar.gz
- sha256sums = 443addd7d8874d4f576d418884a569944098c83fd49b80b21561a7905aaf38da
+ depends = python>=3.6
+ depends = python-mbstrdecoder>=0.8.3
+ depends = python-mbstrdecoder<2
+ depends = python-tabledata>=1.0.0
+ depends = python-tabledata<2
+ depends = python-typepy>=1.1.4
+ depends = python-typepy<2
+ source = python-sqliteschema-1.2.0.tar.gz::https://files.pythonhosted.org/packages/source/s/sqliteschema/sqliteschema-1.2.0.tar.gz
+ source = python-sqliteschema-1.2.0.tar.gz.asc::https://files.pythonhosted.org/packages/source/s/sqliteschema/sqliteschema-1.2.0.tar.gz.asc
+ validpgpkeys = BCF9203E5E80B5607EAE6FDD98CDA9A5F0BFC367
+ sha256sums = 4c18f141239c58b6dbdc69130be41ed9740d8209a7ab6d529ba982a8b79c071a
+ sha256sums = SKIP
pkgname = python-sqliteschema
-
diff --git a/PKGBUILD b/PKGBUILD
index cc433902c94..82db6a802de 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,45 @@
-# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
+# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
+# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
-_pkgname='sqliteschema'
-pkgname="python-${_pkgname}"
-pkgver=1.0.5
+pkgname=python-sqliteschema
+pkgver=1.2.0
pkgrel=1
pkgdesc='Dump table schema of a SQLite database file'
arch=('any')
url='https://github.com/thombashi/sqliteschema'
-_url_pypi='https://pypi.org/project/sqliteschema'
license=('MIT')
-depends=('python' 'python-mbstrdecoder' 'python-tabledata' 'python-typepy')
+depends=(
+ 'python>=3.6'
+ ## ALL DEPS BELOW THIS COMMENT ARE AUR ONLY
+ 'python-mbstrdecoder>=0.8.3'
+ 'python-mbstrdecoder<2'
+ 'python-tabledata>=1.0.0'
+ 'python-tabledata<2'
+ 'python-typepy>=1.1.4'
+ 'python-typepy<2')
makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-sha256sums=('443addd7d8874d4f576d418884a569944098c83fd49b80b21561a7905aaf38da')
+checkdepends=('python-pytest-runner' 'python-simplesqlite>=1')
+source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/s/sqliteschema/sqliteschema-$pkgver.tar.gz"
+ "$pkgname-$pkgver.tar.gz.asc::https://files.pythonhosted.org/packages/source/s/sqliteschema/sqliteschema-$pkgver.tar.gz.asc")
+sha256sums=('4c18f141239c58b6dbdc69130be41ed9740d8209a7ab6d529ba982a8b79c071a'
+ 'SKIP')
+validpgpkeys=('BCF9203E5E80B5607EAE6FDD98CDA9A5F0BFC367')
build() {
- cd "${_pkgname}-${pkgver}"
+ cd "sqliteschema-$pkgver"
python setup.py build
}
+check() {
+ cd "sqliteschema-$pkgver"
+ python setup.py pytest
+}
+
package() {
- cd "${_pkgname}-${pkgver}"
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dvm644 'README.rst' -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ cd "sqliteschema-$pkgver"
+ PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
# vim: ts=2 sw=2 et: