diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-01-28 13:15:30 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-01-28 13:16:22 +0200 |
commit | c3db8784bc664093b78956f7e516277c831b5762 (patch) | |
tree | 7b10ee114905dc1bdda5703a61ce219845e53c63 | |
parent | dev-util/buildbot: add 3.4.0, enable py3.10, cleanup (diff) | |
download | gentoo-c3db8784bc664093b78956f7e516277c831b5762.tar.gz gentoo-c3db8784bc664093b78956f7e516277c831b5762.tar.bz2 gentoo-c3db8784bc664093b78956f7e516277c831b5762.zip |
dev-util/buildbot: update live version
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | dev-util/buildbot/buildbot-9999.ebuild | 105 |
1 files changed, 38 insertions, 67 deletions
diff --git a/dev-util/buildbot/buildbot-9999.ebuild b/dev-util/buildbot/buildbot-9999.ebuild index dcf36e3727e7..f6d31286ded0 100644 --- a/dev-util/buildbot/buildbot-9999.ebuild +++ b/dev-util/buildbot/buildbot-9999.ebuild @@ -1,50 +1,42 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="7" -PYTHON_REQ_USE="sqlite" -PYTHON_COMPAT=( python3_{7,8,9} ) +EAPI=8 +PYTHON_REQ_USE="sqlite" +PYTHON_COMPAT=( python3_{8..10} ) EGIT_REPO_URI="https://github.com/buildbot/${PN}.git" - -DISTUTILS_USE_SETUPTOOLS="rdepend" - -inherit git-r3 -inherit readme.gentoo-r1 systemd distutils-r1 - -MY_PV="${PV/_p/.post}" -MY_P="${PN}-${MY_PV}" +inherit readme.gentoo-r1 git-r3 systemd distutils-r1 DESCRIPTION="BuildBot build automation system" -HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot/" -[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" +HOMEPAGE="https://buildbot.net/ + https://github.com/buildbot/buildbot + https://pypi.org/project/buildbot/" +S="${S}/master" LICENSE="GPL-2" SLOT="0" -KEYWORDS="" - -IUSE="crypt doc docker examples irc test" +IUSE="crypt docker examples irc test" RESTRICT="!test? ( test )" RDEPEND=" acct-user/buildbot - >=dev-python/jinja-2.1[${PYTHON_USEDEP}] >=dev-python/twisted-17.9.0[${PYTHON_USEDEP},crypt?] - >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] + >=dev-python/jinja-2.1[${PYTHON_USEDEP}] + >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}] >=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}] - <dev-python/sqlalchemy-1.4.0[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-migrate-0.13[${PYTHON_USEDEP}] + <dev-python/sqlalchemy-1.5.0[${PYTHON_USEDEP}] + >=dev-python/alembic-1.6.0[${PYTHON_USEDEP}] >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] + >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] dev-python/pyjwt[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/unidiff[${PYTHON_USEDEP}] - >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}] ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] crypt? ( >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] - dev-python/idna[${PYTHON_USEDEP}] dev-python/service_identity[${PYTHON_USEDEP}] + dev-python/idna[${PYTHON_USEDEP}] ) irc? ( dev-python/txrequests[${PYTHON_USEDEP}] @@ -54,54 +46,38 @@ RDEPEND=" dev-python/requests[${PYTHON_USEDEP}] ) " -DEPEND="${RDEPEND} - doc? ( - >=dev-python/sphinx-3.2.0[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] - dev-python/pyenchant[${PYTHON_USEDEP}] - dev-python/docutils[${PYTHON_USEDEP}] - dev-python/sphinx-jinja[${PYTHON_USEDEP}] - dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] - ) +BDEPEND=" test? ( - dev-python/ldap3[${PYTHON_USEDEP}] - >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] - dev-python/moto[${PYTHON_USEDEP}] + ${RDEPEND} + dev-python/treq[${PYTHON_USEDEP}] + dev-python/txrequests[${PYTHON_USEDEP}] + dev-python/pypugjs[${PYTHON_USEDEP}] >=dev-python/boto3-1.12.48[${PYTHON_USEDEP}] + dev-python/moto[${PYTHON_USEDEP}] + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] dev-python/parameterized[${PYTHON_USEDEP}] - dev-python/pypugjs[${PYTHON_USEDEP}] - dev-python/txrequests[${PYTHON_USEDEP}] dev-python/lz4[${PYTHON_USEDEP}] - dev-python/treq[${PYTHON_USEDEP}] - dev-python/setuptools_trial[${PYTHON_USEDEP}] - dev-util/buildbot-pkg[${PYTHON_USEDEP}] - dev-util/buildbot-worker[${PYTHON_USEDEP}] - dev-util/buildbot-www[${PYTHON_USEDEP}] + dev-python/ldap3[${PYTHON_USEDEP}] + ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}] + ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] + ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}] )" -S=${S}/master +DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added +to support starting buildbot through Gentoo's init system. To use this, +execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. +The scripts can run as a different user if desired." -distutils_enable_tests setup.py +src_prepare() { + # disable all warnings as errors + sed -e "/warnings.filterwarnings('error')/d" -i buildbot/test/__init__.py || die -pkg_setup() { - DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added - to support starting buildbot through Gentoo's init system. To use this, - execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. - The scripts can run as a different user if desired." + distutils-r1_src_prepare } -src_compile() { - distutils-r1_src_compile - - if use doc; then - einfo "Generation of documentation" - pushd docs > /dev/null || die - #'man' target is currently broken - emake html - popd > /dev/null || die - fi +python_test() { + distutils_install_for_testing + "${EPYTHON}" -m twisted.trial buildbot || die "Tests failed with ${EPYTHON}" } src_install() { @@ -109,11 +85,6 @@ src_install() { doman docs/buildbot.1 - if use doc; then - HTML_DOCS=( docs/_build/html/ ) - # TODO: install man pages - fi - if use examples; then insinto /usr/share/doc/${PF} doins -r docs/examples |