Gentoo Archives: gentoo-commits

From: Nicola Smaniotto <smaniotto.nicola@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/urlmatch/
Date: Fri, 08 Oct 2021 19:46:18
Message-Id: 1633722337.b24dc12afb80100f3b46142529d21c3a1145dd9d.smaniotto.nicola@gentoo
1 commit: b24dc12afb80100f3b46142529d21c3a1145dd9d
2 Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
3 AuthorDate: Fri Oct 8 19:40:51 2021 +0000
4 Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
5 CommitDate: Fri Oct 8 19:45:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b24dc12a
7
8 dev-python/urlmatch: new package (1.0.1)
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com>
12
13 dev-python/urlmatch/Manifest | 1 +
14 dev-python/urlmatch/metadata.xml | 8 ++++++++
15 dev-python/urlmatch/urlmatch-1.0.1.ebuild | 27 +++++++++++++++++++++++++++
16 3 files changed, 36 insertions(+)
17
18 diff --git a/dev-python/urlmatch/Manifest b/dev-python/urlmatch/Manifest
19 new file mode 100644
20 index 000000000..6c7d55d3c
21 --- /dev/null
22 +++ b/dev-python/urlmatch/Manifest
23 @@ -0,0 +1 @@
24 +DIST urlmatch-1.0.1.tar.gz 4852 BLAKE2B 564784d2d6555cab8193136e7626e7c2f9766823faf69de50985a140c72e707b89adf8916915dc4f3e94d389638873a272f6d78b867ae391791dbd9b4fa4c4ae SHA512 f5dc2bae59db0e193de4e5ec5bf7f074da60b925a09d8f466cf29f73ca7bebbe59a63c65d3b361e9dc475aac528f7990ec23fdc73fc24de260fe9f2447e287e0
25
26 diff --git a/dev-python/urlmatch/metadata.xml b/dev-python/urlmatch/metadata.xml
27 new file mode 100644
28 index 000000000..cbe3c6a53
29 --- /dev/null
30 +++ b/dev-python/urlmatch/metadata.xml
31 @@ -0,0 +1,8 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>smaniotto.nicola@×××××.com</email>
37 + <name>Nicola Smaniotto</name>
38 + </maintainer>
39 +</pkgmetadata>
40
41 diff --git a/dev-python/urlmatch/urlmatch-1.0.1.ebuild b/dev-python/urlmatch/urlmatch-1.0.1.ebuild
42 new file mode 100644
43 index 000000000..f94bde28e
44 --- /dev/null
45 +++ b/dev-python/urlmatch/urlmatch-1.0.1.ebuild
46 @@ -0,0 +1,27 @@
47 +# Copyright 2021 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=8
51 +
52 +PYTHON_COMPAT=( python3_{8..9} )
53 +
54 +inherit distutils-r1
55 +
56 +DESCRIPTION="A Python library for easily pattern matching wildcard URLs"
57 +HOMEPAGE="https://github.com/jessepollak/urlmatch"
58 +SRC_URI="https://github.com/jessepollak/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
59 +
60 +LICENSE="Apache-2.0"
61 +SLOT="0"
62 +KEYWORDS="~amd64"
63 +
64 +distutils_enable_tests unittest
65 +
66 +src_prepare(){
67 + sed 's/find_packages()/find_packages(exclude=["tests*"])/' -i setup.py || die
68 + default
69 +}
70 +
71 +python_test(){
72 + eunittest tests/ "*.py"
73 +}