[arch-commits] Commit in python-ujson/repos/community-x86_64 (PKGBUILD PKGBUILD)
Massimiliano Torromeo
mtorromeo at archlinux.org
Thu Mar 19 18:33:04 UTC 2020
Date: Thursday, March 19, 2020 @ 18:33:04
Author: mtorromeo
Revision: 601054
archrelease: copy trunk to community-x86_64
Added:
python-ujson/repos/community-x86_64/PKGBUILD
(from rev 601053, python-ujson/trunk/PKGBUILD)
Deleted:
python-ujson/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 114 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 57 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-19 18:32:49 UTC (rev 601053)
+++ PKGBUILD 2020-03-19 18:33:04 UTC (rev 601054)
@@ -1,57 +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=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:
Copied: python-ujson/repos/community-x86_64/PKGBUILD (from rev 601053, python-ujson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-19 18:33:04 UTC (rev 601054)
@@ -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.2
+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=('a612f6776ca3d89eb0fbef00a934760ad232242c583d44dbeafd564218fab74ec6d1d0fe7bbade483bb12d9206636f186b890b25b2681336f686a10242a98839')
+
+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