[arch-commits] Commit in python-ujson/repos/community-x86_64 (PKGBUILD PKGBUILD)
Massimiliano Torromeo
mtorromeo at archlinux.org
Mon Mar 9 08:50:06 UTC 2020
Date: Monday, March 9, 2020 @ 08:50:05
Author: mtorromeo
Revision: 592756
archrelease: copy trunk to community-x86_64
Added:
python-ujson/repos/community-x86_64/PKGBUILD
(from rev 592755, python-ujson/trunk/PKGBUILD)
Deleted:
python-ujson/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 119 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 57 insertions(+), 62 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-09 08:49:51 UTC (rev 592755)
+++ PKGBUILD 2020-03-09 08:50:05 UTC (rev 592756)
@@ -1,62 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgbase=python-ujson
-pkgname=('python-ujson' 'python2-ujson')
-_pkgname=ultrajson
-pkgver=1.35
-pkgrel=6
-pkgdesc="Ultra fast JSON encoder and decoder for Python"
-url="https://github.com/esnme/ultrajson"
-arch=('x86_64')
-license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-six' 'python2-six' 'python-pytz' 'python2-pytz' 'python-blist' 'python2-blist' 'python2-unittest2')
-source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/esnme/ultrajson/archive/v${pkgver}.tar.gz)
-sha512sums=('cd5dc8d08e072cf703aec7d689070713f7073c22f13167d7e10a89219179248d6668894c1d742ca658672bb82e1dccbf72e3fd69e036d8cb2ee0ee799d10db11')
-
-prepare() {
- cp -ra ${_pkgname}-${pkgver}{,-py2}
-}
-
-build() {
- (cd ${_pkgname}-${pkgver}
- python setup.py build -b ../buildpy3
- ln -s ../buildpy3 build
- )
- (cd ${_pkgname}-${pkgver}-py2
- python2 setup.py build -b ../buildpy2
- ln -s ../buildpy2 build
- )
-}
-
-check() {
- (cd ${_pkgname}-${pkgver}
- local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
- PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" \
- python tests/tests.py
- )
- (cd ${_pkgname}-${pkgver}-py2
- local PYTHONVERSION="$(python2 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
- PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" \
- python2 tests/tests.py
- )
-}
-
-package_python-ujson() {
- depends=('python')
- cd ${_pkgname}-${pkgver}
- python setup.py install --skip-build -O1 --root="${pkgdir}"
- install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
-}
-
-package_python2-ujson() {
- depends=('python2')
- cd ${_pkgname}-${pkgver}-py2
- python2 setup.py install --skip-build -O1 --root="${pkgdir}"
- install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
-}
-
-# vim: ts=2 sw=2 et:
Copied: python-ujson/repos/community-x86_64/PKGBUILD (from rev 592755, python-ujson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-09 08:50:05 UTC (rev 592756)
@@ -0,0 +1,57 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-ujson
+pkgname=('python-ujson' 'python2-ujson')
+_pkgname=ultrajson
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="Ultra fast JSON encoder and decoder for Python"
+url="https://github.com/esnme/ultrajson"
+arch=('x86_64')
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pip' 'python2-pip')
+checkdepends=('python-six' 'python-pytest')
+source=(https://github.com/esnme/ultrajson/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('ae70b3560a04b7b60a7bf640745aa6505e222d09f8719d5b328a612ff5194e57ee890e80c83be98887f11db97d326c584c8af3464b289179385b0635c6fb047f')
+
+prepare() {
+ sed '/setup_requires=\["setuptools_scm"\],/d' -i ${_pkgname}-${pkgver}/setup.py
+ sed "s/{version}/$pkgver/" ${_pkgname}-${pkgver}/python/version_template.h > ${_pkgname}-${pkgver}/python/version.h
+ cp -ra ${_pkgname}-${pkgver}{,-py2}
+}
+
+build() {
+ (cd ${_pkgname}-${pkgver}
+ python setup.py build -b ../buildpy3
+ ln -s ../buildpy3 build
+ )
+ (cd ${_pkgname}-${pkgver}-py2
+ python2 setup.py build -b ../buildpy2
+ ln -s ../buildpy2 build
+ )
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+ local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+ PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" pytest
+}
+
+package_python-ujson() {
+ depends=('python')
+ cd ${_pkgname}-${pkgver}
+ python setup.py install --skip-build -O1 --root="${pkgdir}"
+ install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+package_python2-ujson() {
+ depends=('python2')
+ cd ${_pkgname}-${pkgver}-py2
+ python2 setup.py install --skip-build -O1 --root="${pkgdir}"
+ install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list