Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/editdistance-s/
Date: Fri, 16 Apr 2021 15:35:28
Message-Id: 1618587308.27d9b6b0cdb1da4c5408994a475174823b7c6d5f.marecki@gentoo
1 commit: 27d9b6b0cdb1da4c5408994a475174823b7c6d5f
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 16 13:35:50 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 16 15:35:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27d9b6b0
7
8 dev-python/editdistance-s: new package
9
10 Second-order dependency of pre-commit.
11
12 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
13
14 dev-python/editdistance-s/Manifest | 1 +
15 .../editdistance-s/editdistance-s-1.0.0.ebuild | 21 +++++++++++++++++++++
16 dev-python/editdistance-s/metadata.xml | 20 ++++++++++++++++++++
17 3 files changed, 42 insertions(+)
18
19 diff --git a/dev-python/editdistance-s/Manifest b/dev-python/editdistance-s/Manifest
20 new file mode 100644
21 index 00000000000..46fd7e95413
22 --- /dev/null
23 +++ b/dev-python/editdistance-s/Manifest
24 @@ -0,0 +1 @@
25 +DIST editdistance-s-1.0.0.tar.gz 5408 BLAKE2B 5420dff814de4d61f7c36c88113c568562a174205d8a4ff2b52b60e797f7459d95fd2a909b70911cfd7d0d67096a3844888bb88866980a2c43f8967a96ef4c55 SHA512 148234a38f54f70a2d6bc64f6a166a8954c79fb89d5f5c0bf3f041fe60056332901484a0626e218a72ae992f476305cbb662dfa0acdda794727fc682c569d718
26
27 diff --git a/dev-python/editdistance-s/editdistance-s-1.0.0.ebuild b/dev-python/editdistance-s/editdistance-s-1.0.0.ebuild
28 new file mode 100644
29 index 00000000000..bdbb49dbf8e
30 --- /dev/null
31 +++ b/dev-python/editdistance-s/editdistance-s-1.0.0.ebuild
32 @@ -0,0 +1,21 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{8..9} )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Fast implementation of edit (Levenshtein) distance"
43 +HOMEPAGE="https://github.com/asottile/editdistance-s"
44 +SRC_URI="https://github.com/asottile/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64"
49 +
50 +RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]"
51 +DEPEND="${RDEPEND}"
52 +
53 +distutils_enable_tests pytest
54
55 diff --git a/dev-python/editdistance-s/metadata.xml b/dev-python/editdistance-s/metadata.xml
56 new file mode 100644
57 index 00000000000..4bb618ca715
58 --- /dev/null
59 +++ b/dev-python/editdistance-s/metadata.xml
60 @@ -0,0 +1,20 @@
61 +<?xml version="1.0" encoding="UTF-8"?>
62 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
63 +<pkgmetadata>
64 + <maintainer type="person">
65 + <email>marecki@g.o</email>
66 + <name>Marek Szuba</name>
67 + </maintainer>
68 + <longdescription>
69 + This is a fork of "editdistance" with the following changes:
70 + * __hash__ based support is removed as it makes incorrect assumptions
71 + * only strings (type str) are supported
72 + * cffi replaces cython (so abi3 wheels can be produced)
73 + * the module is renamed to editdistance_s
74 + * the public api does not contain eval() (only distance())
75 + </longdescription>
76 + <upstream>
77 + <remote-id type="github">asottile/editdistance-s</remote-id>
78 + <remote-id type="pypi">editdistance-s</remote-id>
79 + </upstream>
80 +</pkgmetadata>