[arch-commits] Commit in python-sqlalchemy/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Mar 5 18:30:56 UTC 2019


    Date: Tuesday, March 5, 2019 @ 18:30:55
  Author: felixonmars
Revision: 437743

archrelease: copy trunk to community-testing-x86_64

Added:
  python-sqlalchemy/repos/community-testing-x86_64/
  python-sqlalchemy/repos/community-testing-x86_64/PKGBUILD
    (from rev 437742, python-sqlalchemy/trunk/PKGBUILD)

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

Copied: python-sqlalchemy/repos/community-testing-x86_64/PKGBUILD (from rev 437742, python-sqlalchemy/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-03-05 18:30:55 UTC (rev 437743)
@@ -0,0 +1,61 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sébastien Luttringer <seblu at aur.archlinux.org>
+
+pkgbase=python-sqlalchemy
+pkgname=('python-sqlalchemy' 'python2-sqlalchemy')
+pkgver=1.3.0
+pkgrel=1
+arch=('x86_64') # python2 package contain .so
+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')
+source=("https://pypi.io/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz"{,.asc})
+validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1')
+sha512sums=('031c912dc8830bab70ebb48b253d47ef949818a9a49f9b8d38a2daed21dd27b295182641158578c4a1bfe4bf065968824430b4f4bf949ffdacb12bb99dae9119'
+            'SKIP')
+
+prepare() {
+  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')
+
+  cd SQLAlchemy-$pkgver
+  python setup.py install --root="${pkgdir}"
+  install -D -m644 LICENSE \
+	  "$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