mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
dev-python/praw: enable py3.11
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST praw-7.6.0.gh.tar.gz 25122812 BLAKE2B 58010c2d2d223e8f64744453eff1416c5b6edd79cc2e3e6916792c60933b635a3272d7933fa885e6ce64663141eaf5b5e4091f5d7320b52e16c05d97f1747434 SHA512 6702936b193542756e1b035fc7b7e2d9c398d44bb1631046af0a06b93833c26cfdae61d58d160e27e1b56b63777eda709e6e6bee2c6e4c76451837a6eead6ac4
|
||||
DIST praw-7.6.1.gh.tar.gz 25083372 BLAKE2B eab92be89585bbe485b4d51c1c3c15def597b3a5cdb1326cf166931e4be22bea2975c76c48c8b673b30945ec5b559efba84d0310eebbdaa2881a37e30351af31 SHA512 91fa6efe0ea56d53ea49df8c1046ff620571d9dc80e6fdc5a5da3651cd24d7553455b62d02db8e37531a7bf34be0fbbc8c9555281b4887b73e9b8758966db55a
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python Reddit API Wrapper"
|
||||
HOMEPAGE="https://pypi.org/project/praw/ https://github.com/praw-dev/praw"
|
||||
SRC_URI="https://github.com/praw-dev/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DOCS=( {AUTHORS,CHANGES,README}.rst SECURITY.md )
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/prawcore-3[${PYTHON_USEDEP}]
|
||||
dev-python/websocket-client[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="test? (
|
||||
dev-python/betamax[${PYTHON_USEDEP}]
|
||||
dev-python/betamax-matchers[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
# TODO: remove in next release
|
||||
EPYTEST_DESELECT=(
|
||||
tests/unit/test_deprecations.py
|
||||
tests/unit/util/test_deprecate_args.py
|
||||
tests/unit/models/reddit/test_submission.py::TestSubmission::test_comment_sort_warning
|
||||
tests/unit/models/reddit/test_submission.py::TestSubmission::test_comment_sort_warning__disabled
|
||||
)
|
||||
|
||||
distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# disable optional dependencies
|
||||
sed "/update_checker/d" -i setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local epytestargs=(
|
||||
# spams deprecation warnings
|
||||
-p no:asyncio
|
||||
)
|
||||
epytest "${epytestargs[@]}"
|
||||
}
|
||||
@@ -1,14 +1,17 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python Reddit API Wrapper"
|
||||
HOMEPAGE="https://pypi.org/project/praw/ https://github.com/praw-dev/praw"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/praw/
|
||||
https://github.com/praw-dev/praw
|
||||
"
|
||||
SRC_URI="https://github.com/praw-dev/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
|
||||
Reference in New Issue
Block a user