Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/python-gitlab/, dev-vcs/python-gitlab/files/
Date: Tue, 19 Oct 2021 17:41:05
Message-Id: 1634665215.2d1ba039dbf40e3183bb16439ad62e589f9764a9.williamh@gentoo
1 commit: 2d1ba039dbf40e3183bb16439ad62e589f9764a9
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 19 17:39:40 2021 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 19 17:40:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d1ba039
7
8 dev-vcs/python-gitlab: 2.10.1 bump
9
10 Closes: https://bugs.gentoo.org/818784
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
13
14 dev-vcs/python-gitlab/Manifest | 1 +
15 ...python-gitlab-2.10.1-do-not-package-tests.patch | 25 ++++++++++++++
16 dev-vcs/python-gitlab/python-gitlab-2.10.1.ebuild | 39 ++++++++++++++++++++++
17 3 files changed, 65 insertions(+)
18
19 diff --git a/dev-vcs/python-gitlab/Manifest b/dev-vcs/python-gitlab/Manifest
20 index 1a283609216..168103ba5ad 100644
21 --- a/dev-vcs/python-gitlab/Manifest
22 +++ b/dev-vcs/python-gitlab/Manifest
23 @@ -1,2 +1,3 @@
24 +DIST python-gitlab-2.10.1.tar.gz 178899 BLAKE2B 5b0fd1552fca15827d9fa12745d035288c4796abbf3b7aeb9f9191a50800641ce0205f551724d8af9ed572b6ebc98052a2411f07b45c23a762fc1b9f713b3b31 SHA512 ab3ca0039ca5fa0b025ffbbe9ee65b1041d02c869f86e8656f6616d4e1dbc3d20898d5cfffcdf0557ad545c40837e4517bffefdbee9948fb366aba7e22d7eb41
25 DIST python-gitlab-2.5.0.tar.gz 148916 BLAKE2B f870833a01adac08b71dc402bc11ba9c1be19c920735faf04de9bfca3b1a154706da4bc0475437997e3b03d8c9a56977a6691df05b750d64a1f8b964ecd05612 SHA512 7382f9ea2388c6916f3c7e63df137d73f0fdfb3890a8bbb47e766f3476b6febecd1dcbc588445ae1af1b5f17c9a3e6ed9a931fd9fff010c2c37967eab5440824
26 DIST python-gitlab-2.6.0.tar.gz 153577 BLAKE2B 4fa0206faa601061fde257988362eca962c9e20f50e5ad57d602a76618581db646f26b035d4d86b9c460ef75f241fcbcdf360419b2e62ec6f95a664ab237d7d2 SHA512 b63dd4657b44fb484d114ceddc1d67465c17560978a8e6b09a9b14634ae6d80bf864b9b4583ddfc102c27c1082f4a015958c30944a734ec635761af524956fbe
27
28 diff --git a/dev-vcs/python-gitlab/files/python-gitlab-2.10.1-do-not-package-tests.patch b/dev-vcs/python-gitlab/files/python-gitlab-2.10.1-do-not-package-tests.patch
29 new file mode 100644
30 index 00000000000..f1f0c6ca8d3
31 --- /dev/null
32 +++ b/dev-vcs/python-gitlab/files/python-gitlab-2.10.1-do-not-package-tests.patch
33 @@ -0,0 +1,25 @@
34 +From 969dccc084e833331fcd26c2a12ddaf448575ab4 Mon Sep 17 00:00:00 2001
35 +From: Nejc Habjan <hab.nejc@×××××.com>
36 +Date: Fri, 3 Sep 2021 00:28:18 +0200
37 +Subject: [PATCH] fix(build): do not package tests in wheel
38 +
39 +---
40 + setup.py | 2 +-
41 + 1 file changed, 1 insertion(+), 1 deletion(-)
42 +
43 +diff --git a/setup.py b/setup.py
44 +index 6a05a72..589f9a4 100644
45 +--- a/setup.py
46 ++++ b/setup.py
47 +@@ -24,7 +24,7 @@ setup(
48 + author_email="gauvain@××××××××.net",
49 + license="LGPLv3",
50 + url="https://github.com/python-gitlab/python-gitlab",
51 +- packages=find_packages(),
52 ++ packages=find_packages(exclude=["tests*"]),
53 + install_requires=["requests>=2.25.0", "requests-toolbelt>=0.9.1"],
54 + package_data={
55 + "gitlab": ["py.typed"],
56 +--
57 +2.32.0
58 +
59
60 diff --git a/dev-vcs/python-gitlab/python-gitlab-2.10.1.ebuild b/dev-vcs/python-gitlab/python-gitlab-2.10.1.ebuild
61 new file mode 100644
62 index 00000000000..5067288cbfb
63 --- /dev/null
64 +++ b/dev-vcs/python-gitlab/python-gitlab-2.10.1.ebuild
65 @@ -0,0 +1,39 @@
66 +# Copyright 1999-2021 Gentoo Authors
67 +# Distributed under the terms of the GNU General Public License v2
68 +
69 +EAPI=8
70 +PYTHON_COMPAT=( python3_{7,8,9} )
71 +inherit distutils-r1
72 +
73 +DESCRIPTION="Python command line interface to gitlab API"
74 +HOMEPAGE="https://github.com/python-gitlab/python-gitlab/"
75 +
76 +if [[ ${PV} = *9999* ]]; then
77 + EGIT_REPO_URI="https://github.com/python-gitlab/python-gitlab"
78 + inherit git-r3
79 +else
80 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
81 + KEYWORDS="~amd64"
82 +fi
83 +
84 +LICENSE="LGPL-3"
85 +SLOT="0"
86 +IUSE="test"
87 +
88 +BDEPEND="test? (
89 + dev-python/httmock[${PYTHON_USEDEP}]
90 + dev-python/mock[${PYTHON_USEDEP}] )"
91 +
92 +RDEPEND=">=dev-python/requests-2.25.1[${PYTHON_USEDEP}]
93 + >=dev-python/requests-toolbelt-0.9.1[${PYTHON_USEDEP}]"
94 +
95 +PATCHES=(
96 + "${FILESDIR}/${P}"-do-not-package-tests.patch
97 +)
98 +
99 +distutils_enable_tests unittest
100 +
101 +python_install_all() {
102 + distutils-r1_python_install_all
103 + dodoc -r *.rst docs
104 +}