csparpa / pyowm

A Python wrapper around the OpenWeatherMap web API
https://pyowm.readthedocs.io
MIT License
791 stars 175 forks source link

PyOWM version numbers should be handled as tuples instead of strings #130

Closed csparpa closed 5 years ago

csparpa commented 8 years ago

When asking for PyOWM version on the OWM25 instances:

owm.get_version()  # returns a str, eg: "2.4.0"

a tuple should be returned instead of a string:

ver = owm.get_version()
print(ver)   # gives: (2,4,1)
csparpa commented 8 years ago

Fixed with PR #139

csparpa commented 7 years ago

As stated in https://github.com/csparpa/pyowm/issues/158 this issue was due for Milestone 3.0, reopening

csparpa commented 5 years ago

Fix with https://github.com/csparpa/pyowm/commit/7edd4691e496cedcb35bb2ed191ebab16c0e3fdc