Skip to content

Commit

Permalink
Merge d71f29d into 36b796c
Browse files Browse the repository at this point in the history
  • Loading branch information
menegazzo committed Oct 13, 2014
2 parents 36b796c + d71f29d commit 7b10b86
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 12 deletions.
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -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)
-------------------

Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions docs/entities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')],

Expand Down
1 change: 0 additions & 1 deletion travispy/_tests/test_travispy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions travispy/entities/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = [
Expand Down
8 changes: 4 additions & 4 deletions travispy/entities/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = [
Expand Down
4 changes: 2 additions & 2 deletions travispy/entities/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = [
Expand Down

0 comments on commit 7b10b86

Please sign in to comment.