[arch-commits] Commit in python-toml/trunk (2 files)

David Runge dvzrv at archlinux.org
Sun Sep 13 20:18:38 UTC 2020


    Date: Sunday, September 13, 2020 @ 20:18:38
  Author: dvzrv
Revision: 705248

upgpkg: python-toml 0.10.1-2: Rebuild to install type hints (FS#67854).

Added:
  python-toml/trunk/python-toml-0.10.1-install_type_hints.patch
Modified:
  python-toml/trunk/PKGBUILD

---------------------------------------------+
 PKGBUILD                                    |   13 ++++++++++---
 python-toml-0.10.1-install_type_hints.patch |   11 +++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-13 20:18:26 UTC (rev 705247)
+++ PKGBUILD	2020-09-13 20:18:38 UTC (rev 705248)
@@ -4,7 +4,7 @@
 pkgbase=python-toml
 pkgname=('python-toml' 'python2-toml')
 pkgver=0.10.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A Python library for parsing and creating TOML"
 arch=('any')
 url="https://github.com/uiri/toml"
@@ -11,11 +11,18 @@
 license=('MIT')
 makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python-numpy' 'python-pytest' 'python2-numpy' 'python2-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('9dc813f84b56bee6519c70efe49a834d6695c82d429f0b7cc6e6153a1fb14d3fb627dea24df2d2664354f27108389d51475609272d59fc7e4b64a2c17d74f33f')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+        "${pkgbase}-0.10.1-install_type_hints.patch")
+sha512sums=('9dc813f84b56bee6519c70efe49a834d6695c82d429f0b7cc6e6153a1fb14d3fb627dea24df2d2664354f27108389d51475609272d59fc7e4b64a2c17d74f33f'
+            '000fd1416341567a1828034f6e3844f7c5436e2b89f06b0ffa2567fc86d3b72dd4a8085d26d4366764446dfb050cfececaada4ca53f9c355c62aafb26ea87be4')
+b2sums=('ef607093fae3a148c7f904a2281b8218855aad6d8af7a54eda2c7c835e8a86719b240a5486f761850e4d80ef1c1711ef33077fa6fd49eeb903faeae550d8941b'
+        '23449773cb0c7004d6c367c4cef666561e16fcd38166d17428a8192f6649bdfa76277f20bd4662f7571bc020fba6e5614e8f7dcf8502d18eb1e0ede6cb3ddde2')
 
 prepare() {
   mv -v "${_name}-$pkgver" "$pkgbase-$pkgver"
+  cd "$pkgbase-$pkgver"
+  patch -Np1 -i ../"${pkgbase}-0.10.1-install_type_hints.patch"
+  mv -v "${_name}.pyi" "${_name}/__init__.pyi"
 }
 
 build() {

Added: 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	2020-09-13 20:18:38 UTC (rev 705248)
@@ -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