dev-python/fake-useragent: add 1.1.2, clean old

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-02-18 19:44:11 +05:00
parent fcc3374430
commit 6fdcafecfe
4 changed files with 46 additions and 72 deletions

View File

@@ -1 +1 @@
DIST fake-useragent-0.1.11.gh.tar.gz 20989 BLAKE2B affa8cb9c6102076ed19429310ed870d2ebb6f3948ddd12508c80e27648bdcd502c3e5b04e836b0be4ac5e1cd6e400054d5a3d1d9d721298cfa1d9ad4161d6fd SHA512 f73e1348af2694469a22a4cc91e9a5d57cce33b969d016903fc7fb4f91375ea5b24a5835cff38181f53dd92794d5606f52822e06d43801c0442f2b389378b2d2
DIST fake-useragent-1.1.2.gh.tar.gz 80368 BLAKE2B 85a1f26d605389884de9fb8449742944c2600e4711e912432a52e0808e0f62cd225c364e079136e3ed86ce78b0ede02b8f8ec86a7f086bf90271f3b147314955 SHA512 f943e540a341ff8308f251ce35ca1161f78cc5c3e7ad1911343fbdec263772554f17dbd1d4230a416247f60bf92522a7bcd8827b42d05833f2d131c20458f927

View File

@@ -1,57 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Up to date simple useragent faker with real world database"
HOMEPAGE="
https://github.com/hellysmile/fake-useragent
https://pypi.org/project/fake-useragent/
"
SRC_URI="https://github.com/hellysmile/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/appdirs[${PYTHON_USEDEP}]
dev-python/decorator[${PYTHON_USEDEP}]
dev-python/ipdb[${PYTHON_USEDEP}]
dev-python/ipython[${PYTHON_USEDEP}]
dev-python/ipython_genutils[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pexpect[${PYTHON_USEDEP}]
dev-python/pickleshare[${PYTHON_USEDEP}]
dev-python/pluggy[${PYTHON_USEDEP}]
dev-python/prompt_toolkit[${PYTHON_USEDEP}]
dev-python/ptyprocess[${PYTHON_USEDEP}]
dev-python/py[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
dev-python/pyparsing[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/scandir[${PYTHON_USEDEP}]
dev-python/simplegeneric[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/traitlets[${PYTHON_USEDEP}]
dev-python/wcwidth[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
RESTRICT="test"
PROPERTIES="test_network"
python_prepare_all() {
# do not depend on pytest-cov
sed -i -e '/addopts/d' pytest.ini || die
distutils-r1_python_prepare_all
}
distutils_enable_tests pytest
distutils_enable_sphinx docs --no-autodoc

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="Up to date simple useragent faker with real world database"
HOMEPAGE="
https://github.com/fake-useragent/fake-useragent
https://pypi.org/project/fake-useragent/
"
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
$(python_gen_cond_dep \
'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_9
)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs --no-autodoc
python_prepare_all() {
# do not depend on pytest-cov
rm pytest.ini || die
distutils-r1_python_prepare_all
}

View File

@@ -1,18 +1,13 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<description>co-maintainers welcome</description>
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<longdescription lang="en">
Features
grabs up to date useragent from useragentstring.com
randomize with real world statistic via w3schools.com
</longdescription>
<upstream>
<remote-id type="github">hellysmile/fake-useragent</remote-id>
<remote-id type="pypi">fake-useragent</remote-id>
</upstream>
<maintainer type="person">
<description>co-maintainers welcome</description>
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<remote-id type="github">fake-useragent/fake-useragent</remote-id>
<remote-id type="pypi">fake-useragent</remote-id>
</upstream>
</pkgmetadata>