diff options
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 52 |
3 files changed, 37 insertions, 50 deletions
@@ -1,30 +1,19 @@ pkgbase = python-ipython-sql - pkgdesc = Issue SQL commands from IPython. - pkgver = 0.3.9 + pkgdesc = RDBMS access via IPython + pkgver = 0.4.0 pkgrel = 1 url = https://pypi.python.org/pypi/ipython-sql arch = any - license = custom:PYTHON - makedepends = ipython - makedepends = python-sqlalchemy - makedepends = python-prettytable - makedepends = python-sqlparse - makedepends = ipython2 - makedepends = python2-sqlalchemy - makedepends = python2-prettytable - makedepends = python2-sqlparse - source = https://files.pythonhosted.org/packages/source/i/ipython-sql/ipython-sql-0.3.9.tar.gz - md5sums = 69407492ac7fcb92520e10d24b3b3194 - -pkgname = python-ipython-sql + license = MIT depends = ipython depends = python-sqlalchemy depends = python-prettytable depends = python-sqlparse + depends = python-six + optdepends = python-pandas: DataFrame support + optdepends = python-pymysql: connect to MySQL database + optdepends = python-psycopg2: connect to PostgreSQL database + source = https://files.pythonhosted.org/packages/source/i/ipython-sql/ipython-sql-0.4.0.tar.gz + sha256sums = 3e888e59bf57277cbd6f383cb232858b2d7c71219e5749257128f16d9857e46c -pkgname = python2-ipython-sql - depends = ipython2 - depends = python2-sqlalchemy - depends = python2-prettytable - depends = python2-sqlparse - +pkgname = python-ipython-sql diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..a8e6ea7d83f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!/.gitignore +!/.SRCINFO +!/PKGBUILD @@ -1,43 +1,37 @@ -# Contributor: Lex Black <autumn-wind@web.de> +# Maintainer: a821 +# Contributor: Lex Black <autumn-wind - web - de> # Contributor: Jonathan Kotta <jpkotta at gmail dot com> -_name=ipython-sql -pkgbase=python-ipython-sql -pkgname=(python-ipython-sql python2-ipython-sql) -pkgver=0.3.9 +pkgname=python-ipython-sql +pkgver=0.4.0 pkgrel=1 -pkgdesc="Issue SQL commands from IPython." +pkgdesc="RDBMS access via IPython" arch=('any') url="https://pypi.python.org/pypi/ipython-sql" -license=('custom:PYTHON') -makedepends=('ipython' 'python-sqlalchemy' 'python-prettytable' 'python-sqlparse') -makedepends+=('ipython2' 'python2-sqlalchemy' 'python2-prettytable' 'python2-sqlparse') -source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) -md5sums=('69407492ac7fcb92520e10d24b3b3194') - +license=('MIT') +depends=('ipython' 'python-sqlalchemy' 'python-prettytable' 'python-sqlparse' 'python-six') +source=("https://files.pythonhosted.org/packages/source/i/${pkgname#python-}/${pkgname#python-}-$pkgver.tar.gz") +sha256sums=('3e888e59bf57277cbd6f383cb232858b2d7c71219e5749257128f16d9857e46c') +optdepends=( + 'python-pandas: DataFrame support' + 'python-pymysql: connect to MySQL database' + 'python-psycopg2: connect to PostgreSQL database') prepare() { - cp -a ${_name}-${pkgver}{,-python2} + # fix missing file + cd "${pkgname#python-}-${pkgver}" + test -f NEWS.rst || touch NEWS.rst } build() { - cd "${_name}-${pkgver}" - python setup.py build - - cd "${srcdir}/${_name}-${pkgver}-python2" - python2 setup.py build + cd "${pkgname#python-}-${pkgver}" + python setup.py build } -package_python-ipython-sql() { - depends=('ipython' 'python-sqlalchemy' 'python-prettytable' 'python-sqlparse') - - cd "${_name}-${pkgver}" - python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build +package() { + cd "${pkgname#python-}-${pkgver}" + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" } -package_python2-ipython-sql() { - depends=('ipython2' 'python2-sqlalchemy' 'python2-prettytable' 'python2-sqlparse') - - cd "${_name}-${pkgver}-python2" - python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build -} +# vim: set ts=4 sw=4 et: |