diff --git a/setup.py b/setup.py index 5832d0a..fb8fbad 100644 --- a/setup.py +++ b/setup.py @@ -3,39 +3,39 @@ from setuptools import setup def gen_from_file(): return ['backcall==0.1.0', - 'dateparser==0.7.1', - 'decorator==4.3.2', - 'freezegun==0.3.11', + 'dateparser==0.7.2', + 'decorator==4.4.0', + 'freezegun==0.3.12', 'fuzzywuzzy==0.17.0', 'geographiclib==1.49', - 'geopy==1.18.1', + 'geopy==1.20.0', 'importlib-resources==1.0.2', - 'ipython==7.3.0', + 'ipython==7.8.0', 'ipython-genutils==0.2.0', - 'jedi==0.13.3', - 'numpy==1.16.2', - 'parso==0.3.4', - 'pexpect==4.6.0', + 'jedi==0.15.1', + 'numpy==1.17.2', + 'parso==0.5.1', + 'pexpect==4.7.0', 'pickleshare==0.7.5', 'prompt-toolkit==2.0.9', 'ptyprocess==0.6.0', - 'Pygments==2.3.1', + 'Pygments==2.4.2', 'python-dateutil==2.8.0', 'python-Levenshtein==0.12.0', - 'pytz==2018.9', - 'regex==2019.3.12', + 'pytz==2019.2', + 'regex==2019.8.19', 'six==1.12.0', - 'timezonefinder==4.0.1', + 'timezonefinder==4.1.0', 'traitlets==4.3.2', - 'tzlocal==1.5.1', + 'tzlocal==2.0.0', 'wcwidth==0.1.7', 'word2number==1.1'] - #with open("requirements.txt") as f: - # return [line.strip() for line in f.readlines()] + # with open("requirements.txt") as f: + # return [line.strip() for line in f.readlines()] setup(name='tww', - version='0.1', + version='0.2', description='Time When and Where', url='http://gitlab.com/pisquared/tww', author='Flying Circus', diff --git a/src/tww/data/.cache.csv b/src/tww/data/.cache.csv deleted file mode 100644 index 750c1e0..0000000 --- a/src/tww/data/.cache.csv +++ /dev/null @@ -1,19 +0,0 @@ -zurich,47.3666667,8.5500002 -california,40.9066368,14.2958736 -bulgaria,43.0,25.0 -usa,39.7563889,46.7511101 -brazil,-10.0,-55.0 -sydney,-33.86785,151.2073212 -sofia,42.6975135,23.3241463 -eastern,-40.9597222,175.6575012 -PT,40.44151435,-80.0100857539989 -PT,40.44151435,-80.0100857539989 -PT,40.44151435,-80.0100857539989 -new york,40.7142691,-74.0059738 -delhi,28.6666667,77.2166672 -krivodol,43.389659,23.502923804029 -vratsa,43.21,23.5625 -plovdiv,42.15,24.75 -studena,41.9158333,21.5305557 -burdo,9.5166667,45.5333328 -burgas,42.5,27.4666672 diff --git a/src/tww/tww.py b/src/tww/tww.py index debc4a0..527a127 100644 --- a/src/tww/tww.py +++ b/src/tww/tww.py @@ -228,7 +228,7 @@ def parse_query(query): def serialize_location(location): return { - "name": location.name, + "name": location.name if hasattr(location, 'name') else '', "latitude": location.latitude, "longitude": location.longitude, }