summaryrefslogtreecommitdiff
path: root/dev-python/jenkins-webapi
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/jenkins-webapi
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/jenkins-webapi')
-rw-r--r--dev-python/jenkins-webapi/Manifest12
-rw-r--r--dev-python/jenkins-webapi/files/local_jenkins_war.patch12
-rw-r--r--dev-python/jenkins-webapi/files/tests_py27.patch7
-rw-r--r--dev-python/jenkins-webapi/jenkins-webapi-0.3.2.ebuild49
-rw-r--r--dev-python/jenkins-webapi/jenkins-webapi-0.4.0-r1.ebuild46
-rw-r--r--dev-python/jenkins-webapi/jenkins-webapi-0.5.0.ebuild59
-rw-r--r--dev-python/jenkins-webapi/metadata.xml8
7 files changed, 193 insertions, 0 deletions
diff --git a/dev-python/jenkins-webapi/Manifest b/dev-python/jenkins-webapi/Manifest
new file mode 100644
index 000000000000..f91e8338945f
--- /dev/null
+++ b/dev-python/jenkins-webapi/Manifest
@@ -0,0 +1,12 @@
+AUX local_jenkins_war.patch 507 SHA256 67280cec608df88bd84c3bce86fc53c33dec3525d86df08411e475146321e84b SHA512 8283091c6b491ff6207a678ccbb6a219691788c92a9aaabef1c0f60961acd0661ba2e8ab7c827d09f2b9eb3c61890cb017d3c36a6215ff6376875956867af0a6 WHIRLPOOL 6ca56fa00f4fb1c7f8d80209b67949c26f2cc3e7b0c03a2f91c5b0322228ff893cacadf45b950f13661728cac80d549bc6185eca9267d40e7b63390e74a52dd5
+AUX tests_py27.patch 201 SHA256 e4ece30897bb72567e4eba12b2b5b0566f05dec60aefd0c8750149c82388a892 SHA512 364d3dbaacc3573d6cff0a5b42553860276bbef20b77b09ebedb5bec2e5a644cdd0b186595ba104f1764decdeb7272d4584ebf83b2012bbec3595eb59d68b81f WHIRLPOOL aef08ff5be531bd16eb02f3fbb5c5f73527c5401e482104a25987fa43e1677b6c19c51b27b1c33fd6f0f22d5d0c81900b5b19387ecdf8e6783112618e832a7e0
+DIST jenkins-1.596.3.war 68396864 SHA256 85409f83b81ba90094ecc9e3ea6df0920ecfb3064b731a6a5c9b397eda18b47f SHA512 8652d4d18e3258208fe190c4a6aa5586faa66f690d7d7f7369c5490a587e3ec5e074dc22f2c8caedf5e5335f5b8f511717b2d6eb667a61e9948a703bf80310fe WHIRLPOOL ac6401ebe42a42495dc148d71a61daf49905292e6cbcbb5d8e41f520a01c8f1f783fd75baf908a3e99fbd9f25483366a3a5a005fa04b5843550c8e211f4d8e2d
+DIST jenkins-webapi-0.3.2.tar.gz 14831 SHA256 8f67d86c1f95edb79928af9b3b7c60ef9a63bfbfd19b6fe0a892ef4039f25500 SHA512 2ac59c90bba48406cc9fe5595505d5836eab1147869fbc8c06577767891d37904bffa5516316af0cb25f7f9193ae5277c0219ecc9daf5e0efa093fd449d1f4f0 WHIRLPOOL e4562a1857d7c526aec8c5ecc35f6a0644c48bf69fad4bdfef20f0708fdc0dfb5595c428acdc03e1df02c3d21669d47c89e0f3a99c1ee09a9741f9e21ab83b48
+DIST jenkins-webapi-0.4.0.tar.gz 16149 SHA256 7515b1e0503e07d50088e32205873146eda3b1132d8a6508e28f4e935c41e8b2 SHA512 ae40366e6fb6414391287ffa42ec92fba1971f070ac718d521c5b10f6e47d14ceea15a8c71f559380356530fdb2f826e08a6c611813b407dad73dab39fcddfeb WHIRLPOOL 30abf44c7d1ec6884baa3481c9d2f234f46f812d5ee6a8d9e49de8bc367ffef9c58f7653dcd30c24a308372cb8f6211e51f40e441e17f9ef15abd222de5d775b
+DIST jenkins-webapi-0.5.0.tar.gz 78813 SHA256 d3a730761bd5164683e1bfff53332b0bf056393e0660769ba8e09df6d555304d SHA512 dde91231e6fe6713eb5953efa038d44a820b51968c2b0591e5dd064c7a35c7dab4d1780370dc97a0a671b3d3cb7d8a48e571c7c0af4f0d5f8a65430c8c074eb3 WHIRLPOOL 2110593ae171efd30f4f0fd407d8bc526e85ce53a3670b5f4c09c73aa8a880cdcc314091104e1684485899a65227a2da18fba7c358a7d11a80f0de5ac99a26c7
+EBUILD jenkins-webapi-0.3.2.ebuild 1170 SHA256 ab83dc6cc7b5cffd43841151bea8168ff4b0918d799614a27263598943b0ad33 SHA512 e566ef0870cccf094f27a099fdca3875d6545e0659cc4263ea493945ce69724089143ec25d656fe5f02c0795398319c34e01bb5a4ce61ecc2ea4093994384fd7 WHIRLPOOL 4f5fe803af5c6aa733dca89332504c1c65513c5494a4728c6b55d5d8520564ed1721f92e64f7263fe7a11f459a2df338cd5e6e3555ea600c72a96e9a81602b73
+EBUILD jenkins-webapi-0.4.0-r1.ebuild 1136 SHA256 c5c748e3dd0ec85dd6be58da4fa91c1e26e90d2eafeafc353a3e7d049fabc842 SHA512 e5275533ed8f09399c6159338e19e7461212f0df25e69cd4739534a4065d5fb91f05eb085f0aaf3c09b1d4e8cc0266eceb60a788ffe387a188a5363f63279578 WHIRLPOOL 1fcc6439f124affa8bc25be7af1e8a9caa00091098536970b70b250aa6d75b8e57010e8f5d23a375cbe0479ac6c192f0479631bf170300b5b06c13328af31d85
+EBUILD jenkins-webapi-0.5.0.ebuild 1561 SHA256 e80283637c9c3ce0dd27f43c5d56b2542fe052cb545dc707e83b48b0b813a327 SHA512 0f161b5bee11e27c546248db1ac75ad4d0abf687e6446764a65b049179c90d71c74e2a2f4b6098eee8749ee78f87a29cb6edc10ea929fd5f215ada77f120bc6f WHIRLPOOL cd1ac04b9aada3caa771aa0a9831c51f642088469f9b28b6444a87cf584ee4182e99d6c599d3f6494d55ee65d21bfb72e42742a3e4554027cd878c4e04890d27
+MISC ChangeLog 3083 SHA256 5421c75abe4fefb4fb0b809f29929b6fd6f505c5260318992f86ce613cb61474 SHA512 5818bb8215448021688a54c13e08af691a3cf74b381df02573263f0e4c0dec950da02129d348a886b934292b925f3e4149c43f803f4cbe483f611bf12e850a54 WHIRLPOOL 1eb754fc2a34121160dd7338e0e2313942849e7effefc78c12ed0e44c47f7dadaf842e1296a6af7084bacd26f58e1ad7c7ce5c954bc5c54c6c2140c9e5db3e20
+MISC ChangeLog-2015 1159 SHA256 020bd62d652ec6aec530d51854b8b3e2460a29ff0fa555c210118d37f81b6cc5 SHA512 72fb40bdc99da6d2ffce83863da366d0fccc5e732e9bcea150939688a22b78254de41200e9ab7e00894f3a25670c4901e597d2786e325c2c39c669ddf6e637d1 WHIRLPOOL a1a546956a6fcad72ced8f8e4d674184512106b22473c01318a11fc4d57a50bb3669ad87f7f92fb9a59ab43c86958d8d6b557acbc67c7326852c09df96bb7a1a
+MISC metadata.xml 254 SHA256 810a5e11377d8eaa51460be453e5ffa9d2c36d588fa93b5ad1d652c77b5f5123 SHA512 2e112d5670c712a9738320e0505f1758f82d57ddcb2bc71e3ad22ee08ef52538f150c316571e59cc3a86f3647cf3ebefe715762c79048e9a2ea56e1a6245ee77 WHIRLPOOL 86185a8bc67d176cbcbe5dfe4bcbb3e233de59dedb65e62bd1a042fb4e59f9653dc20d873b325b1e3ee1663f19d4bf8c2deaa44eb307cf5823add809b864f125
diff --git a/dev-python/jenkins-webapi/files/local_jenkins_war.patch b/dev-python/jenkins-webapi/files/local_jenkins_war.patch
new file mode 100644
index 000000000000..c41f5bb51ce3
--- /dev/null
+++ b/dev-python/jenkins-webapi/files/local_jenkins_war.patch
@@ -0,0 +1,12 @@
+--- tests/install.py.orig 2014-11-23 21:21:29.000000000 +0100
++++ tests/install.py 2015-01-28 18:29:42.750933314 +0100
+@@ -23,7 +23,7 @@
+ self.destdir = destdir
+
+ self.logfile = logfile if logfile else pjoin(self.destdir, 'jenkins.log')
+- self.jenkinswar = pjoin(self.destdir, 'jenkins.war')
++ self.jenkinswar = pjoin('/opt/jenkins', 'jenkins.war')
+ self.jenkinscli = pjoin(self.destdir, 'jenkins-cli.jar')
+ self.homedir = pjoin(self.destdir, 'home')
+
+
diff --git a/dev-python/jenkins-webapi/files/tests_py27.patch b/dev-python/jenkins-webapi/files/tests_py27.patch
new file mode 100644
index 000000000000..5a6e8c9ddf69
--- /dev/null
+++ b/dev-python/jenkins-webapi/files/tests_py27.patch
@@ -0,0 +1,7 @@
+--- tests/conftest.py.orig 2014-11-23 21:21:29.000000000 +0100
++++ tests/conftest.py 2015-01-28 18:37:25.388067816 +0100
+@@ -1,3 +1,4 @@
++# -*- coding: utf-8 -*-
+ import re
+ import time
+ import pytest
diff --git a/dev-python/jenkins-webapi/jenkins-webapi-0.3.2.ebuild b/dev-python/jenkins-webapi/jenkins-webapi-0.3.2.ebuild
new file mode 100644
index 000000000000..032cd14fbfd2
--- /dev/null
+++ b/dev-python/jenkins-webapi/jenkins-webapi-0.3.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Module for interacting with the Jenkins CI server"
+HOMEPAGE="https://github.com/gvalkov/jenkins-webapi"
+SRC_URI="https://github.com/gvalkov/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND=">=dev-python/requests-2.4.3[${PYTHON_USEDEP}]"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${RDEPEND}
+ dev-util/jenkins-bin
+ >=dev-python/pytest-2.6.3[${PYTHON_USEDEP}]
+ >=dev-python/termcolor-1.1.0[${PYTHON_USEDEP}]
+ >=dev-python/pytest-cov-1.8.0[${PYTHON_USEDEP}]
+ >=dev-python/httmock-1.2.2[${PYTHON_USEDEP}] )
+ doc? (
+ >=dev-python/sphinx-1.2.3[${PYTHON_USEDEP}]
+ >=dev-python/alabaster-0.6.1[${PYTHON_USEDEP}] )
+ "
+
+PATCHES=(
+ "${FILESDIR}"/local_jenkins_war.patch
+ "${FILESDIR}"/tests_py27.patch
+ )
+
+python_test() {
+ emake test
+}
+
+python_compile_all() {
+ use doc && emake -C doc html
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/_build/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/jenkins-webapi/jenkins-webapi-0.4.0-r1.ebuild b/dev-python/jenkins-webapi/jenkins-webapi-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..36338e08f585
--- /dev/null
+++ b/dev-python/jenkins-webapi/jenkins-webapi-0.4.0-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Module for interacting with the Jenkins CI server"
+HOMEPAGE="https://github.com/gvalkov/jenkins-webapi"
+SRC_URI="https://dev.gentoo.org/~idella4/tarballs/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+RESTRICT="mirror"
+
+RDEPEND=">=dev-python/requests-2.4.3[${PYTHON_USEDEP}]"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${RDEPEND}
+ dev-util/jenkins-bin
+ >=dev-python/pytest-2.6.3[${PYTHON_USEDEP}]
+ >=dev-python/termcolor-1.1.0[${PYTHON_USEDEP}]
+ >=dev-python/pytest-cov-1.8.0[${PYTHON_USEDEP}]
+ >=dev-python/httmock-1.2.2[${PYTHON_USEDEP}] )
+ doc? (
+ >=dev-python/sphinx-1.2.3[${PYTHON_USEDEP}]
+ >=dev-python/alabaster-0.6.1[${PYTHON_USEDEP}] )
+ "
+PATCHES=( "${FILESDIR}"/local_jenkins_war.patch )
+
+python_test() {
+ emake test
+}
+
+python_compile_all() {
+ use doc && emake -C doc html
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/_build/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/jenkins-webapi/jenkins-webapi-0.5.0.ebuild b/dev-python/jenkins-webapi/jenkins-webapi-0.5.0.ebuild
new file mode 100644
index 000000000000..b918a072d7ea
--- /dev/null
+++ b/dev-python/jenkins-webapi/jenkins-webapi-0.5.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
+
+inherit distutils-r1
+
+JENKINS_VERSION="1.596.3"
+
+DESCRIPTION="Module for interacting with the Jenkins CI server"
+HOMEPAGE="https://github.com/gvalkov/jenkins-webapi"
+SRC_URI="https://github.com/gvalkov/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ test? ( http://mirrors.jenkins-ci.org/war-stable/${JENKINS_VERSION}/jenkins.war -> jenkins-${JENKINS_VERSION}.war )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND=">=dev-python/requests-2.7.0[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${RDEPEND}
+ net-analyzer/netcat
+ net-misc/curl
+ app-arch/unzip
+ >=virtual/jre-1.7.0
+ >=dev-python/pytest-2.6.3[${PYTHON_USEDEP}]
+ >=dev-python/termcolor-1.1.0[${PYTHON_USEDEP}]
+ >=dev-python/pytest-cov-1.8.0[${PYTHON_USEDEP}]
+ >=dev-python/httmock-1.2.2[${PYTHON_USEDEP}] )
+ doc? (
+ >=dev-python/sphinx-1.2.3[${PYTHON_USEDEP}]
+ >=dev-python/alabaster-0.6.1[${PYTHON_USEDEP}] )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+
+ if use test; then
+ # tests fail with jenkins 1.6x
+ # https://github.com/gvalkov/jenkins-webapi/issues/14
+ mkdir -p "${P}/tests/tmp/latest"
+ cp "${DISTDIR}/jenkins-${JENKINS_VERSION}.war" "${P}/tests/tmp/latest/jenkins.war"
+ fi
+}
+
+python_test() {
+ emake test
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/jenkins-webapi/metadata.xml b/dev-python/jenkins-webapi/metadata.xml
new file mode 100644
index 000000000000..773d698964bf
--- /dev/null
+++ b/dev-python/jenkins-webapi/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">gvalkov/jenkins-webapi</remote-id>
+ </upstream>
+</pkgmetadata>