From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 36D941581E7 for ; Fri, 26 Apr 2024 13:50:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 393D9E29E5; Fri, 26 Apr 2024 13:50:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10F86E29E5 for ; Fri, 26 Apr 2024 13:50:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0DA7B33FE60 for ; Fri, 26 Apr 2024 13:50:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 61F2A1625 for ; Fri, 26 Apr 2024 13:50:51 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1714139435.1e1af105d943e592e50630ba25dd551060c78396.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/moddb/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/moddb/Manifest dev-python/moddb/moddb-0.11.0.ebuild X-VCS-Directories: dev-python/moddb/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 1e1af105d943e592e50630ba25dd551060c78396 X-VCS-Branch: master Date: Fri, 26 Apr 2024 13:50:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2d8181b9-795d-4505-bd18-a3c0abcc5e8b X-Archives-Hash: e40853fe55195f8c71d05bd2752011c8 commit: 1e1af105d943e592e50630ba25dd551060c78396 Author: Andrew Ammerlaan gentoo org> AuthorDate: Fri Apr 26 13:47:30 2024 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Fri Apr 26 13:50:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e1af105 dev-python/moddb: add 0.11.0 Bug: https://bugs.gentoo.org/921098 Signed-off-by: Andrew Ammerlaan gentoo.org> dev-python/moddb/Manifest | 1 + dev-python/moddb/moddb-0.11.0.ebuild | 52 ++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/dev-python/moddb/Manifest b/dev-python/moddb/Manifest index 65d55f95c952..1b7ff8b138eb 100644 --- a/dev-python/moddb/Manifest +++ b/dev-python/moddb/Manifest @@ -1 +1,2 @@ DIST moddb-0.10.0.gh.tar.gz 14174575 BLAKE2B cffcdb27d3bd43da412d9ce689ba06d59ee013d4b78b75fddc8749243aaa6abb50c576811ef8e8e88c66ff41b578a79daec4ce0dbe56f444c94eeabedb0fef89 SHA512 5b21aea8a76c2b28579dbb3587956042126b65248684c2c6caef43793b8e7dd1d318434783c252ef191ee7832ea9fe1a434797797a9a76804133a53ede7674f9 +DIST moddb-0.11.0.gh.tar.gz 10528613 BLAKE2B 109c1758362e2655209173d581f1234f15725b8d0b25ed8024ecdfc4da45e30530c87fa9b8a19b556f4cfa60549c38bc552751a39a5dad28f04e58f53d1f484f SHA512 fe064fb7b02553d614477f122013c98257c6fd4d428538681ea97706425480d7fb4a25f49b8673dfba706e33766420c930cee1fae0c93a6b3d2f766b609596ca diff --git a/dev-python/moddb/moddb-0.11.0.ebuild b/dev-python/moddb/moddb-0.11.0.ebuild new file mode 100644 index 000000000000..ce605c46602e --- /dev/null +++ b/dev-python/moddb/moddb-0.11.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="Python scrapper to access ModDB mods, games and more as objects" +HOMEPAGE="https://github.com/ClementJ18/moddb" +SRC_URI="https://github.com/ClementJ18/moddb/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Connects to moddb.com +PROPERTIES="test_network" +RESTRICT="test" + +RDEPEND=" + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" + +BDEPEND="test? ( + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] +)" + +EPYTEST_DESELECT=( + # These tests require valid moddb.com login information + "tests/test_base.py::TestLogin::test_login" + "tests/test_client.py::TestClient::test_get_watched" + "tests/test_client.py::TestClient::test_get_updates" + "tests/test_client.py::TestClient::test_posts" + "tests/test_client.py::TestClient::test_friends" + "tests/test_client.py::TestClient::test_messages" +) + +distutils_enable_sphinx docs/source dev-python/sphinx-autodoc-typehints +distutils_enable_tests pytest + +python_test() { + # Dummy moddb.com login information + export USERNAME="portage" + export SENDER_USERNAME="portage" + export PASSWORD="testing" + export SENDER_PASSWORD="testing" + epytest +}