Skip to content

Updating

o355 edited this page Apr 16, 2018 · 7 revisions

Typing updater instructions aren't fun in the release notes each time. Instead, please refer to this document on how to update PyWeather. Please also read up on specific updating instructions, at the bottom of the document.

Latest PyWeather version: 0.6.3 beta

Updating PyWeather 0.6 beta or above to a version of PyWeather 0.6 beta and and above

(e.g. 0.6 beta -> 0.6.3 beta)

Git users: Please exactly type these commands as such when purely updating with Git, and presumably, a UNIX command line.

cd <pyweather folder> (ignore if you're in PyWeather's folder)
git stash (ignore if you're 100% sure you made zero local changes, but do this just in case)
git checkout 0.6.3-beta
python3 (or python) configupdate.py

Afterwards, PyWeather should be updated to the latest version.

PyWeather Updater users (Git method, 0.6.2 beta and below): Please refrain from using the updater. The updater was broken for a long time, and I just gave up on trying to fix the Git updater for automatic updaters. A new universal updater will be introduced in 0.6.4 beta.

Zip users/PyWeather Updater users (Zip method): Stop PyWeather, Unzip all files over existing files. Execute configupdate.py.

Updating PyWeather 0.5.2.1 beta or below to PyWeather 0.6 beta and above

(e.g. 0.5 beta -> 0.6.3 beta)

Git users: Please exactly type in the commands as such when purely updating with Git, and presumably, a UNIX command line.

cd pyweather
cp storage/apikey.txt ~/apikey.txt (this saves your API key to your home folder, for later reference)
cd <one directory above pyweather's directory> (e.g. if pyweather is in ~/pyweather/, be in ~/. ~ = home directory)
rm -rf pyweather
git clone https://github.com/o355/pyweather.git --depth=1
cd pyweather
git checkout 0.6.3-beta
python3 setup.py
Reference your API key in the file you made earlier when completing setup.

Non-Git users: Back up your API key into a separate file for later reference. Delete your PyWeather folder. Download PyWeather's latest release, and unzip it into a new folder. Execute the setup script, and reference your API key in the file you made earlier when completing setup.

Specific version updating notes

When updating to PyWeather 0.6.1 beta from PyWeather 0.6/0.6.0.1 beta

You will need to perform an extra step to update to 0.6.1 beta.

Make sure you modify the file updater/versioninfo.txt, so that it shows 0.6 beta or 0.6.0.1 beta on one line. I forgot to gitignore this file, so it ended up in a release.