diff options
-rw-r--r-- | dev-util/buildbot/Manifest | 6 | ||||
-rw-r--r-- | dev-util/buildbot/buildbot-0.9.0_p1.ebuild | 199 | ||||
-rw-r--r-- | dev-util/buildbot/buildbot-0.9.1.ebuild | 199 | ||||
-rw-r--r-- | dev-util/buildbot/buildbot-0.9.2.ebuild | 222 | ||||
-rw-r--r-- | dev-util/buildbot/buildbot-0.9.4.ebuild | 4 | ||||
-rw-r--r-- | dev-util/buildbot/buildbot-0.9.7.ebuild (renamed from dev-util/buildbot/buildbot-0.9.3.ebuild) | 70 | ||||
-rw-r--r-- | dev-util/buildbot/buildbot-9999.ebuild | 44 | ||||
-rw-r--r-- | dev-util/buildbot/files/buildbot-0.9.3-json-import.patch | 1000 | ||||
-rw-r--r-- | dev-util/buildbot/files/buildbot-0.9.Addmissedtestingtemplates.patch | 25 |
9 files changed, 43 insertions, 1726 deletions
diff --git a/dev-util/buildbot/Manifest b/dev-util/buildbot/Manifest index d8f979ee5dae..6dc7554013d0 100644 --- a/dev-util/buildbot/Manifest +++ b/dev-util/buildbot/Manifest @@ -1,9 +1,5 @@ DIST buildbot-0.8.10.tar.gz 4822307 SHA256 c4964d2ebd81cb80a14cb058fb2aab0572a1d8d86672d514e775b42deb08a5f4 SHA512 e148a1670a56837587d858d1697fe117661cbbfedab42bf7be905f9e8e4266e4ff0170b0cd81aed61234d30497a05427061c3084033f09811d0bc306b200661b WHIRLPOOL 26397b6f914266201aba4feb4df7353facad4fd0f51bdf7e35cf25205c45eadcf83f24c265e540b13d327750ce9561362be6a5aa237152cf1298d970c504f76c DIST buildbot-0.8.12.tar.gz 4834352 SHA256 c6b66976dff712268566574d57131ec15e5682f6d4390cd5c8559bab0980c4d6 SHA512 18c5144132fb033f3581d3c494d5e8ff35d3e8b1548764452ce9ae543d710e58a2c6e3e8e46a0ef237804f9a6a45485890ae4616ab655fb00d4ccf328d6f6645 WHIRLPOOL 5754b7c0278fb5e7da8a7dd66253f6f4d12f54c125f6a78aa9018a2b6b22fd88a27e79e6821ab05e4cd9e87bf0dd08c3c73c7914d4c499ac13c48ca232ed21c8 -DIST buildbot-0.9.0.post1.tar.gz 3013406 SHA256 afd8229c9fd33daa6d8227cd665c75b1b25c47ffcc4046ab5fd5b290ccd536a3 SHA512 0b171ca6ed15b15b4df23d0618cb7d98f6ae922efaa1e35a9458efaaf676b80a6ff3be36231b8ca31cadf89c3968425c560a0bff3630e8792d179462eba0da67 WHIRLPOOL e440826e4a027b42d28c0f3a0afca3c46ec5dc0b4d629fcef75de4b3350cffa2208e0024983f0ffebd1df38a5d860c6bd541fc1c3e28f8b6669ee93a4d4be8b4 -DIST buildbot-0.9.1.tar.gz 3051975 SHA256 a9f385f66f5cc3021f4cbfce92496673ebf9171578fa9e5ae4f66732276d64ce SHA512 c3b845a3607c5eaa0a5076755bc0e285ba7c6809f9d7934fab7c6cf8299610e921034656cf3792113961176a821138c6d069122d4d1f1698f16badf3ef9a0dea WHIRLPOOL 6767878665f09ff7b6219ddcda73487b441f3e33ce580fc2df2f16d430217d4ac38b93e22a3f3abd9c8380ac6e6c93de6767faec1aa5615f82fbe8d8e20759e1 -DIST buildbot-0.9.2.tar.gz 3026977 SHA256 d33ec059941cf830c8f7b7f336a76e32e7122e2690a27b784efeddc6dbf4564a SHA512 a1c6345bcceb5c8f4ed600542625eee81e59af00a1b12054fe77e3b4ed5536b7004fcbd07cfc96baa3061193eb79e4290e056cf7157b71831370654c057a2c57 WHIRLPOOL 075a00d85df5321180345348a02ac12cc8a1bea36d6e60617ebe54de71ce5a989fcf009822834dad1994a6f83ebb5c6132f350902fd31d5b279c5c13014bb4b9 -DIST buildbot-0.9.3.tar.gz 3031033 SHA256 c2bc6a8139b0f97d304bfa047a4c414e42ea12ba94e34d82ae7cb356a69d87fb SHA512 a6f18e88c33fe1eafe0b9b154fb77f0d93db71145faab527ecd5ce53fcbbff48b915de4a02461da87eefbd58a649a56d3a9b16ba759d978e70a70898a15681b7 WHIRLPOOL b62fd5bea0b647b703674024e50731e7713e9488dec570d8e42beabaa2135a81349b955164cf01898b12ab0123d9a8f3b76e3364f65003b8af85a54755b6ad22 DIST buildbot-0.9.4.docs.tar.xz 69224 SHA256 69fc33762a885568b02c42954a64d62d28bcb750b3aed011c3da8a9f84c13371 SHA512 906e551e0db32c8a0b4010b3b8b00c4776e3d1b7d7381e4dc0ccf01d361184e4605c3ab0ecaf4e42207bd73c3e72f8a570a4d4c29db72f4d68241abf48741d7e WHIRLPOOL 95f263e0b9ab22a649118f362d866b08cbdf62511f2a1f9bd6a7265103f174e35d0c8d86ad6a3b7dd5fd0b4277d60dbd25801c5e6f7e414e7fa634c241dae987 DIST buildbot-0.9.4.tar.gz 3020851 SHA256 068161cd9ada10b87f40117c768a37ce796ebf5e7bf08f224f4c7ded88cd7472 SHA512 938a94192560b989a277d9650c50781d7e7c116bc5e2010ccb2e655df757de0ee254369531b2f432c835c0285c724e52d999a393d0ce1b104d4b9dcc5c6687da WHIRLPOOL 0ffe61b82ee93b78cdb3cb74ef96d5a3547e0fcab9ec8093b59a7212c5e2a1ad16eff046306bffcc0ea63b2e0bf2df1e54b5a0874dc78e27744db2088ccac804 -DIST buildbot-test_templates.tar.xz 304 SHA256 3d581b74c21f88119f7e5f93f381f2004662ca7219aae9a05f0bd3f8cae48317 SHA512 87ba914896d86f70e2e4b24a51248c475bf24fad4c02e3a99d6d7fa41b5a57f369865b20a7c30dafa3162ba50ccb04de1809b0cf9d53e45537738e4821229866 WHIRLPOOL 151dc42ceed8e90c96cdd0b6e937f13019c0d6cd5e2e878ee971cbc69ce4ea56b240b58fa743766bd0d71cafa38279e37be077324eb5ece7b99df46eaf566dfe +DIST buildbot-0.9.7.tar.gz 3092434 SHA256 8fcbf0e6536e5d60407f59d14f96d5f8386cd91846a4fa47b4336d71551a9e33 SHA512 3fd2b488cabac37e297bb1a475cdb115f261324a22ec4d6fbcf8dc5bfb6ee135fab3763998433be8795581d476f69e2adb6f42d248bf2131a42eecfc1667202a WHIRLPOOL 427d4c1c452f767550a3d2731b2e34480c399dcf50e57d4fb69f0a350f381e3e7ecc47d712fc8fbb99afcf8b230c7bd3afe8437ec3b24bf9ddbf7d35b4d1caad diff --git a/dev-util/buildbot/buildbot-0.9.0_p1.ebuild b/dev-util/buildbot/buildbot-0.9.0_p1.ebuild deleted file mode 100644 index 00fe2ca44be4..000000000000 --- a/dev-util/buildbot/buildbot-0.9.0_p1.ebuild +++ /dev/null @@ -1,199 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" -PYTHON_REQ_USE="sqlite" -PYTHON_COMPAT=( python2_7 ) - -EGIT_REPO_URI="https://github.com/buildbot/${PN}.git" - -[[ ${PV} == *9999 ]] && inherit git-r3 -inherit readme.gentoo-r1 user systemd distutils-r1 - -MY_V="0.9.0.post1" -MY_P="${PN}-${MY_V}" - -DESCRIPTION="BuildBot build automation system" -HOMEPAGE="http://trac.buildbot.net/ https://github.com/buildbot/buildbot http://pypi.python.org/pypi/buildbot" -[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -if [[ ${PV} == *9999 ]]; then - KEYWORDS="" -else - KEYWORDS="~amd64" -fi - -IUSE="crypt doc examples irc mail manhole test" - -RDEPEND=">=dev-python/jinja-2.1[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}] - ) - >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}] - crypt? ( - >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] - dev-python/idna[${PYTHON_USEDEP}] - dev-python/service_identity[${PYTHON_USEDEP}] - ) - irc? ( - dev-python/txrequests[${PYTHON_USEDEP}] - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}] - ) - ) - mail? ( - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}] - ) - ) - manhole? ( - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-conch-14.0.1[${PYTHON_USEDEP}] - ) - ) - dev-python/future[${PYTHON_USEDEP}] - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] - >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}] - doc? ( >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}] ) - test? ( - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - ( - >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}] - >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}] - >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}] - ) - ) - dev-python/moto[${PYTHON_USEDEP}] - dev-python/boto3[${PYTHON_USEDEP}] - dev-python/ramlfications[${PYTHON_USEDEP}] - dev-python/pyjade[${PYTHON_USEDEP}] - dev-python/txgithub[${PYTHON_USEDEP}] - dev-python/txrequests[${PYTHON_USEDEP}] - )" - -# still yet to be added deps -# doc? ( 'sphinxcontrib-blockdiag', -# 'sphinxcontrib-spelling', -# 'pyenchant', -# 'docutils>=0.8', -# 'sphinx-jinja',) - -S=${WORKDIR}/${MY_P} -[[ ${PV} == *9999 ]] && S=${S}/master - -pkg_setup() { - enewuser buildbot - - 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." -} - -src_compile() { - distutils-r1_src_compile - - if use doc; then - einfo "Generation of documentation" - pushd docs > /dev/null - #'man' target is currently broken - emake html - popd > /dev/null - fi -} - -src_install() { - distutils-r1_src_install - - doman docs/buildbot.1 - - if use doc; then - dohtml -r docs/_build/html/ - # TODO: install man pages - fi - - if use examples; then - insinto /usr/share/doc/${PF} - doins -r contrib docs/examples - fi - - newconfd "${FILESDIR}/buildmaster.confd" buildmaster - newinitd "${FILESDIR}/buildmaster.initd" buildmaster - systemd_dounit "${FILESDIR}/buildmaster.target" - systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service" - systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service" - - readme.gentoo_create_doc -} - -pkg_postinst() { - readme.gentoo_print_elog - - if [[ -n ${REPLACING_VERSIONS} ]]; then - ewarn - ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster" - ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file" - ewarn "is now the common base directory for all instances. If you are migrating from an older" - ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." - ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance." - ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" - ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance" - ewarn " rc-update add buildmaster.myinstance default" - ewarn " /etc/init.d/buildmaster.myinstance start" - ewarn "Systems using systemd can do the following:" - ewarn " systemctl enable buildmaster@myinstance.service" - ewarn " systemctl enable buildmaster.target" - ewarn " systemctl start buildmaster.target" - elog - elog "Upstream recommends the following when upgrading:" - elog "Each time you install a new version of Buildbot, you should run the" - elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters." - elog "This will add files and fix (or at least detect) incompatibilities between" - elog "your old config and the new code." - fi - elog - elog "In order to create a new instance of buildmaster, execute:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_config() { - local buildmaster_path="/var/lib/buildmaster" - einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." - einfo "Press Control-C to abort." - - einfo "Enter the name for the new instance: " - read instance_name - [[ -z "${instance_name}" ]] && die "Invalid instance name" - - local instance_path="${buildmaster_path}/${instance_name}" - if [[ -e "${instance_path}" ]]; then - eerror "The instance with the specified name already exists:" - eerror "${instance_path}" - die "Instance already exists" - fi - - local buildbot="/usr/bin/buildbot" - if [[ ! -d "${buildmaster_path}" ]]; then - mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}" - fi - "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed" - chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed" - mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \ - || die "Moving sample configuration failed" - ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \ - || die "Unable to create link to init file" - - einfo "Successfully created a buildmaster instance at ${instance_path}." - einfo "To change the default settings edit the master.cfg file in this directory." -} diff --git a/dev-util/buildbot/buildbot-0.9.1.ebuild b/dev-util/buildbot/buildbot-0.9.1.ebuild deleted file mode 100644 index 4da7f74abcbe..000000000000 --- a/dev-util/buildbot/buildbot-0.9.1.ebuild +++ /dev/null @@ -1,199 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" -PYTHON_REQ_USE="sqlite" -PYTHON_COMPAT=( python2_7 ) - -EGIT_REPO_URI="https://github.com/buildbot/${PN}.git" - -[[ ${PV} == *9999 ]] && inherit git-r3 -inherit readme.gentoo-r1 user systemd distutils-r1 - -MY_V="0.9.1" -MY_P="${PN}-${MY_V}" - -DESCRIPTION="BuildBot build automation system" -HOMEPAGE="http://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot" -[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -if [[ ${PV} == *9999 ]]; then - KEYWORDS="" -else - KEYWORDS="~amd64" -fi - -IUSE="crypt doc examples irc mail manhole test" - -RDEPEND=">=dev-python/jinja-2.1[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}] - ) - >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}] - crypt? ( - >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] - dev-python/idna[${PYTHON_USEDEP}] - dev-python/service_identity[${PYTHON_USEDEP}] - ) - irc? ( - dev-python/txrequests[${PYTHON_USEDEP}] - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}] - ) - ) - mail? ( - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}] - ) - ) - manhole? ( - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-conch-14.0.1[${PYTHON_USEDEP}] - ) - ) - dev-python/future[${PYTHON_USEDEP}] - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] - >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}] - doc? ( >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}] ) - test? ( - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - ( - >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}] - >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}] - >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}] - ) - ) - dev-python/moto[${PYTHON_USEDEP}] - dev-python/boto3[${PYTHON_USEDEP}] - dev-python/ramlfications[${PYTHON_USEDEP}] - dev-python/pyjade[${PYTHON_USEDEP}] - dev-python/txgithub[${PYTHON_USEDEP}] - dev-python/txrequests[${PYTHON_USEDEP}] - )" - -# still yet to be added deps -# doc? ( 'sphinxcontrib-blockdiag', -# 'sphinxcontrib-spelling', -# 'pyenchant', -# 'docutils>=0.8', -# 'sphinx-jinja',) - -S=${WORKDIR}/${MY_P} -[[ ${PV} == *9999 ]] && S=${S}/master - -pkg_setup() { - enewuser buildbot - - 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." -} - -src_compile() { - distutils-r1_src_compile - - if use doc; then - einfo "Generation of documentation" - pushd docs > /dev/null - #'man' target is currently broken - emake html - popd > /dev/null - fi -} - -src_install() { - distutils-r1_src_install - - doman docs/buildbot.1 - - if use doc; then - dohtml -r docs/_build/html/ - # TODO: install man pages - fi - - if use examples; then - insinto /usr/share/doc/${PF} - doins -r contrib docs/examples - fi - - newconfd "${FILESDIR}/buildmaster.confd" buildmaster - newinitd "${FILESDIR}/buildmaster.initd" buildmaster - systemd_dounit "${FILESDIR}/buildmaster.target" - systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service" - systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service" - - readme.gentoo_create_doc -} - -pkg_postinst() { - readme.gentoo_print_elog - - if [[ -n ${REPLACING_VERSIONS} ]]; then - ewarn - ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster" - ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file" - ewarn "is now the common base directory for all instances. If you are migrating from an older" - ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." - ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance." - ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" - ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance" - ewarn " rc-update add buildmaster.myinstance default" - ewarn " /etc/init.d/buildmaster.myinstance start" - ewarn "Systems using systemd can do the following:" - ewarn " systemctl enable buildmaster@myinstance.service" - ewarn " systemctl enable buildmaster.target" - ewarn " systemctl start buildmaster.target" - elog - elog "Upstream recommends the following when upgrading:" - elog "Each time you install a new version of Buildbot, you should run the" - elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters." - elog "This will add files and fix (or at least detect) incompatibilities between" - elog "your old config and the new code." - fi - elog - elog "In order to create a new instance of buildmaster, execute:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_config() { - local buildmaster_path="/var/lib/buildmaster" - einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." - einfo "Press Control-C to abort." - - einfo "Enter the name for the new instance: " - read instance_name - [[ -z "${instance_name}" ]] && die "Invalid instance name" - - local instance_path="${buildmaster_path}/${instance_name}" - if [[ -e "${instance_path}" ]]; then - eerror "The instance with the specified name already exists:" - eerror "${instance_path}" - die "Instance already exists" - fi - - local buildbot="/usr/bin/buildbot" - if [[ ! -d "${buildmaster_path}" ]]; then - mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}" - fi - "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed" - chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed" - mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \ - || die "Moving sample configuration failed" - ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \ - || die "Unable to create link to init file" - - einfo "Successfully created a buildmaster instance at ${instance_path}." - einfo "To change the default settings edit the master.cfg file in this directory." -} diff --git a/dev-util/buildbot/buildbot-0.9.2.ebuild b/dev-util/buildbot/buildbot-0.9.2.ebuild deleted file mode 100644 index d68e544a5aea..000000000000 --- a/dev-util/buildbot/buildbot-0.9.2.ebuild +++ /dev/null @@ -1,222 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" -PYTHON_REQ_USE="sqlite" -PYTHON_COMPAT=( python2_7 ) - -EGIT_REPO_URI="https://github.com/buildbot/${PN}.git" - -[[ ${PV} == *9999 ]] && inherit git-r3 -inherit readme.gentoo-r1 user systemd distutils-r1 - -MY_PV="${PV/_p/p}" -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="BuildBot build automation system" -HOMEPAGE="http://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot" -if [[ ${PV} != *9999 ]]; then - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz - http://dev.gentoo.org/~dolsen/distfiles/buildbot-test_templates.tar.xz" -fi - -LICENSE="GPL-2" -SLOT="0" -if [[ ${PV} == *9999 ]]; then - KEYWORDS="" -else - KEYWORDS="~amd64" -fi - -IUSE="crypt doc examples irc mail manhole test" - -RDEPEND=">=dev-python/jinja-2.1[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}] - ) - >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}] - crypt? ( - >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] - dev-python/idna[${PYTHON_USEDEP}] - dev-python/service_identity[${PYTHON_USEDEP}] - ) - irc? ( - dev-python/txrequests[${PYTHON_USEDEP}] - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}] - ) - ) - mail? ( - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}] - ) - ) - manhole? ( - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-conch-14.0.1[${PYTHON_USEDEP}] - ) - ) - dev-python/future[${PYTHON_USEDEP}] - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] - >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}] - doc? ( >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}] ) - test? ( - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - =dev-python/httpretty-0.8.10[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - ( - >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}] - >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}] - >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}] - ) - ) - dev-python/moto[${PYTHON_USEDEP}] - dev-python/boto3[${PYTHON_USEDEP}] - dev-python/ramlfications[${PYTHON_USEDEP}] - dev-python/pyjade[${PYTHON_USEDEP}] - dev-python/txgithub[${PYTHON_USEDEP}] - dev-python/txrequests[${PYTHON_USEDEP}] - >=dev-python/treq-16.0.0[${PYTHON_USEDEP}] - dev-python/setuptools_trial[${PYTHON_USEDEP}] - ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}] - )" - -# still yet to be added deps -# doc? ( 'sphinxcontrib-blockdiag', -# 'sphinxcontrib-spelling', -# 'pyenchant', -# 'docutils>=0.8', -# 'sphinx-jinja',) - -S=${WORKDIR}/${MY_P} -[[ ${PV} == *9999 ]] && S=${S}/master - -pkg_setup() { - enewuser buildbot - - 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." -} - -src_unpack() { - unpack ${MY_P}.tar.gz - cd ${MY_P}/buildbot/test/unit - unpack buildbot-test_templates.tar.xz -} - -src_prepare() { - epatch "${FILESDIR}"/buildbot-0.9.Addmissedtestingtemplates.patch - } - -src_compile() { - distutils-r1_src_compile - - if use doc; then - einfo "Generation of documentation" - pushd docs > /dev/null - #'man' target is currently broken - emake html - popd > /dev/null - fi -} - -src_install() { - distutils-r1_src_install - - doman docs/buildbot.1 - - if use doc; then - dohtml -r docs/_build/html/ - # TODO: install man pages - fi - - if use examples; then - insinto /usr/share/doc/${PF} - doins -r contrib docs/examples - fi - - newconfd "${FILESDIR}/buildmaster.confd" buildmaster - newinitd "${FILESDIR}/buildmaster.initd" buildmaster - systemd_dounit "${FILESDIR}/buildmaster.target" - systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service" - systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service" - - readme.gentoo_create_doc -} - -python_test() { - distutils_install_for_testing - - esetup.py test || die "Tests failed under ${EPYTHON}" -} - -pkg_postinst() { - readme.gentoo_print_elog - - if [[ -n ${REPLACING_VERSIONS} ]]; then - ewarn - ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster" - ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file" - ewarn "is now the common base directory for all instances. If you are migrating from an older" - ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." - ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance." - ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" - ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance" - ewarn " rc-update add buildmaster.myinstance default" - ewarn " /etc/init.d/buildmaster.myinstance start" - ewarn "Systems using systemd can do the following:" - ewarn " systemctl enable buildmaster@myinstance.service" - ewarn " systemctl enable buildmaster.target" - ewarn " systemctl start buildmaster.target" - elog - elog "Upstream recommends the following when upgrading:" - elog "Each time you install a new version of Buildbot, you should run the" - elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters." - elog "This will add files and fix (or at least detect) incompatibilities between" - elog "your old config and the new code." - fi - elog - elog "In order to create a new instance of buildmaster, execute:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_config() { - local buildmaster_path="/var/lib/buildmaster" - einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." - einfo "Press Control-C to abort." - - einfo "Enter the name for the new instance: " - read instance_name - [[ -z "${instance_name}" ]] && die "Invalid instance name" - - local instance_path="${buildmaster_path}/${instance_name}" - if [[ -e "${instance_path}" ]]; then - eerror "The instance with the specified name already exists:" - eerror "${instance_path}" - die "Instance already exists" - fi - - local buildbot="/usr/bin/buildbot" - if [[ ! -d "${buildmaster_path}" ]]; then - mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}" - fi - "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed" - chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed" - mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \ - || die "Moving sample configuration failed" - ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \ - || die "Unable to create link to init file" - - einfo "Successfully created a buildmaster instance at ${instance_path}." - einfo "To change the default settings edit the master.cfg file in this directory." -} diff --git a/dev-util/buildbot/buildbot-0.9.4.ebuild b/dev-util/buildbot/buildbot-0.9.4.ebuild index 5981c0205936..4ee67e152c9c 100644 --- a/dev-util/buildbot/buildbot-0.9.4.ebuild +++ b/dev-util/buildbot/buildbot-0.9.4.ebuild @@ -13,10 +13,10 @@ MY_PV="${PV/_p/p}" MY_P="${PN}-${MY_PV}" DESCRIPTION="BuildBot build automation system" -HOMEPAGE="http://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot" +HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot" SRC_URI=" mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz - http://dev.gentoo.org/~dolsen/distfiles/buildbot-0.9.4.docs.tar.xz + https://dev.gentoo.org/~dolsen/distfiles/buildbot-0.9.4.docs.tar.xz " LICENSE="GPL-2" diff --git a/dev-util/buildbot/buildbot-0.9.3.ebuild b/dev-util/buildbot/buildbot-0.9.7.ebuild index 176bd7ef1bce..bfcbf1aa17e1 100644 --- a/dev-util/buildbot/buildbot-0.9.3.ebuild +++ b/dev-util/buildbot/buildbot-0.9.7.ebuild @@ -3,7 +3,7 @@ EAPI="5" PYTHON_REQ_USE="sqlite" -PYTHON_COMPAT=( python2_7 ) +PYTHON_COMPAT=( python2_7 python3_5 ) EGIT_REPO_URI="https://github.com/buildbot/${PN}.git" @@ -14,7 +14,7 @@ MY_PV="${PV/_p/p}" MY_P="${PN}-${MY_PV}" DESCRIPTION="BuildBot build automation system" -HOMEPAGE="http://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot" +HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot" [[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" @@ -25,70 +25,57 @@ else KEYWORDS="~amd64" fi -IUSE="crypt doc examples irc mail manhole test" +IUSE="crypt doc examples irc test" -RDEPEND=">=dev-python/jinja-2.1[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}] - ) +RDEPEND=" + >=dev-python/jinja-2.1[${PYTHON_USEDEP}] + >=dev-python/twisted-17.1.0[${PYTHON_USEDEP}] >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}] >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}] crypt? ( - >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] + >=dev-python/twisted-17.1.0[${PYTHON_USEDEP},crypt] + >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] dev-python/idna[${PYTHON_USEDEP}] dev-python/service_identity[${PYTHON_USEDEP}] ) irc? ( dev-python/txrequests[${PYTHON_USEDEP}] - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}] - ) - ) - mail? ( - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}] - ) - ) - manhole? ( - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-conch-14.0.1[${PYTHON_USEDEP}] - ) ) dev-python/future[${PYTHON_USEDEP}] >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] - " + dev-python/pyjwt[${PYTHON_USEDEP}] + dev-python/distro[${PYTHON_USEDEP}] + >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}] + ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] +" DEPEND="${RDEPEND} >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}] - doc? ( >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}] ) + doc? ( + >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}] + dev-python/pyenchant[${PYTHON_USEDEP}] + >=dev-python/docutils-0.8[${PYTHON_USEDEP}] + <dev-python/docutils-0.13.0[${PYTHON_USEDEP}] + dev-python/sphinx-jinja[${PYTHON_USEDEP}] + dev-python/ramlfications[${PYTHON_USEDEP}] + ) test? ( >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - ( - >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}] - >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}] - >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}] - ) - ) dev-python/moto[${PYTHON_USEDEP}] dev-python/boto3[${PYTHON_USEDEP}] dev-python/ramlfications[${PYTHON_USEDEP}] dev-python/pyjade[${PYTHON_USEDEP}] dev-python/txgithub[${PYTHON_USEDEP}] dev-python/txrequests[${PYTHON_USEDEP}] + dev-python/lz4[${PYTHON_USEDEP}] + dev-python/treq[${PYTHON_USEDEP}] + ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] )" -# still yet to be added deps -# doc? ( 'sphinxcontrib-blockdiag', -# 'sphinxcontrib-spelling', -# 'pyenchant', -# 'docutils>=0.8', -# 'sphinx-jinja',) - S=${WORKDIR}/${MY_P} [[ ${PV} == *9999 ]] && S=${S}/master @@ -101,10 +88,6 @@ pkg_setup() { The scripts can run as a different user if desired." } -src_prepare() { - epatch "${FILESDIR}"/buildbot-0.9.3-json-import.patch - } - src_compile() { distutils-r1_src_compile @@ -143,6 +126,7 @@ src_install() { python_test() { distutils_install_for_testing + export TEST_HYPER=1 esetup.py test || die "Tests failed under ${EPYTHON}" } diff --git a/dev-util/buildbot/buildbot-9999.ebuild b/dev-util/buildbot/buildbot-9999.ebuild index cd94d2d541ad..834f434691d9 100644 --- a/dev-util/buildbot/buildbot-9999.ebuild +++ b/dev-util/buildbot/buildbot-9999.ebuild @@ -3,7 +3,7 @@ EAPI="5" PYTHON_REQ_USE="sqlite" -PYTHON_COMPAT=( python2_7 ) +PYTHON_COMPAT=( python2_7 python3_{4,5} ) EGIT_REPO_URI="https://github.com/buildbot/${PN}.git" @@ -14,7 +14,7 @@ MY_PV="${PV/_p/p}" MY_P="${PN}-${MY_PV}" DESCRIPTION="BuildBot build automation system" -HOMEPAGE="http://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot" +HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot" [[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" @@ -25,42 +25,30 @@ else KEYWORDS="~amd64" fi -IUSE="crypt doc examples irc mail manhole test" +IUSE="crypt doc examples irc test" -RDEPEND=">=dev-python/jinja-2.1[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}] - ) +RDEPEND=" + >=dev-python/jinja-2.1[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/twisted-16.0.0[${PYTHON_USEDEP},crypt?]' python2_7 ) + $(python_gen_cond_dep '>=dev-python/twisted-17.1.0[${PYTHON_USEDEP},crypt?]' python3_5 python3_6 ) >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}] >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}] crypt? ( - >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] dev-python/idna[${PYTHON_USEDEP}] dev-python/service_identity[${PYTHON_USEDEP}] ) irc? ( dev-python/txrequests[${PYTHON_USEDEP}] - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}] - ) - ) - mail? ( - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}] - ) - ) - manhole? ( - || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/twisted-conch-14.0.1[${PYTHON_USEDEP}] - ) ) dev-python/future[${PYTHON_USEDEP}] >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] dev-python/pyjwt[${PYTHON_USEDEP}] - " + dev-python/distro[${PYTHON_USEDEP}] + >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}] +" DEPEND="${RDEPEND} >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}] doc? ( @@ -69,19 +57,13 @@ DEPEND="${RDEPEND} dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}] dev-python/pyenchant[${PYTHON_USEDEP}] >=dev-python/docutils-0.8[${PYTHON_USEDEP}] + <dev-python/docutils-0.13.0[${PYTHON_USEDEP}] dev-python/sphinx-jinja[${PYTHON_USEDEP}] + dev-python/ramlfications[${PYTHON_USEDEP}] ) test? ( >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] - || ( - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - ( - >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}] - >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}] - >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}] - ) - ) dev-python/moto[${PYTHON_USEDEP}] dev-python/boto3[${PYTHON_USEDEP}] dev-python/ramlfications[${PYTHON_USEDEP}] diff --git a/dev-util/buildbot/files/buildbot-0.9.3-json-import.patch b/dev-util/buildbot/files/buildbot-0.9.3-json-import.patch deleted file mode 100644 index 6c3cb14ed583..000000000000 --- a/dev-util/buildbot/files/buildbot-0.9.3-json-import.patch +++ /dev/null @@ -1,1000 +0,0 @@ -From 9e7a734c260b4f473eee11ff7a08b5064ff34e22 Mon Sep 17 00:00:00 2001 -From: Tom Prince <tom.prince@twistedmatrix.com> -Date: Thu, 12 Jan 2017 11:54:19 -0700 -Subject: [PATCH] Import `json` directly. - -Emit deprecation warning. -Update documentation. -Fix tests. -Lint fix. ---- - master/buildbot/changes/bitbucket.py | 3 +- - master/buildbot/changes/gerritchangesource.py | 2 +- - master/buildbot/clients/tryclient.py | 3 +- - master/buildbot/data/types.py | 2 +- - master/buildbot/db/builds.py | 4 ++- - master/buildbot/db/buildsets.py | 3 +- - master/buildbot/db/changes.py | 3 +- - master/buildbot/db/state.py | 4 ++- - master/buildbot/db/steps.py | 4 ++- - master/buildbot/db/types/json.py | 7 +++-- - master/buildbot/newsfragments/json.removal | 1 + - master/buildbot/process/properties.py | 2 +- - master/buildbot/schedulers/trysched.py | 3 +- - master/buildbot/scripts/dataspec.py | 3 +- - master/buildbot/scripts/processwwwindex.py | 2 +- - master/buildbot/steps/transfer.py | 3 +- - master/buildbot/test/fake/fakedata.py | 3 +- - master/buildbot/test/fake/fakedb.py | 2 +- - master/buildbot/test/integration/test_www.py | 4 ++- - .../test/unit/test_changes_gerritchangesource.py | 2 +- - .../buildbot/test/unit/test_clients_tryclient.py | 4 ++- - master/buildbot/test/unit/test_db_buildsets.py | 3 +- - master/buildbot/test/unit/test_mq_wamp.py | 3 +- - .../test/unit/test_schedulers_forcesched.py | 3 +- - .../buildbot/test/unit/test_schedulers_trysched.py | 3 +- - .../test/unit/test_scripts_processwwwindex.py | 3 +- - master/buildbot/test/unit/test_steps_transfer.py | 3 +- - master/buildbot/test/unit/test_www_oauth.py | 4 +-- - master/buildbot/test/unit/test_www_rest.py | 2 +- - master/buildbot/test/unit/test_www_sse.py | 2 +- - master/buildbot/test/unit/test_www_ws.py | 4 ++- - master/buildbot/test/util/validation.py | 2 +- - master/buildbot/test/util/www.py | 2 +- - master/buildbot/util/__init__.py | 32 ++++++++-------------- - master/buildbot/worker/docker.py | 2 +- - master/buildbot/www/config.py | 3 +- - master/buildbot/www/hooks/base.py | 3 +- - master/buildbot/www/hooks/gitlab.py | 4 +-- - master/buildbot/www/hooks/googlecode.py | 4 +-- - master/buildbot/www/oauth2.py | 2 +- - master/buildbot/www/rest.py | 2 +- - master/buildbot/www/sse.py | 3 +- - master/buildbot/www/ws.py | 3 +- - master/docs/developer/utils.rst | 12 -------- - 44 files changed, 91 insertions(+), 77 deletions(-) - create mode 100644 master/buildbot/newsfragments/json.removal - -diff --git a/master/buildbot/changes/bitbucket.py b/master/buildbot/changes/bitbucket.py -index 746d85398..3d5b57380 100644 ---- a/master/buildbot/changes/bitbucket.py -+++ b/master/buildbot/changes/bitbucket.py -@@ -12,6 +12,8 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json - import time - from datetime import datetime - -@@ -25,7 +27,6 @@ from buildbot.util import ascii2unicode - from buildbot.util import datetime2epoch - from buildbot.util import deferredLocked - from buildbot.util import epoch2datetime --from buildbot.util import json - - - class BitbucketPullrequestPoller(base.PollingChangeSource): -diff --git a/master/buildbot/changes/gerritchangesource.py b/master/buildbot/changes/gerritchangesource.py -index 036071bbf..5e1dd0e58 100644 ---- a/master/buildbot/changes/gerritchangesource.py -+++ b/master/buildbot/changes/gerritchangesource.py -@@ -15,6 +15,7 @@ - from future.utils import iteritems - - import datetime -+import json - - from twisted.internet import defer - from twisted.internet import reactor -@@ -26,7 +27,6 @@ from buildbot import util - from buildbot.changes import base - from buildbot.changes.filter import ChangeFilter - from buildbot.util import httpclientservice --from buildbot.util import json - - - class GerritChangeFilter(ChangeFilter): -diff --git a/master/buildbot/clients/tryclient.py b/master/buildbot/clients/tryclient.py -index bee4f3462..3f59a3cd6 100644 ---- a/master/buildbot/clients/tryclient.py -+++ b/master/buildbot/clients/tryclient.py -@@ -12,6 +12,8 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json - import os - import random - import re -@@ -32,7 +34,6 @@ from twisted.python.procutils import which - from twisted.spread import pb - - from buildbot.status import builder --from buildbot.util import json - from buildbot.util import now - from buildbot.util.eventual import fireEventually - -diff --git a/master/buildbot/data/types.py b/master/buildbot/data/types.py -index 6372303cd..c0dfc3587 100644 ---- a/master/buildbot/data/types.py -+++ b/master/buildbot/data/types.py -@@ -19,10 +19,10 @@ from future.utils import iteritems - from future.utils import text_type - - import datetime -+import json - import re - - from buildbot import util --from buildbot.util import json - - - class Type(object): -diff --git a/master/buildbot/db/builds.py b/master/buildbot/db/builds.py -index a716cb603..cd9dabc5d 100644 ---- a/master/buildbot/db/builds.py -+++ b/master/buildbot/db/builds.py -@@ -12,6 +12,9 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json -+ - import sqlalchemy as sa - - from twisted.internet import defer -@@ -20,7 +23,6 @@ from twisted.internet import reactor - from buildbot.db import NULL - from buildbot.db import base - from buildbot.util import epoch2datetime --from buildbot.util import json - - - class BuildsConnectorComponent(base.DBConnectorComponent): -diff --git a/master/buildbot/db/buildsets.py b/master/buildbot/db/buildsets.py -index 4bac6da5c..1288b57f4 100644 ---- a/master/buildbot/db/buildsets.py -+++ b/master/buildbot/db/buildsets.py -@@ -18,6 +18,8 @@ Support for buildsets in the database - from future.utils import integer_types - from future.utils import iteritems - -+import json -+ - import sqlalchemy as sa - - from twisted.internet import defer -@@ -27,7 +29,6 @@ from buildbot.db import NULL - from buildbot.db import base - from buildbot.util import datetime2epoch - from buildbot.util import epoch2datetime --from buildbot.util import json - - - class BsDict(dict): -diff --git a/master/buildbot/db/changes.py b/master/buildbot/db/changes.py -index caa643fa7..004995753 100644 ---- a/master/buildbot/db/changes.py -+++ b/master/buildbot/db/changes.py -@@ -19,6 +19,8 @@ Support for changes in the database - from future.utils import iteritems - from future.utils import itervalues - -+import json -+ - import sqlalchemy as sa - - from twisted.internet import defer -@@ -28,7 +30,6 @@ from twisted.python import log - from buildbot.db import base - from buildbot.util import datetime2epoch - from buildbot.util import epoch2datetime --from buildbot.util import json - - - class ChDict(dict): -diff --git a/master/buildbot/db/state.py b/master/buildbot/db/state.py -index 6ba143cfa..e572eab62 100644 ---- a/master/buildbot/db/state.py -+++ b/master/buildbot/db/state.py -@@ -12,11 +12,13 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json -+ - import sqlalchemy as sa - import sqlalchemy.exc - - from buildbot.db import base --from buildbot.util import json - - - class _IdNotFoundError(Exception): -diff --git a/master/buildbot/db/steps.py b/master/buildbot/db/steps.py -index f5e1c82bd..d0fbb52e3 100644 ---- a/master/buildbot/db/steps.py -+++ b/master/buildbot/db/steps.py -@@ -12,6 +12,9 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json -+ - import sqlalchemy as sa - - from twisted.internet import defer -@@ -19,7 +22,6 @@ from twisted.internet import reactor - - from buildbot.db import base - from buildbot.util import epoch2datetime --from buildbot.util import json - - - class StepsConnectorComponent(base.DBConnectorComponent): -diff --git a/master/buildbot/db/types/json.py b/master/buildbot/db/types/json.py -index ee105269d..932218135 100644 ---- a/master/buildbot/db/types/json.py -+++ b/master/buildbot/db/types/json.py -@@ -12,11 +12,14 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+from __future__ import absolute_import -+ -+import json -+ - from sqlalchemy.types import Text - from sqlalchemy.types import TypeDecorator - --from buildbot.util import json -- - - class JsonObject(TypeDecorator): - -diff --git a/master/buildbot/newsfragments/json.removal b/master/buildbot/newsfragments/json.removal -new file mode 100644 -index 000000000..9fc57b91e ---- /dev/null -+++ b/master/buildbot/newsfragments/json.removal -@@ -0,0 +1 @@ -+:py:data:`buildbot.util.json` has been deprecated in favor of the standard library :py:mod:`json`. -diff --git a/master/buildbot/process/properties.py b/master/buildbot/process/properties.py -index 82954a1cb..9b336c2d9 100644 ---- a/master/buildbot/process/properties.py -+++ b/master/buildbot/process/properties.py -@@ -16,6 +16,7 @@ from future.builtins import range - from future.utils import iteritems - - import collections -+import json - import re - import weakref - -@@ -28,7 +29,6 @@ from buildbot import util - from buildbot.interfaces import IProperties - from buildbot.interfaces import IRenderable - from buildbot.util import flatten --from buildbot.util import json - from buildbot.worker_transition import reportDeprecatedWorkerNameUsage - - -diff --git a/master/buildbot/schedulers/trysched.py b/master/buildbot/schedulers/trysched.py -index 3b700d871..60d17c269 100644 ---- a/master/buildbot/schedulers/trysched.py -+++ b/master/buildbot/schedulers/trysched.py -@@ -12,8 +12,10 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ - from future.utils import iteritems - -+import json - import os - - from twisted.internet import defer -@@ -25,7 +27,6 @@ from buildbot import pbutil - from buildbot.process.properties import Properties - from buildbot.schedulers import base - from buildbot.util import ascii2unicode --from buildbot.util import json - from buildbot.util import netstrings - from buildbot.util.maildir import MaildirService - -diff --git a/master/buildbot/scripts/dataspec.py b/master/buildbot/scripts/dataspec.py -index 047aa297e..a3017db82 100644 ---- a/master/buildbot/scripts/dataspec.py -+++ b/master/buildbot/scripts/dataspec.py -@@ -12,6 +12,8 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json - import os - import sys - -@@ -20,7 +22,6 @@ from twisted.internet import defer - from buildbot.data import connector - from buildbot.test.fake import fakemaster - from buildbot.util import in_reactor --from buildbot.util import json - - - @in_reactor -diff --git a/master/buildbot/scripts/processwwwindex.py b/master/buildbot/scripts/processwwwindex.py -index 57db423c9..e7180f623 100644 ---- a/master/buildbot/scripts/processwwwindex.py -+++ b/master/buildbot/scripts/processwwwindex.py -@@ -15,6 +15,7 @@ - from __future__ import division - from __future__ import print_function - -+import json - import os - - import jinja2 -@@ -23,7 +24,6 @@ from twisted.internet import defer - - from buildbot.test.fake import fakemaster - from buildbot.util import in_reactor --from buildbot.util import json - from buildbot.www import auth - from buildbot.www.config import IndexResource - from buildbot.www.service import WWWService -diff --git a/master/buildbot/steps/transfer.py b/master/buildbot/steps/transfer.py -index a3d423848..5dfb3b6a9 100644 ---- a/master/buildbot/steps/transfer.py -+++ b/master/buildbot/steps/transfer.py -@@ -12,6 +12,8 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json - import os - import stat - -@@ -26,7 +28,6 @@ from buildbot.process.buildstep import FAILURE - from buildbot.process.buildstep import SKIPPED - from buildbot.process.buildstep import SUCCESS - from buildbot.process.buildstep import BuildStep --from buildbot.util import json - from buildbot.util.eventual import eventually - from buildbot.worker_transition import WorkerAPICompatMixin - from buildbot.worker_transition import reportDeprecatedWorkerNameUsage -diff --git a/master/buildbot/test/fake/fakedata.py b/master/buildbot/test/fake/fakedata.py -index b5a2ef58c..92bfd5c7b 100644 ---- a/master/buildbot/test/fake/fakedata.py -+++ b/master/buildbot/test/fake/fakedata.py -@@ -16,6 +16,8 @@ from future.utils import iteritems - from future.utils import itervalues - from future.utils import text_type - -+import json -+ - from twisted.internet import defer - from twisted.internet import reactor - from twisted.python import failure -@@ -23,7 +25,6 @@ from twisted.python import failure - from buildbot.data import connector - from buildbot.db.buildrequests import AlreadyClaimedError - from buildbot.test.util import validation --from buildbot.util import json - from buildbot.util import service - - -diff --git a/master/buildbot/test/fake/fakedb.py b/master/buildbot/test/fake/fakedb.py -index 740e6b1e3..47340ef63 100644 ---- a/master/buildbot/test/fake/fakedb.py -+++ b/master/buildbot/test/fake/fakedb.py -@@ -25,6 +25,7 @@ from future.utils import text_type - import base64 - import copy - import hashlib -+import json - - from twisted.internet import defer - from twisted.internet import reactor -@@ -35,7 +36,6 @@ from buildbot.db import changesources - from buildbot.db import schedulers - from buildbot.test.util import validation - from buildbot.util import datetime2epoch --from buildbot.util import json - from buildbot.util import service - - -diff --git a/master/buildbot/test/integration/test_www.py b/master/buildbot/test/integration/test_www.py -index de8805f35..fcfc6b549 100644 ---- a/master/buildbot/test/integration/test_www.py -+++ b/master/buildbot/test/integration/test_www.py -@@ -12,6 +12,9 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json -+ - import mock - - from twisted.internet import defer -@@ -27,7 +30,6 @@ from buildbot.test.fake import fakedb - from buildbot.test.fake import fakemaster - from buildbot.test.util import db - from buildbot.test.util import www --from buildbot.util import json - from buildbot.www import service as wwwservice - from buildbot.www import auth - from buildbot.www import authz -diff --git a/master/buildbot/test/unit/test_changes_gerritchangesource.py b/master/buildbot/test/unit/test_changes_gerritchangesource.py -index fe00fcf58..b5c939065 100644 ---- a/master/buildbot/test/unit/test_changes_gerritchangesource.py -+++ b/master/buildbot/test/unit/test_changes_gerritchangesource.py -@@ -15,6 +15,7 @@ - from future.utils import iteritems - - import datetime -+import json - import types - - from twisted.internet import defer -@@ -25,7 +26,6 @@ from buildbot.test.fake import httpclientservice as fakehttpclientservice - from buildbot.test.fake import fakedb - from buildbot.test.fake.change import Change - from buildbot.test.util import changesource --from buildbot.util import json - - - class TestGerritHelpers(unittest.TestCase): -diff --git a/master/buildbot/test/unit/test_clients_tryclient.py b/master/buildbot/test/unit/test_clients_tryclient.py -index 765d6444f..13adbf8cd 100644 ---- a/master/buildbot/test/unit/test_clients_tryclient.py -+++ b/master/buildbot/test/unit/test_clients_tryclient.py -@@ -12,10 +12,12 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json -+ - from twisted.trial import unittest - - from buildbot.clients import tryclient --from buildbot.util import json - - - class createJobfile(unittest.TestCase): -diff --git a/master/buildbot/test/unit/test_db_buildsets.py b/master/buildbot/test/unit/test_db_buildsets.py -index 5acea7a54..49c64790a 100644 ---- a/master/buildbot/test/unit/test_db_buildsets.py -+++ b/master/buildbot/test/unit/test_db_buildsets.py -@@ -12,7 +12,9 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ - import datetime -+import json - - import mock - -@@ -30,7 +32,6 @@ from buildbot.test.util import validation - from buildbot.util import UTC - from buildbot.util import datetime2epoch - from buildbot.util import epoch2datetime --from buildbot.util import json - - - class Tests(interfaces.InterfaceTests): -diff --git a/master/buildbot/test/unit/test_mq_wamp.py b/master/buildbot/test/unit/test_mq_wamp.py -index 3ad41ae7d..55a9bf95f 100644 ---- a/master/buildbot/test/unit/test_mq_wamp.py -+++ b/master/buildbot/test/unit/test_mq_wamp.py -@@ -12,8 +12,10 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ - from future.builtins import range - -+import json - import os - import textwrap - -@@ -26,7 +28,6 @@ from twisted.trial import unittest - - from buildbot.mq import wamp - from buildbot.test.fake import fakemaster --from buildbot.util import json - from buildbot.wamp import connector - - -diff --git a/master/buildbot/test/unit/test_schedulers_forcesched.py b/master/buildbot/test/unit/test_schedulers_forcesched.py -index 72e19a830..22f3dea31 100644 ---- a/master/buildbot/test/unit/test_schedulers_forcesched.py -+++ b/master/buildbot/test/unit/test_schedulers_forcesched.py -@@ -16,6 +16,8 @@ from __future__ import division - from __future__ import print_function - from future.utils import iteritems - -+import json -+ - from twisted.internet import defer - from twisted.trial import unittest - -@@ -36,7 +38,6 @@ from buildbot.schedulers.forcesched import oneCodebase - from buildbot.test.util import scheduler - from buildbot.test.util.config import ConfigErrorsMixin - from buildbot.test.util.warnings import assertProducesWarning --from buildbot.util import json - from buildbot.worker_transition import DeprecatedWorkerNameWarning - - -diff --git a/master/buildbot/test/unit/test_schedulers_trysched.py b/master/buildbot/test/unit/test_schedulers_trysched.py -index c5f9f347e..439ce5d2d 100644 ---- a/master/buildbot/test/unit/test_schedulers_trysched.py -+++ b/master/buildbot/test/unit/test_schedulers_trysched.py -@@ -12,7 +12,9 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ - import cStringIO as StringIO -+import json - import os - import shutil - import sys -@@ -27,7 +29,6 @@ from twisted.trial import unittest - from buildbot.schedulers import trysched - from buildbot.test.util import dirs - from buildbot.test.util import scheduler --from buildbot.util import json - - - class TryBase(unittest.TestCase): -diff --git a/master/buildbot/test/unit/test_scripts_processwwwindex.py b/master/buildbot/test/unit/test_scripts_processwwwindex.py -index db01a5239..c265b8ab7 100644 ---- a/master/buildbot/test/unit/test_scripts_processwwwindex.py -+++ b/master/buildbot/test/unit/test_scripts_processwwwindex.py -@@ -12,12 +12,13 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json - import tempfile - - from twisted.trial import unittest - - from buildbot.scripts import processwwwindex --from buildbot.util import json - - - class TestUsersClient(unittest.TestCase): -diff --git a/master/buildbot/test/unit/test_steps_transfer.py b/master/buildbot/test/unit/test_steps_transfer.py -index ee70af830..c91f0dfac 100644 ---- a/master/buildbot/test/unit/test_steps_transfer.py -+++ b/master/buildbot/test/unit/test_steps_transfer.py -@@ -12,8 +12,10 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ - from future.utils import iteritems - -+import json - import os - import shutil - import stat -@@ -38,7 +40,6 @@ from buildbot.test.fake.remotecommand import ExpectRemoteRef - from buildbot.test.util import steps - from buildbot.test.util.warnings import assertNotProducesWarnings - from buildbot.test.util.warnings import assertProducesWarning --from buildbot.util import json - from buildbot.worker_transition import DeprecatedWorkerAPIWarning - from buildbot.worker_transition import DeprecatedWorkerNameWarning - -diff --git a/master/buildbot/test/unit/test_www_oauth.py b/master/buildbot/test/unit/test_www_oauth.py -index 177385cb0..ba7310bf8 100644 ---- a/master/buildbot/test/unit/test_www_oauth.py -+++ b/master/buildbot/test/unit/test_www_oauth.py -@@ -12,6 +12,8 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json - import os - import webbrowser - -@@ -26,7 +28,6 @@ from twisted.web.resource import Resource - from twisted.web.server import Site - - from buildbot.test.util import www --from buildbot.util import json - - try: - import requests -@@ -277,7 +278,6 @@ class OAuth2AuthGitHubE2E(www.WwwTestMixin, unittest.TestCase): - raise unittest.SkipTest( - "Need to pass OAUTHCONF path to json file via environ to run this e2e test") - -- import json - config = json.load(open(os.environ['OAUTHCONF']))[self.authClass] - from buildbot.www import oauth2 - self.auth = self._instantiateAuth( -diff --git a/master/buildbot/test/unit/test_www_rest.py b/master/buildbot/test/unit/test_www_rest.py -index c0e1a2680..2b87e4d0d 100644 ---- a/master/buildbot/test/unit/test_www_rest.py -+++ b/master/buildbot/test/unit/test_www_rest.py -@@ -18,6 +18,7 @@ from future.utils import itervalues - from future.utils import string_types - from future.utils import text_type - -+import json - import re - - import mock -@@ -27,7 +28,6 @@ from twisted.trial import unittest - - from buildbot.test.fake import endpoint - from buildbot.test.util import www --from buildbot.util import json - from buildbot.www import authz - from buildbot.www import rest - from buildbot.www.rest import JSONRPC_CODES -diff --git a/master/buildbot/test/unit/test_www_sse.py b/master/buildbot/test/unit/test_www_sse.py -index ba2a1f0a9..3eac07047 100644 ---- a/master/buildbot/test/unit/test_www_sse.py -+++ b/master/buildbot/test/unit/test_www_sse.py -@@ -13,13 +13,13 @@ - # - # Copyright Buildbot Team Members - import datetime -+import json - - from twisted.trial import unittest - - from buildbot.test.unit import test_data_changes - from buildbot.test.util import www - from buildbot.util import datetime2epoch --from buildbot.util import json - from buildbot.www import sse - - -diff --git a/master/buildbot/test/unit/test_www_ws.py b/master/buildbot/test/unit/test_www_ws.py -index a40393556..91051b21d 100644 ---- a/master/buildbot/test/unit/test_www_ws.py -+++ b/master/buildbot/test/unit/test_www_ws.py -@@ -12,12 +12,14 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json -+ - from mock import Mock - - from twisted.trial import unittest - - from buildbot.test.util import www --from buildbot.util import json - from buildbot.www import ws - - -diff --git a/master/buildbot/test/util/validation.py b/master/buildbot/test/util/validation.py -index 13647a63b..292e72bee 100644 ---- a/master/buildbot/test/util/validation.py -+++ b/master/buildbot/test/util/validation.py -@@ -19,10 +19,10 @@ from future.utils import iteritems - from future.utils import text_type - - import datetime -+import json - import re - - from buildbot.util import UTC --from buildbot.util import json - - # Base class - -diff --git a/master/buildbot/test/util/www.py b/master/buildbot/test/util/www.py -index 5fe38e268..d737327dd 100644 ---- a/master/buildbot/test/util/www.py -+++ b/master/buildbot/test/util/www.py -@@ -17,6 +17,7 @@ from future.utils import integer_types - from future.utils import iteritems - - import cgi -+import json - import os - import pkg_resources - from cStringIO import StringIO -@@ -28,7 +29,6 @@ from twisted.internet import defer - from twisted.web import server - - from buildbot.test.fake import fakemaster --from buildbot.util import json - from buildbot.www import auth - from buildbot.www import authz - -diff --git a/master/buildbot/util/__init__.py b/master/buildbot/util/__init__.py -index ed78bf25f..3a9d55ca5 100644 ---- a/master/buildbot/util/__init__.py -+++ b/master/buildbot/util/__init__.py -@@ -12,6 +12,7 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ - from __future__ import division - from __future__ import print_function - -@@ -28,9 +29,12 @@ import locale - import re - import textwrap - import time -+import json - - from future.utils import text_type - from twisted.python import reflect -+from twisted.python.versions import Version -+from twisted.python.deprecate import deprecatedModuleAttribute - - from zope.interface import implementer - -@@ -181,26 +185,14 @@ def ascii2unicode(x): - return x - return text_type(x, 'ascii') - -+_hush_pyflakes = [json] - --# place a working json module at 'buildbot.util.json'. Code is adapted from --# Paul Wise <pabs@debian.org>: --# http://lists.debian.org/debian-python/2010/02/msg00016.html --# json doesn't exist as a standard module until python2.6 --# However python2.6's json module is much slower than simplejson, so we prefer --# to use simplejson if available. --try: -- import simplejson as json -- assert json --except ImportError: -- import json # python 2.6 or 2.7 --try: -- _tmp = json.loads --except AttributeError: -- import warnings -- import sys -- warnings.warn("Use simplejson, not the old json module.") -- sys.modules.pop('json') # get rid of the bad json module -- import simplejson as json -+deprecatedModuleAttribute( -+ Version("buildbot", 0, 9, 4), -+ message="Use json from the standard library instead.", -+ moduleName="buildbot.util", -+ name="json", -+) - - - def toJson(obj): -@@ -432,7 +424,7 @@ def dictionary_merge(a, b): - - - __all__ = [ -- 'naturalSort', 'now', 'formatInterval', 'ComparableMixin', 'json', -+ 'naturalSort', 'now', 'formatInterval', 'ComparableMixin', - 'safeTranslate', 'none_or_str', - 'NotABranch', 'deferredLocked', 'UTC', - 'diffSets', 'makeList', 'in_reactor', 'string2boolean', -diff --git a/master/buildbot/worker/docker.py b/master/buildbot/worker/docker.py -index f39132737..a91424f1a 100644 ---- a/master/buildbot/worker/docker.py -+++ b/master/buildbot/worker/docker.py -@@ -19,6 +19,7 @@ from __future__ import division - from __future__ import print_function - - import hashlib -+import json - import socket - from io import BytesIO - -@@ -28,7 +29,6 @@ from twisted.python import log - - from buildbot import config - from buildbot.interfaces import LatentWorkerFailedToSubstantiate --from buildbot.util import json - from buildbot.worker import AbstractLatentWorker - - try: -diff --git a/master/buildbot/www/config.py b/master/buildbot/www/config.py -index e3f6f6214..4030e8e73 100644 ---- a/master/buildbot/www/config.py -+++ b/master/buildbot/www/config.py -@@ -12,6 +12,8 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json - import os - import posixpath - -@@ -22,7 +24,6 @@ from twisted.python import log - from twisted.web.error import Error - - from buildbot.interfaces import IConfigured --from buildbot.util import json - from buildbot.www import resource - - -diff --git a/master/buildbot/www/hooks/base.py b/master/buildbot/www/hooks/base.py -index 149c3f925..9255be44a 100644 ---- a/master/buildbot/www/hooks/base.py -+++ b/master/buildbot/www/hooks/base.py -@@ -17,7 +17,8 @@ - # and inspired from code from the Chromium project - # otherwise, Andrew Melo <andrew.melo@gmail.com> wrote the rest - # but "the rest" is pretty minimal --from buildbot.util import json -+ -+import json - - - def getChanges(request, options=None): -diff --git a/master/buildbot/www/hooks/gitlab.py b/master/buildbot/www/hooks/gitlab.py -index c7663a63a..ab1b65690 100644 ---- a/master/buildbot/www/hooks/gitlab.py -+++ b/master/buildbot/www/hooks/gitlab.py -@@ -12,14 +12,14 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ -+import json - import re - - from dateutil.parser import parse as dateparse - - from twisted.python import log - --from buildbot.util import json -- - - def _process_change(payload, user, repo, repo_url, project, codebase=None): - """ -diff --git a/master/buildbot/www/hooks/googlecode.py b/master/buildbot/www/hooks/googlecode.py -index b8709bb4d..2a370e4f9 100644 ---- a/master/buildbot/www/hooks/googlecode.py -+++ b/master/buildbot/www/hooks/googlecode.py -@@ -14,12 +14,12 @@ - # Copyright 2011, Louis Opter <kalessin@kalessin.fr> - # - # Quite inspired from the github hook. -+ - import hmac -+import json - - from twisted.python import log - --from buildbot.util import json -- - - class GoogleCodeAuthFailed(Exception): - pass -diff --git a/master/buildbot/www/oauth2.py b/master/buildbot/www/oauth2.py -index 1d1ea4efd..baa9dab25 100644 ---- a/master/buildbot/www/oauth2.py -+++ b/master/buildbot/www/oauth2.py -@@ -17,6 +17,7 @@ from future.moves.urllib.parse import urlencode - from future.utils import iteritems - from future.utils import string_types - -+import json - from posixpath import join - - import requests -@@ -24,7 +25,6 @@ import requests - from twisted.internet import defer - from twisted.internet import threads - --from buildbot.util import json - from buildbot.www import auth - from buildbot.www import resource - -diff --git a/master/buildbot/www/rest.py b/master/buildbot/www/rest.py -index 3147a33b7..30f79d6ea 100644 ---- a/master/buildbot/www/rest.py -+++ b/master/buildbot/www/rest.py -@@ -19,6 +19,7 @@ from future.utils import text_type - import cgi - import datetime - import fnmatch -+import json - import re - from contextlib import contextmanager - -@@ -28,7 +29,6 @@ from twisted.web.error import Error - - from buildbot.data import exceptions - from buildbot.data import resultspec --from buildbot.util import json - from buildbot.util import toJson - from buildbot.www import resource - from buildbot.www.authz import Forbidden -diff --git a/master/buildbot/www/sse.py b/master/buildbot/www/sse.py -index df076195e..741328844 100644 ---- a/master/buildbot/www/sse.py -+++ b/master/buildbot/www/sse.py -@@ -12,8 +12,10 @@ - # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - # - # Copyright Buildbot Team Members -+ - from future.utils import itervalues - -+import json - import uuid - - from twisted.python import log -@@ -21,7 +23,6 @@ from twisted.web import resource - from twisted.web import server - - from buildbot.data.exceptions import InvalidPathError --from buildbot.util import json - from buildbot.util import toJson - - -diff --git a/master/buildbot/www/ws.py b/master/buildbot/www/ws.py -index ed7bcad8f..1e48ec553 100644 ---- a/master/buildbot/www/ws.py -+++ b/master/buildbot/www/ws.py -@@ -15,13 +15,14 @@ - from future.utils import itervalues - from future.utils import string_types - -+import json -+ - from autobahn.twisted.resource import WebSocketResource - from autobahn.twisted.websocket import WebSocketServerFactory - from autobahn.twisted.websocket import WebSocketServerProtocol - from twisted.internet import defer - from twisted.python import log - --from buildbot.util import json - from buildbot.util import toJson - - -diff --git a/master/docs/developer/utils.rst b/master/docs/developer/utils.rst -index e1e64503a..2470330bd 100644 ---- a/master/docs/developer/utils.rst -+++ b/master/docs/developer/utils.rst -@@ -506,18 +506,6 @@ The ``@poll.method`` decorator makes this behavior easy and reliable. - Force a call to the decorated method now. - If the decorated method is currently running, another call will begin as soon as it completes. - --:py:mod:`buildbot.util.json` --~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- --.. py:module:: buildbot.util.json -- --This package is just an import of the best available JSON module. --Use it instead of a more complex conditional import of :mod:`simplejson` or :mod:`json`: -- --.. code-block:: python -- -- from buildbot.util import json -- - :py:mod:`buildbot.util.maildir` - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - --- -2.11.0 - diff --git a/dev-util/buildbot/files/buildbot-0.9.Addmissedtestingtemplates.patch b/dev-util/buildbot/files/buildbot-0.9.Addmissedtestingtemplates.patch deleted file mode 100644 index 3546c3111ba3..000000000000 --- a/dev-util/buildbot/files/buildbot-0.9.Addmissedtestingtemplates.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 5da64c3dda866a3e3ddf52ad00f455dc2c536a18 Mon Sep 17 00:00:00 2001 -From: Brian Dolbec <dolsen@gentoo.org> -Date: Wed, 4 Jan 2017 17:44:56 -0800 -Subject: [PATCH] master/setup.py: Add missed testing templates - ---- - master/setup.py | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/master/setup.py b/master/setup.py -index be2ace952..79bcf143f 100755 ---- a/master/setup.py -+++ b/master/setup.py -@@ -206,6 +206,8 @@ setup_args = { - ]), - include("buildbot/spec", "*.raml"), - include("buildbot/spec/types", "*.raml"), -+ include("buildbot/test/unit/test_templates_dir", "*.html"), -+ include("buildbot/test/unit/test_templates_dir/plugin", "*.*"), - ] + include_statics("buildbot/www/static"), - 'cmdclass': {'install_data': install_data_twisted, - 'sdist': our_sdist}, --- -2.11.0 - |