summaryrefslogtreecommitdiff
path: root/dev-python/toml
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
commit7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch)
tree4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/toml
parentb284a3168fa91a038925d2ecf5e4791011ea5e7d (diff)
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/toml')
-rw-r--r--dev-python/toml/Manifest6
-rw-r--r--dev-python/toml/files/toml-0.10.0-depricationwarning.patch19
-rw-r--r--dev-python/toml/toml-0.10.0-r1.ebuild43
-rw-r--r--dev-python/toml/toml-0.10.0.ebuild2
4 files changed, 68 insertions, 2 deletions
diff --git a/dev-python/toml/Manifest b/dev-python/toml/Manifest
index c64f87630d09..e136eded3546 100644
--- a/dev-python/toml/Manifest
+++ b/dev-python/toml/Manifest
@@ -1,3 +1,7 @@
+AUX toml-0.10.0-depricationwarning.patch 586 BLAKE2B 6da04c9641095a4d0cd2b45ac09c4ed09b9f93990267867738ae8a288acb4be1d49cd1bcd5ee1365636df6b25b458dda8ece175cbefbe56ebbe9e1085e093ccb SHA512 64507e993b7b853aa06ab2fd31838aeaf5600125c2c11cfe6ca82e07f140f8aa40d0de61a6800ce8bc50dcfebd0888fac703035fea4a5ccc5f3e725121cad3e6
+DIST toml-0.10.0-1.tar.gz 20396 BLAKE2B 3ddcb4cadfc68239cfcb34938a785b27326991ea89966aa6ba3ff2c8a430099664dce1474adf453f2d372b0d149c43584bce9c7abee4c8cbec3126adb3d2ab95 SHA512 ebad9d87606cf66f3db5abb2b0abd333d5536037446df131bda3f8138c33a6495a8923fc583328c27632d39448790e0e6788745d8acd7d600ea3ce57cb7dbd45
DIST toml-0.10.0.tar.gz 16719 BLAKE2B f7863e9cf0ca5185a59d64010346b4b960c40bc3711d4cbd1ad907d15da823319b748df1a5536465e9f36428bf1599624ede3b1fa68cb420684a52ba137227c9 SHA512 26f26c38ce9cd48305218c2c34c5a5407b00aefc25a933f044bb7be22c23cfdfa3b8cf2da952d17760c4b9038df62e405fa039cc7b63dd3e94c9c312f04f9182
-EBUILD toml-0.10.0.ebuild 590 BLAKE2B 7c2f6117af0313e100b1f3e1b796bdeb59d62b96dd624be8bea9e06420e443fd83f2703ab8b51646c1e420e06624e20545b001a1e3b483fd0360e62df3e81f34 SHA512 c25b56c710a4f05893de4f33ee59129c076e002afd7d91dcda77e29e12abe5ce6329e18a19d8acdbf1e18d80e5380c404fccf1e66f7234a765c3658375c788e8
+DIST toml-test-39bb76d631ba103a94b377aaf52c979456677fb1.tar.gz 19304 BLAKE2B 5bb73ff91146ee85f6844132cdfc06673cdb384810c6c978cfc9f8ce6ba8b1607a0dc2d03aa868791d5fd33d00ebac96a4cd57a98948a3ef9318a52417904eda SHA512 931ba91b77da576979bde290c99f6cb1a2eeec3aee55b5041b0216094c584934d560487d329df21caa64b405ec50b4dd417dc910bbe4f15b1440686efc58da29
+EBUILD toml-0.10.0-r1.ebuild 1161 BLAKE2B e9a5c5003f3d0852e3c2efd59fc31d527798a5d54b446457f5121d2105cc67b9e874d99ba50273c393d40f1060ebdb882278ce03840c028d94e9845121d635be SHA512 35d29750cb6dd1ef4077c8a64b766199364a6db877c6b9f932cf8da28fdf1b86fd3d1788d70fd0578c9c41f0b9c87148eac4d15e9f655199faffc2f1e0dc21dd
+EBUILD toml-0.10.0.ebuild 596 BLAKE2B 7a23a9b2d4d7c21ef20f0ae101b9ab6eea08d961e146ba52134c646eb7fca2b66393f2c7c38f57d16526b49feee1d204092b45057e4061cf1aab9718bad3119e SHA512 eaf6d66414bd2d153be16512e0dfe8fccb58fe6195d7e924ef3b95a4a108a1a97f1681ecaf935169270d83cc443b348c5a05c02df5592ecf2ef9d0f2cf733f16
MISC metadata.xml 324 BLAKE2B d9ee23ed157896fac55ab5bddc1cf299572ad05d4b1de97749c0ae196f01515272feea6cbb3e93a71ad908cfb1cdac70a702b2d94b6ef2a74ebc25b044b5c049 SHA512 d5578a5e1e35bb8b263dba80e0f56ee663bfc6fafe052a82889e3d1551a5143345645fcb09107b5115f78a1d40dd4b2a50609a2df096cf870ec6409764d7715a
diff --git a/dev-python/toml/files/toml-0.10.0-depricationwarning.patch b/dev-python/toml/files/toml-0.10.0-depricationwarning.patch
new file mode 100644
index 000000000000..6afcea90a5b1
--- /dev/null
+++ b/dev-python/toml/files/toml-0.10.0-depricationwarning.patch
@@ -0,0 +1,19 @@
+commit 660dd2d57278e6f608bbaedcaaa4529ace557e41
+Author: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
+Date: Mon Oct 8 23:32:53 2018 +0900
+
+ Change to avoid "DeprecationWarning: invalid escape sequence"
+
+diff --git a/toml/decoder.py b/toml/decoder.py
+index bed551b..aa468f2 100644
+--- a/toml/decoder.py
++++ b/toml/decoder.py
+@@ -44,7 +44,7 @@ except NameError:
+ FNFError = IOError
+
+
+-TIME_RE = re.compile("([0-9]{2}):([0-9]{2}):([0-9]{2})(\.([0-9]{3,6}))?")
++TIME_RE = re.compile(r"([0-9]{2}):([0-9]{2}):([0-9]{2})(\.([0-9]{3,6}))?")
+
+
+ class TomlDecodeError(ValueError):
diff --git a/dev-python/toml/toml-0.10.0-r1.ebuild b/dev-python/toml/toml-0.10.0-r1.ebuild
new file mode 100644
index 000000000000..c0d855b0f8b4
--- /dev/null
+++ b/dev-python/toml/toml-0.10.0-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} )
+
+inherit distutils-r1
+
+TOML_TEST_VER="39bb76d631ba103a94b377aaf52c979456677fb1"
+
+DESCRIPTION="Python library for handling TOML files"
+HOMEPAGE="https://github.com/uiri/toml"
+SRC_URI="https://github.com/uiri/${PN}/archive/${PV}.tar.gz -> ${P}-1.tar.gz
+ test? ( https://github.com/BurntSushi/toml-test/archive/${TOML_TEST_VER}.tar.gz -> toml-test-${TOML_TEST_VER}.tar.gz )"
+IUSE="test"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~sparc ~x86"
+
+# peculiar testing depending on https://github.com/BurntSushi/toml-test. Not
+# particularly worth the trouble.
+#RESTRICT="test"
+
+BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' 'python3*') )"
+
+PATCHES=(
+ "${FILESDIR}/toml-0.10.0-depricationwarning.patch"
+)
+
+DOCS=( README.rst )
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ if use test; then
+ mv "${WORKDIR}/toml-test-${TOML_TEST_VER#v}" "${S}/toml-test" || die
+ fi
+
+ distutils-r1_python_prepare_all
+}
diff --git a/dev-python/toml/toml-0.10.0.ebuild b/dev-python/toml/toml-0.10.0.ebuild
index bc40888db0b3..b1d58275a40d 100644
--- a/dev-python/toml/toml-0.10.0.ebuild
+++ b/dev-python/toml/toml-0.10.0.ebuild
@@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~mips ~sparc ~x86"
# peculiar testing depending on https://github.com/BurntSushi/toml-test. Not
# particularly worth the trouble.