Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537440 - dev-python/jenkins-webapi - python library to access Jenkins via API
Summary: dev-python/jenkins-webapi - python library to access Jenkins via API
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/gvalkov/jenkins-we...
Whiteboard:
Keywords:
Depends on: 537984
Blocks:
  Show dependency tree
 
Reported: 2015-01-23 13:00 UTC by Tomáš Mózes
Modified: 2015-01-29 09:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
jenkins-webapi-0.4.0.ebuild (jenkins-webapi-0.4.0.ebuild,523 bytes, text/plain)
2015-01-23 13:00 UTC, Tomáš Mózes
Details
jenkins-webapi-0.4.0.ebuild (jenkins-webapi-0.4.0.ebuild,523 bytes, text/plain)
2015-01-23 13:02 UTC, Tomáš Mózes
Details
jenkins-webapi-0.4.0.ebuild (jenkins-webapi-0.4.0.ebuild,506 bytes, text/plain)
2015-01-23 13:06 UTC, Tomáš Mózes
Details
jenkins-webapi-0.3.2.ebuild (jenkins-webapi-0.3.2.ebuild,1.09 KB, text/plain)
2015-01-28 17:52 UTC, Tomáš Mózes
Details
local_jenkins_war.patch (local_jenkins_war.patch,506 bytes, patch)
2015-01-28 17:52 UTC, Tomáš Mózes
Details | Diff
tests_py27.patch (tests_py27.patch,201 bytes, patch)
2015-01-28 17:52 UTC, Tomáš Mózes
Details | Diff
jenkins-webapi-0.3.2.ebuild (jenkins-webapi-0.3.2.ebuild,1.27 KB, text/plain)
2015-01-29 08:21 UTC, Tomáš Mózes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2015-01-23 13:00:03 UTC
Created attachment 394706 [details]
jenkins-webapi-0.4.0.ebuild

Module for interacting with the Jenkins CI server

Jenkins-webapi is a library for programatically accessing Jenkins' remote web API. It has the following advantages over other similar libraries:

    Supports Python versions 2.6 to 3.3.
    Has a comprehensive test suite.
    A concise and intuitive API.

Needed by jenkins-autojobs.
Comment 1 Tomáš Mózes 2015-01-23 13:02:40 UTC
Created attachment 394708 [details]
jenkins-webapi-0.4.0.ebuild

Correct license
Comment 2 Tomáš Mózes 2015-01-23 13:06:55 UTC
Created attachment 394712 [details]
jenkins-webapi-0.4.0.ebuild

Correct homepage/description
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2015-01-26 15:05:05 UTC
looks good I'll run it tomorrow
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2015-01-27 02:03:11 UTC
tomorrow arrived. I ran it;

cat /mnt/gen2/TmpDir/portage/dev-python/jenkins-webapi-0.4.0/work/jenkins-webapi-0.4.0/requirements-dev.txt

pytest >= 2.6.3
termcolor >= 1.1.0
pytest-cov >= 1.8.0
httmock >= 1.2.2
Sphinx >= 1.2.3
alabaster >= 0.6.1

see https://pypi.python.org/pypi/httmock/1.2.2
The rest we have.  That ought be an easy one.  Optionally the test phase can be skipped which is not my style.
Still awaiting progress on 537346. That one was entered first and ought be the first to be added.
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2015-01-28 13:46:53 UTC
upstream did it again

~/improvise/dev-python/jenkins-webapi $ l /mnt/gen2/TmpDir/portage/dev-python/jenkins-webapi-0.4.0/work/jenkins-webapi-0.4.0/

MANIFEST.in  PKG-INFO  README.rst  jenkins.py  jenkins_webapi.egg-info  requirements-dev.txt  setup.cfg  setup.py

but in the repo
https://github.com/gvalkov/jenkins-webapi

both a doc folder and a tests folder.  After all the updating and bumping of the required test deps I get this.  You know what to do
Comment 6 Tomáš Mózes 2015-01-28 17:51:26 UTC
Because of that, we can pack version 0.3.2 instead of 0.4.0 (to have the tests).
Comment 7 Tomáš Mózes 2015-01-28 17:52:00 UTC
Created attachment 395068 [details]
jenkins-webapi-0.3.2.ebuild

Adding tests
Comment 8 Tomáš Mózes 2015-01-28 17:52:37 UTC
Created attachment 395070 [details, diff]
local_jenkins_war.patch
Comment 9 Tomáš Mózes 2015-01-28 17:52:50 UTC
Created attachment 395072 [details, diff]
tests_py27.patch
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2015-01-29 02:34:39 UTC
(In reply to Tomas Mozes from comment #6)
> Because of that, we can pack version 0.3.2 instead of 0.4.0 (to have the
> tests).

Actually, yes, we can add version 0.3.2 and have a fully running testsuite. In addition, need approach upstream and prompt / request then to add the missing 2 folders to the tarball that is for pypi for 2 reasons; 1) it's preferable to use pypi as a source repo in an ebuild in gentoo, 2) They may have overlooked it by human error.

Re no. 2), there are 2 typical reasons;
a) They decided they didn't want the tests included but were clumsy enough to still leave references and instructions to its use in the files of the source
b) They missed by accident and will therefore likely reply with thanks for pointing this out. 

I have seen both many times.  Either way, Just prompt with a simple factual observation which doesn't offend in any way, easily done, and then await their reply.  I have done this many times.  Either way, jenkins-webapi-0.4.0 cannot have a test run because of all above, but we still add it. Being the most recent release far outweighs absence of a testsuite.  Then we look forward to a release which has them re-added and all just works.
Comment 11 Ian Delaney (RETIRED) gentoo-dev 2015-01-29 05:55:49 UTC
Now for the doc build.  Next to replicate this

~/improvise/dev-python/jenkins-webapi $ USE=doc ebuild jenkins-webapi-0.3.2.ebuild clean install

 * python2_7: running distutils-r1_run_phase python_install_all
>>> Completed installing jenkins-webapi-0.3.2 into /mnt/gen2/TmpDir/portage/dev-python/jenkins-webapi-0.3.2/image/

~/improvise/dev-python/jenkins-webapi $ l /mnt/gen2/TmpDir/portage/dev-python/jenkins-webapi-0.3.2/image//usr/share/doc/jenkins-webapi-0.3.2/
README.rst.bz2  html
Comment 12 Tomáš Mózes 2015-01-29 08:21:33 UTC
Created attachment 395098 [details]
jenkins-webapi-0.3.2.ebuild

Adding docs
Comment 13 Tomáš Mózes 2015-01-29 08:22:23 UTC
(In reply to Ian Delaney from comment #10)
> (In reply to Tomas Mozes from comment #6)
> > Because of that, we can pack version 0.3.2 instead of 0.4.0 (to have the
> > tests).
> 
> Actually, yes, we can add version 0.3.2 and have a fully running testsuite.
> In addition, need approach upstream and prompt / request then to add the
> missing 2 folders to the tarball that is for pypi for 2 reasons; 1) it's
> preferable to use pypi as a source repo in an ebuild in gentoo, 2) They may
> have overlooked it by human error.
> 
> Re no. 2), there are 2 typical reasons;
> a) They decided they didn't want the tests included but were clumsy enough
> to still leave references and instructions to its use in the files of the
> source
> b) They missed by accident and will therefore likely reply with thanks for
> pointing this out. 
> 
> I have seen both many times.  Either way, Just prompt with a simple factual
> observation which doesn't offend in any way, easily done, and then await
> their reply.  I have done this many times.  Either way, jenkins-webapi-0.4.0
> cannot have a test run because of all above, but we still add it. Being the
> most recent release far outweighs absence of a testsuite.  Then we look
> forward to a release which has them re-added and all just works.

https://github.com/gvalkov/jenkins-webapi/issues/8
Comment 14 Ian Delaney (RETIRED) gentoo-dev 2015-01-29 09:21:42 UTC
*jenkins-webapi-0.4.0 (29 Jan 2015)
*jenkins-webapi-0.3.2 (29 Jan 2015)

  29 Jan 2015; Ian Delaney <idella4@gentoo.org> +files/local_jenkins_war.patch,
  +files/tests_py27.patch, +jenkins-webapi-0.3.2.ebuild,
  +jenkins-webapi-0.4.0.ebuild, +metadata.xml:
  Module for interacting with the Jenkins CI server, ebuilds written by
  maintainer via bug #537440, 0.4.0 is missing folders present in 0.3.2, next
  release expected to see them re-added, closes bug #537440