* [gentoo-commits] repo/gentoo:master commit in: dev-python/bert/files/, dev-python/bert/
@ 2018-03-16 11:30 Anthony G. Basile
0 siblings, 0 replies; only message in thread
From: Anthony G. Basile @ 2018-03-16 11:30 UTC (permalink / raw
To: gentoo-commits
commit: 4e2663f68aeaca4ad07451c48a07b05004274c90
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 16 11:29:42 2018 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Mar 16 11:29:42 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e2663f6
dev-python/bert: initial commit
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
dev-python/bert/Manifest | 1 +
dev-python/bert/bert-2.0.0.ebuild | 23 ++++++++++++++++++++++
.../files/bert-2.0.0-remove-basestring-fix.patch | 11 +++++++++++
dev-python/bert/metadata.xml | 12 +++++++++++
4 files changed, 47 insertions(+)
diff --git a/dev-python/bert/Manifest b/dev-python/bert/Manifest
new file mode 100644
index 00000000000..5f94ef5e4f4
--- /dev/null
+++ b/dev-python/bert/Manifest
@@ -0,0 +1 @@
+DIST bert-2.0.0.tar.gz 3503 BLAKE2B 6435177493a822166e2f5e2c461f17deb9553aa3aec8893d15e057da9907ae4949246fb19299a1263905e648e0483d2e4cfeddbd2915f2c0d147a0a2bc62daf0 SHA512 643392ab1f8f0cecad9773846a52d5207f3dfeb431c6934b7cdfa523319c1c2aca4b9f8139d0a52ea759df03163b820adb963e4a21284e579a9d139da9acbeb3
diff --git a/dev-python/bert/bert-2.0.0.ebuild b/dev-python/bert/bert-2.0.0.ebuild
new file mode 100644
index 00000000000..7e1bb786f7a
--- /dev/null
+++ b/dev-python/bert/bert-2.0.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="BERT Serialization Library"
+HOMEPAGE="https://pypi.python.org/pypi/bert"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/basho-erlastic[${PYTHON_USEDEP}]"
+
+RDEPEND=""
+
+PATCHES=( "${FILESDIR}/${P}-remove-basestring-fix.patch" )
diff --git a/dev-python/bert/files/bert-2.0.0-remove-basestring-fix.patch b/dev-python/bert/files/bert-2.0.0-remove-basestring-fix.patch
new file mode 100644
index 00000000000..3854e95cdb3
--- /dev/null
+++ b/dev-python/bert/files/bert-2.0.0-remove-basestring-fix.patch
@@ -0,0 +1,11 @@
+--- a/bert/codec.py 2018-03-07 20:11:38.117925147 -0800
++++ b/bert/codec.py 2018-03-07 20:12:19.681258078 -0800
+@@ -92,7 +92,7 @@
+ return (Atom("bert"), Atom("false"))
+ elif obj is None:
+ return (Atom("bert"), Atom("nil"))
+- elif isinstance(obj, basestring) and not self.__is_ascii(obj):
++ elif isinstance(obj, str) and not self.__is_ascii(obj):
+ return (Atom("bert"), Atom("string"), Atom(self.encoding.upper()), obj.encode(self.encoding))
+ elif isinstance(obj, dict):
+ return (Atom("bert"), Atom("dict"), [(self.convert(k), self.convert(v)) for k, v in obj.items()])
diff --git a/dev-python/bert/metadata.xml b/dev-python/bert/metadata.xml
new file mode 100644
index 00000000000..8d4c44447a1
--- /dev/null
+++ b/dev-python/bert/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">bert</remote-id>
+ <remote-id type="github">samuel/python-bert</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-03-16 11:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-16 11:30 [gentoo-commits] repo/gentoo:master commit in: dev-python/bert/files/, dev-python/bert/ Anthony G. Basile
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox