diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
commit | 24fd814c326e282c4321965c31f341dad77e270d (patch) | |
tree | 033d63b33c21a3209964ab56005bb9bdd523630d /dev-python/MechanicalSoup | |
parent | 129160ec854dca4c3fedb5bcfbcb56930371da0f (diff) |
gentoo resync : 08.01.2021
Diffstat (limited to 'dev-python/MechanicalSoup')
-rw-r--r-- | dev-python/MechanicalSoup/Manifest | 2 | ||||
-rw-r--r-- | dev-python/MechanicalSoup/MechanicalSoup-1.0.0.ebuild | 48 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/MechanicalSoup/Manifest b/dev-python/MechanicalSoup/Manifest index 0c9f7c1c1353..e65e4fa65150 100644 --- a/dev-python/MechanicalSoup/Manifest +++ b/dev-python/MechanicalSoup/Manifest @@ -1,3 +1,5 @@ DIST MechanicalSoup-0.12.0.tar.gz 44505 BLAKE2B 7c303f7ae4dea12157d5c845a4dcdc6923e76d3565debd88d2f43e2cfc29a503feb6accb969839a39b1c4071b029f53908a12902a5c4f175f0383da227224c55 SHA512 6cce80ea5a90e7f19f2b13749f6ee48222d973af66cb350ac867a554580b0d619defe5a93741e6ec8aa808c585a8c01703158c7484521ac069977388de8bb7e3 +DIST MechanicalSoup-1.0.0.tar.gz 47572 BLAKE2B eace6cc4eaf50f01f8a7816d4d87a9345676b6921c8fe46b3280ac83463b241b2e6175b91ee1a5f907635c07ee8cf66324cb2e7938736b81e9a4f849f9159548 SHA512 00e2c5220c065b517301d9381a9bc5019f6f75dc5951a5ab4427fd7939b296b6b33a20b8f8a7e82c6feed2c9100e3481f38a424d63065883d71a6927119ad88c EBUILD MechanicalSoup-0.12.0.ebuild 1135 BLAKE2B 201d17484408fd96585bd0a6b282397d436599c90f031adf582b5f8e15a1a41e0c36745375f68bd6d8054de11ae399f679c02b0a9a58688e11aee660e7ce0769 SHA512 d1c754addb42a3ca6e7ab8e5eb7be97d10482106234a4006b4c2e773762440ea76b5a278d28713b7833c59f77757ee22b82095edb91aee3a8f7e5ec9247013b6 +EBUILD MechanicalSoup-1.0.0.ebuild 1135 BLAKE2B b0304bd98221b4cb1ad4c979102131b08f08545c76a2dc053bc9346656574a017e8ae4a78da3b15e5376ddcb1fedc889b312489c5ba70b9f1645b6f439cf6cb2 SHA512 4e5f0a7e208fd668e1c653cda0007daa4d18ad158f07e6633a085202f867cd65965d845a00f65650e71b486e18d2a082641ece6d882d6adcaff9cef346e59d2d MISC metadata.xml 550 BLAKE2B e580cc1c3eea5cd7a96ff564c5bb7606498911f997c326cd962ea54e7c73e6521b08d22a7de40f5a7784f3a6386aaaa6d8146ce64d8bcdc4d5f3f42a1855f821 SHA512 cf6d0689bb22256e261d2b964ec9ad05508467f68a115ded56b73fe27dad9f15f53a202f6c71e36b6219a5e79d99e01befa04bf239637f16ced3658d41d06314 diff --git a/dev-python/MechanicalSoup/MechanicalSoup-1.0.0.ebuild b/dev-python/MechanicalSoup/MechanicalSoup-1.0.0.ebuild new file mode 100644 index 000000000000..ef1df0c3a84c --- /dev/null +++ b/dev-python/MechanicalSoup/MechanicalSoup-1.0.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6..9} ) + +inherit distutils-r1 + +DESCRIPTION="A python library for automating interaction with websites" +HOMEPAGE="https://pypi.org/project/MechanicalSoup/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +RDEPEND=" + >=dev-python/beautifulsoup-4.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.0[${PYTHON_USEDEP}] + >=dev-python/six-1.4[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/requests-mock-1.3.0[${PYTHON_USEDEP}] + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs + +python_prepare_all() { + # Override pytest options to skip coverage and flake8 + sed -i -e '/^addopts =/d' setup.cfg || die + distutils-r1_python_prepare_all +} + +python_install_all() { + if use examples; then + docompress -x "/usr/share/doc/${PF}/examples" + dodoc -r examples + fi + distutils-r1_python_install_all +} |