[arch-commits] Commit in python-sqlalchemy/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sat Apr 24 20:41:19 UTC 2021
Date: Saturday, April 24, 2021 @ 20:41:18
Author: jelle
Revision: 923741
upgpkg: python-sqlalchemy 1.4.11-1
Modified:
python-sqlalchemy/trunk/PKGBUILD
----------+
PKGBUILD | 43 +++++++++++--------------------------------
1 file changed, 11 insertions(+), 32 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-24 20:16:50 UTC (rev 923740)
+++ PKGBUILD 2021-04-24 20:41:18 UTC (rev 923741)
@@ -1,49 +1,39 @@
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
# Contributor: Sébastien Luttringer <seblu at aur.archlinux.org>
-pkgbase=python-sqlalchemy
-pkgname=('python-sqlalchemy' 'python2-sqlalchemy')
-pkgver=1.3.23
+pkgname=python-sqlalchemy
+pkgver=1.4.11
pkgrel=1
-arch=('x86_64') # python2 package contain .so
+arch=('x86_64')
url="https://www.sqlalchemy.org/"
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-xdist' 'python2-pytest-xdist' 'python-mock' 'python2-mock')
+pkgdesc='Python SQL toolkit and Object Relational Mapper'
+depends=('python')
+optdepends=('python-psycopg2: connect to PostgreSQL database')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-xdist' 'python-mock')
source=("https://pypi.io/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz"{,.asc})
validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1')
-sha512sums=('dcd1a0878fd58ee49691bb7e8a2571cb40cc942380a4fe0e66d3abb1723830f178e7b3944c5c2d69bd3aaff04cd2ca171bbabbe34f59f54bcf4b9ee2782f9570'
+sha512sums=('28d5da109d754183e7f1887c652c47cd7162afec285a44ed6bc51566dc40d43cdb8cd1794f93f31b2e085488025f04243613d500936c220aaab3aedb75fb6dcd'
'SKIP')
prepare() {
sed -i '/warnings.filterwarnings("error", category=DeprecationWarning)/a \ warnings.filterwarnings("ignore", category=DeprecationWarning, message="Creating a LegacyVersion has been deprecated and will be removed in the next major release")' \
SQLAlchemy-$pkgver/lib/sqlalchemy/testing/warnings.py
-
- cp -a SQLAlchemy-$pkgver SQLAlchemy2-$pkgver
}
build() {
cd "$srcdir"/SQLAlchemy-$pkgver
python setup.py build
-
- cd "$srcdir"/SQLAlchemy2-$pkgver
- python2 setup.py build
}
check() {
cd "$srcdir"/SQLAlchemy-$pkgver
python setup.py pytest
-
- cd "$srcdir"/SQLAlchemy2-$pkgver
- python2 setup.py pytest
}
-package_python-sqlalchemy() {
- pkgdesc='Python SQL toolkit and Object Relational Mapper'
- depends=('python')
- optdepends=('python-psycopg2: connect to PostgreSQL database')
-
+package() {
cd SQLAlchemy-$pkgver
python setup.py install --root="${pkgdir}"
install -D -m644 LICENSE \
@@ -50,15 +40,4 @@
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-package_python2-sqlalchemy() {
- pkgdesc='Python 2 SQL toolkit and Object Relational Mapper'
- depends=('python2')
- optdepends=('python2-psycopg2: connect to PostgreSQL database')
-
- cd SQLAlchemy2-$pkgver
- python2 setup.py install --root="$pkgdir"
- install -D -m644 LICENSE \
- "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
# vim:set ts=2 sw=2 ft=sh et:
More information about the arch-commits
mailing list