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) ------------------- diff --git a/docs/conf.py b/docs/conf.py index de548b0..b39fadb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,9 +59,9 @@ # built documents. # # The short X.Y version. -version = '0.2' +version = '0.3' # 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/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/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')], 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): 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__ = [