From e98e95e0f80727585d846a1cd1c88f9ee9d2db9a Mon Sep 17 00:00:00 2001 From: Kronopt Date: Fri, 1 Mar 2019 23:33:26 +0000 Subject: [PATCH] Fixes #35 --- docs/history.md | 4 ++++ pokepy/__init__.py | 2 +- pokepy/resources_v2.py | 2 +- setup.py | 5 +++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/history.md b/docs/history.md index 1be3e7f..a666efa 100644 --- a/docs/history.md +++ b/docs/history.md @@ -1,4 +1,8 @@ # History +### 0.5.2 (2019-03-01) +* Fixed bug that caused pokemon_encounters subresource to not be detected in LocationAreaResource +(thanks to [jachymb](https://github.com/jachymb)) + ### 0.5.1 (2019-02-16) * New V2Client cache-related methods: * cache_info diff --git a/pokepy/__init__.py b/pokepy/__init__.py index c0c3ccb..e05e4f6 100644 --- a/pokepy/__init__.py +++ b/pokepy/__init__.py @@ -16,7 +16,7 @@ __author__ = 'Paul Hallett' __email__ = 'hello@phalt.co' __credits__ = ["Paul Hallett", "Owen Hallett", "Kronopt"] -__version__ = '0.5.1' +__version__ = '0.5.2' __copyright__ = 'Copyright Paul Hallett 2016' __license__ = 'BSD' diff --git a/pokepy/resources_v2.py b/pokepy/resources_v2.py index 19168d3..1f8dd79 100644 --- a/pokepy/resources_v2.py +++ b/pokepy/resources_v2.py @@ -1745,7 +1745,7 @@ class Meta(BaseResource.Meta): 'encounter_method_rates': EncounterMethodRateSubResource, 'location': NamedAPIResourceSubResource, 'names': NameSubResource, - 'pokemon_encounters:': PokemonEncounterSubResource + 'pokemon_encounters': PokemonEncounterSubResource } def __repr__(self): diff --git a/setup.py b/setup.py index 7acbe82..92cf80b 100644 --- a/setup.py +++ b/setup.py @@ -9,8 +9,9 @@ except ImportError: from distutils.core import setup -with open('README.md') as readme_md, open('docs/history.md') as history_md,\ - open('requirements.txt') as requirements_txt: +with open('README.md', encoding='utf-8') as readme_md,\ + open('docs/history.md', encoding='utf-8') as history_md,\ + open('requirements.txt', encoding='utf-8') as requirements_txt: readme = readme_md.read() history = history_md.read() requirements = [req[:req.find('#')].rstrip() for req in requirements_txt.readlines()]