[arch-commits] Commit in python-toml/repos/community-any (4 files)

Antonio Rojas arojas at gemini.archlinux.org
Wed Dec 15 12:29:55 UTC 2021


    Date: Wednesday, December 15, 2021 @ 12:29:55
  Author: arojas
Revision: 1073009

archrelease: copy trunk to community-any

Added:
  python-toml/repos/community-any/PKGBUILD
    (from rev 1073008, python-toml/trunk/PKGBUILD)
  python-toml/repos/community-any/python-toml-0.10.1-install_type_hints.patch
    (from rev 1073008, python-toml/trunk/python-toml-0.10.1-install_type_hints.patch)
Deleted:
  python-toml/repos/community-any/PKGBUILD
  python-toml/repos/community-any/python-toml-0.10.1-install_type_hints.patch

---------------------------------------------+
 PKGBUILD                                    |  109 +++++++++++---------------
 python-toml-0.10.1-install_type_hints.patch |   22 ++---
 2 files changed, 59 insertions(+), 72 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-15 12:29:46 UTC (rev 1073008)
+++ PKGBUILD	2021-12-15 12:29:55 UTC (rev 1073009)
@@ -1,61 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-_name=toml
-pkgbase=python-toml
-pkgname=('python-toml' 'python2-toml')
-pkgver=0.10.2
-pkgrel=6
-pkgdesc="A Python library for parsing and creating TOML"
-arch=('any')
-url="https://github.com/uiri/toml"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-numpy' 'python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
-        "${pkgbase}-0.10.1-install_type_hints.patch")
-sha256sums=('b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f'
-            '7597ca115ba497797cf7c1330f5e93146ff5a924ef3bc331a8e77da12ee880cf')
-b2sums=('a613d5e86fc77279f2d7b130309627eed1cab3a65fe8647cb1dc3e58d09a9d58c078472638f06f45394b00c142bcb2bc75e9c0c649d58aade2f4f6bdab23f12e'
-        '23449773cb0c7004d6c367c4cef666561e16fcd38166d17428a8192f6649bdfa76277f20bd4662f7571bc020fba6e5614e8f7dcf8502d18eb1e0ede6cb3ddde2')
-
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgbase-$pkgver"
-  cd "$pkgbase-$pkgver"
-  patch -Np1 -i ../"${pkgbase}-0.10.1-install_type_hints.patch"
-}
-
-build() {
-  cd "$pkgbase-$pkgver"
-  python setup.py build
-  python2 setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="../build/lib/:${PYTHONPATH}"
-  # disable useless tests
-  pytest -v tests -k 'not test_invalid_tests and not test_valid_tests'
-}
-
-package_python-toml() {
-  cd "$pkgname-$pkgver"
-  depends=('python')
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
-package_python2-toml() {
-  cd "$pkgbase-$pkgver"
-  depends=('python2')
-  python2 setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --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-toml/repos/community-any/PKGBUILD (from rev 1073008, python-toml/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-15 12:29:55 UTC (rev 1073009)
@@ -0,0 +1,48 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=toml
+pkgname=python-toml
+pkgver=0.10.2
+pkgrel=7
+pkgdesc="A Python library for parsing and creating TOML"
+arch=('any')
+url="https://github.com/uiri/toml"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-numpy' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+        "${pkgname}-0.10.1-install_type_hints.patch")
+sha256sums=('b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f'
+            '7597ca115ba497797cf7c1330f5e93146ff5a924ef3bc331a8e77da12ee880cf')
+b2sums=('a613d5e86fc77279f2d7b130309627eed1cab3a65fe8647cb1dc3e58d09a9d58c078472638f06f45394b00c142bcb2bc75e9c0c649d58aade2f4f6bdab23f12e'
+        '23449773cb0c7004d6c367c4cef666561e16fcd38166d17428a8192f6649bdfa76277f20bd4662f7571bc020fba6e5614e8f7dcf8502d18eb1e0ede6cb3ddde2')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  patch -Np1 -i ../"${pkgname}-0.10.1-install_type_hints.patch"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="../build/lib/:${PYTHONPATH}"
+  # disable useless tests
+  pytest -v tests -k 'not test_invalid_tests and not test_valid_tests'
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --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-toml-0.10.1-install_type_hints.patch
===================================================================
--- python-toml-0.10.1-install_type_hints.patch	2021-12-15 12:29:46 UTC (rev 1073008)
+++ python-toml-0.10.1-install_type_hints.patch	2021-12-15 12:29:55 UTC (rev 1073009)
@@ -1,11 +0,0 @@
-diff -ruN a/setup.py b/setup.py
---- a/setup.py	2020-01-03 20:37:49.000000000 +0000
-+++ b/setup.py	2020-09-13 17:38:30.016905954 +0000
-@@ -16,6 +16,7 @@
-     author_email="uiri at xqz.ca",
-     url="https://github.com/uiri/toml",
-     packages=['toml'],
-+    package_data={'toml': ['*.pyi', '**/*.pyi']},
-     license="MIT",
-     long_description=readme_string,
-     python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*",

Copied: python-toml/repos/community-any/python-toml-0.10.1-install_type_hints.patch (from rev 1073008, python-toml/trunk/python-toml-0.10.1-install_type_hints.patch)
===================================================================
--- python-toml-0.10.1-install_type_hints.patch	                        (rev 0)
+++ python-toml-0.10.1-install_type_hints.patch	2021-12-15 12:29:55 UTC (rev 1073009)
@@ -0,0 +1,11 @@
+diff -ruN a/setup.py b/setup.py
+--- a/setup.py	2020-01-03 20:37:49.000000000 +0000
++++ b/setup.py	2020-09-13 17:38:30.016905954 +0000
+@@ -16,6 +16,7 @@
+     author_email="uiri at xqz.ca",
+     url="https://github.com/uiri/toml",
+     packages=['toml'],
++    package_data={'toml': ['*.pyi', '**/*.pyi']},
+     license="MIT",
+     long_description=readme_string,
+     python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*",



More information about the arch-commits mailing list