From 99d4da41d09ce9f4515f866c4478726cca337584 Mon Sep 17 00:00:00 2001 From: Fabio Menegazzo Date: Mon, 13 Oct 2014 08:31:55 -0300 Subject: [PATCH 1/4] Removing "tag" from test. It depends on what kind of information is available for the commit. --- travispy/_tests/test_travispy.py | 1 - 1 file changed, 1 deletion(-) diff --git a/travispy/_tests/test_travispy.py b/travispy/_tests/test_travispy.py index e316445..e45d269 100644 --- a/travispy/_tests/test_travispy.py +++ b/travispy/_tests/test_travispy.py @@ -174,7 +174,6 @@ def test_commit(self, repo_slug): assert hasattr(commit, 'committer_name') assert hasattr(commit, 'committer_email') assert hasattr(commit, 'compare_url') - assert hasattr(commit, 'tag') assert hasattr(commit, 'pull_request_number') def test_hooks(self): From 91eed5b7fadd98cb28384341f6d450b44fa084f9 Mon Sep 17 00:00:00 2001 From: Fabio Menegazzo Date: Mon, 13 Oct 2014 08:40:41 -0300 Subject: [PATCH 2/4] Bump to version 0.3.0 --- docs/conf.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index de548b0..5c37e05 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -61,7 +61,7 @@ # The short X.Y version. version = '0.2' # The full version, including alpha/beta/rc tags. -release = '0.2.0' +release = '0.3.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index f9342eb..711827b 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ def run_tests(self): setup( name='TravisPy', - version='0.2.0', + version='0.3.0', packages=['travispy', 'travispy.entities'], install_requires=[x.strip() for x in open('requirements.txt')], From 6a58076422d809fe19bce63a23d6defb3841a6b1 Mon Sep 17 00:00:00 2001 From: Fabio Menegazzo Date: Mon, 13 Oct 2014 09:46:12 -0300 Subject: [PATCH 3/4] Updating documentation. --- docs/conf.py | 2 +- docs/entities.rst | 4 ++++ travispy/entities/branch.py | 4 ++-- travispy/entities/build.py | 8 ++++---- travispy/entities/job.py | 4 ++-- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 5c37e05..b39fadb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,7 +59,7 @@ # built documents. # # The short X.Y version. -version = '0.2' +version = '0.3' # The full version, including alpha/beta/rc tags. release = '0.3.0' diff --git a/docs/entities.rst b/docs/entities.rst index b55c02c..d9ca0bb 100644 --- a/docs/entities.rst +++ b/docs/entities.rst @@ -31,10 +31,14 @@ This document brings information about all entities that are used by |travispy| .. module:: travispy.entities .. autoclass:: Account +.. autoclass:: Branch + .. autoclass:: Broadcast .. autoclass:: Build +.. autoclass:: Commit + .. autoclass:: Hook .. autoclass:: Job diff --git a/travispy/entities/branch.py b/travispy/entities/branch.py index 163d1ca..719ccfe 100644 --- a/travispy/entities/branch.py +++ b/travispy/entities/branch.py @@ -31,8 +31,8 @@ class Branch(Stateful): :ivar bool pull_request: Whether or not the build comes from a pull request. - :ivar :class:`.Commit` commit: - Commit information. + :ivar Commit commit: + :class:`.Commit` information. ''' __slots__ = [ diff --git a/travispy/entities/build.py b/travispy/entities/build.py index fdf5b41..363284f 100644 --- a/travispy/entities/build.py +++ b/travispy/entities/build.py @@ -37,11 +37,11 @@ class Build(Restartable): :ivar list(int) job_ids: List of job IDs in the build matrix. - :ivar list(:class:`.Job`) jobs: - List of jobs in the build matrix. + :ivar list(Job) jobs: + List of :class:`.Job` in the build matrix. - :ivar :class:`.Commit` commit: - Commit information. + :ivar Commit commit: + :class:`.Commit` information. ''' __slots__ = [ diff --git a/travispy/entities/job.py b/travispy/entities/job.py index 73c0c36..dfc2082 100644 --- a/travispy/entities/job.py +++ b/travispy/entities/job.py @@ -40,8 +40,8 @@ class Job(Restartable): :ivar list(int) annotation_ids: List of annotation IDs. - :ivar :class:`.Commit` commit: - Commit information. + :ivar Commit commit: + :class:`.Commit` information. ''' __slots__ = [ From d71f29d48b50ec555e04cabcf3b1d7038ef01bd9 Mon Sep 17 00:00:00 2001 From: Fabio Menegazzo Date: Mon, 13 Oct 2014 10:01:13 -0300 Subject: [PATCH 4/4] Updating changelog. --- CHANGES.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 91ae780..d1d9127 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,14 @@ Changes ======= +v0.3.0 (2014-10-13) +------------------- + +* Added new entities Branch and Commit. +* Now each entity class knows how to retrieve information from Travis CI + instead addressing it to Session. +* PEP8 was applied to all code. + v0.2.0 (2014-08-05) -------------------