[arch-commits] Commit in python-fastnumbers/repos/community-staging-x86_64 (3 files)
David Runge
dvzrv at archlinux.org
Sat Nov 21 23:48:16 UTC 2020
Date: Saturday, November 21, 2020 @ 23:48:16
Author: dvzrv
Revision: 758708
archrelease: copy trunk to community-staging-x86_64
Added:
python-fastnumbers/repos/community-staging-x86_64/PKGBUILD
(from rev 758707, python-fastnumbers/trunk/PKGBUILD)
Deleted:
python-fastnumbers/repos/community-staging-x86_64/PKGBUILD
python-fastnumbers/repos/community-staging-x86_64/python-fastnumbers-3.0.0-python3.9.patch
------------------------------------------+
PKGBUILD | 89 +++++++++++++----------------
python-fastnumbers-3.0.0-python3.9.patch | 13 ----
2 files changed, 41 insertions(+), 61 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-21 23:48:09 UTC (rev 758707)
+++ PKGBUILD 2020-11-21 23:48:16 UTC (rev 758708)
@@ -1,48 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=fastnumbers
-pkgname=python-fastnumbers
-pkgver=3.0.0
-pkgrel=2
-pkgdesc="Super-fast and clean conversions to numbers"
-arch=('x86_64')
-url="https://github.com/SethMMorton/fastnumbers"
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest' 'python-hypothesis')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
- "${pkgname}-3.0.0-python3.9.patch")
-sha512sums=('31a0e1bfd503204185b26d29172e1f6ae9f6a19328ce2b4eb93e50335e22f81802c5c3f0a42b242ce914bf403c7cfc279166c33a4843e963329b666cd949c3b0'
- 'eda461a1e062c1fc1624d49ef77fb0ca4f770b461086ac283e7b7fce1fbfb29a7bbe893d0fe29b1b3d787da0b53b27aefcc2fa97bfb3fc04319ea5634b932ef3')
-b2sums=('2fab831be7054eca8b1d0fd4a2ae5188d6ed3d124c0e4467fe2443ad3300380f494b6901450a12512d9ac075b832bf9dfc546be2e3d288c6b824cd9ffbb5ac90'
- 'bacb2cc5d28b2e7af591022899711bc18da96477cbf4c9b9925159f6afe29e282c023cb2d3f819ccf79da7e406f83891db14aac4ac567188da2f18cc42a52b74')
-
-prepare() {
- mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
- cd "$pkgname-$pkgver"
- # add fix for (now) non-public function:
- # https://github.com/SethMMorton/fastnumbers/issues/43
- patch -Np1 -i ../"${pkgname}-3.0.0-python3.9.patch"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$pkgname-$pkgver"
- local _py3_ver=$(python --version | cut -d " " -f2)
- export PYTHONPATH="build/lib.linux-$CARCH-${_py3_ver%"."*}:${PYTHONPATH}"
- pytest -v
-}
-
-package() {
- cd "$pkgname-$pkgver"
- python setup.py install --skip-build \
- --optimize=1 \
- --root="${pkgdir}"
- install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
Copied: python-fastnumbers/repos/community-staging-x86_64/PKGBUILD (from rev 758707, python-fastnumbers/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-21 23:48:16 UTC (rev 758708)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=fastnumbers
+pkgname=python-fastnumbers
+pkgver=3.1.0
+pkgrel=2
+pkgdesc="Super-fast and clean conversions to numbers"
+arch=('x86_64')
+url="https://github.com/SethMMorton/fastnumbers"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-hypothesis')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('b58b6cac12a04f038707533040bff178eeb010cb3c1bc19ab9ddad534553c6aa8bb4bfea666a6f7fb9867b41044a62ada6c2be6a8237abdcc4fa49118acfd9fe')
+b2sums=('2069866b60a60b5c807b0d878f1b0c691a81ffaf73c5723fc89ffa2b3eb6e4027a8716b2002eeb1e785874e8992fb7554563a229d1457314db19f32f0bd019a8')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ local _py3_ver=$(python --version | cut -d " " -f2)
+ export PYTHONPATH="build/lib.linux-$CARCH-${_py3_ver%"."*}:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --root="${pkgdir}"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
Deleted: python-fastnumbers-3.0.0-python3.9.patch
===================================================================
--- python-fastnumbers-3.0.0-python3.9.patch 2020-11-21 23:48:09 UTC (rev 758707)
+++ python-fastnumbers-3.0.0-python3.9.patch 2020-11-21 23:48:16 UTC (rev 758708)
@@ -1,13 +0,0 @@
-diff -ruN a/include/fastnumbers/numbers.h b/include/fastnumbers/numbers.h
---- a/include/fastnumbers/numbers.h 2020-01-07 05:01:44.000000000 +0100
-+++ b/include/fastnumbers/numbers.h 2020-11-19 20:59:35.905868338 +0100
-@@ -6,6 +6,9 @@
- */
-
- #include <Python.h>
-+#define Py_BUILD_CORE
-+#include <internal/pycore_dtoa.h>
-+#undef Py_BUILD_CORE
- #include <limits.h>
- #include "fastnumbers/fn_bool.h"
- #include "fastnumbers/options.h"
More information about the arch-commits
mailing list