Date: Saturday, July 18, 2020 @ 07:59:20 Author: dvzrv Revision: 664398
archrelease: copy trunk to community-any Added: python-pymysql/repos/community-any/PKGBUILD (from rev 664397, python-pymysql/trunk/PKGBUILD) Deleted: python-pymysql/repos/community-any/PKGBUILD ----------+ PKGBUILD | 92 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 47 insertions(+), 45 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-07-18 07:57:48 UTC (rev 664397) +++ PKGBUILD 2020-07-18 07:59:20 UTC (rev 664398) @@ -1,45 +0,0 @@ -# Maintainer: David Runge <dv...@archlinux.org> - -_name=PyMySQL -pkgname=python-pymysql -pkgver=0.9.3 -pkgrel=3 -pkgdesc="Pure Python MySQL Client" -arch=('any') -url="https://github.com/PyMySQL/PyMySQL/" -license=('MIT') -depends=('python') -makedepends=('python-setuptools') -checkdepends=('python-pytest' 'mariadb') -optdepends=('mariadb: for using a local MariaDB instance' - 'python-cryptography: for cryptography') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") -sha512sums=('2056bc4aca7a600ca50214b399edc6f3068b288c426aecb115db148f645b0ec7e9a1a7134cf67f39d4820ea59a925dc1ce3ed0e383fb5e16e0651e87449824f9') - -prepare() { - mv -v "${_name}-${pkgver}" "$pkgname-$pkgver" -} - -build() { - cd "$pkgname-$pkgver" - python setup.py build -} - -# the tests are integration tests and can only be run with a running and -# configured mariadb server -# check() { -# cd "$pkgname-$pkgver" -# export PYTHONPATH="build:${PYTHONPATH}" -# pytest -v pymysql/tests -# } - -package() { - cd "$pkgname-$pkgver" - python setup.py install --skip-build \ - --optimize=1 \ - --prefix=/usr \ - --root="${pkgdir}" - install -vDm 644 {CHANGELOG,README.rst,example.py} \ - -t "${pkgdir}/usr/share/doc/${pkgname}" - install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" -} Copied: python-pymysql/repos/community-any/PKGBUILD (from rev 664397, python-pymysql/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-07-18 07:59:20 UTC (rev 664398) @@ -0,0 +1,47 @@ +# Maintainer: David Runge <dv...@archlinux.org> + +_name=PyMySQL +pkgname=python-pymysql +pkgver=0.10.0 +pkgrel=1 +pkgdesc="Pure Python MySQL Client" +arch=('any') +url="https://github.com/PyMySQL/PyMySQL/" +license=('MIT') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'mariadb') +optdepends=('mariadb: for using a local MariaDB instance' + 'python-cryptography: for cryptography') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") +sha512sums=('e1186c4beea31cb602a3d2297a28313c0bf4e361a04f7402b76a70feea1d24bf305a4f9ea637be250974983586cb49d82946ab478b531bbb2ca7fe370424e7fc') +b2sums=('f4a37630f015505d77c678a0353988eef694f859c2b75609815380e3b6f4376db1ed1ff423efdb6db56ddb3858570fe3fbb3914f88b70eb0a258c0ad7c9f5f14') + +prepare() { + mv -v "${_name}-${pkgver}" "$pkgname-$pkgver" +} + +build() { + cd "$pkgname-$pkgver" + python setup.py build +} + +# the tests are integration tests and can only be run with a running and +# configured mariadb server +# check() { +# cd "$pkgname-$pkgver" +# export PYTHONPATH="build:${PYTHONPATH}" +# pytest -v pymysql/tests +# } + +package() { + cd "$pkgname-$pkgver" + export PYTHONHASHSEED=0 + python setup.py install --skip-build \ + --optimize=1 \ + --prefix=/usr \ + --root="${pkgdir}" + install -vDm 644 {CHANGELOG.md,README.rst} \ + -t "${pkgdir}/usr/share/doc/${pkgname}" + install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +}