Skip to content

Commit 9f81d4c

Browse files
author
Paul Hallett
committed
Version 0.1.2 - added sprite attribute to Pokemon class
1 parent 09ddf6a commit 9f81d4c

File tree

7 files changed

+14
-5
lines changed

7 files changed

+14
-5
lines changed

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
History
44
-------
55

6+
0.1.2 (2014-1-3)
7+
++++++++++++++++++
8+
9+
* Sprite attribute added to Pokemon class
10+
11+
612
0.1.1 (2013-12-24)
713
++++++++++++++++++
814

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013, Paul Hallett
1+
Copyright (c) 2014, Paul Hallett
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -9,4 +9,4 @@ Redistribution and use in source and binary forms, with or without modification,
99

1010
* Neither the name of Pykemon nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
1111

12-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

pykemon/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
__author__ = 'Paul Hallett'
55
__email__ = 'hello@phalt.co'
6-
__version__ = '0.1.1'
7-
__copyright__ = 'Copyright Paul Hallett 2013'
6+
__version__ = '0.1.2'
7+
__copyright__ = 'Copyright Paul Hallett 2014'
88
__license__ = 'BSD'
99

1010
from api import get

pykemon/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def __init__(self, bundle):
5353
self.weight = bundle['weight']
5454
self.happiness = bundle['happiness']
5555
self.male_female_ratio = bundle['male_female_ratio']
56+
self.sprites = buildr(bundle, 'sprites')
5657

5758
def __repr__(self):
5859
return '<Pokemon - %s>' % self.name.capitalize()

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ simplejson==3.3.1
55
sphinx
66
coverage
77
flake8
8+
wheels

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
setup(
2121
name='pykemon',
22-
version='0.1.1',
22+
version='0.1.2',
2323
description='A Python wrapper for PokeAPI',
2424
long_description=readme + '\n\n' + history,
2525
author='Paul Hallett',

tests/test_pykemon.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def test_pokemon_complex_attribs(self):
6565
self.assertIn('overgrow', self.poke_one.abilities)
6666
self.assertIn('Monster', self.poke_one.egg_groups)
6767
self.assertIn('bulbasaur_gen_1', self.poke_one.descriptions)
68+
self.assertIn('bulbasaur', self.poke_one.sprites)
6869

6970
def test_type_complex_attribs(self):
7071
self.assertIn('grass', self.type_one.super_effective)

0 commit comments

Comments
 (0)