-
Notifications
You must be signed in to change notification settings - Fork 8
Updating
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.2 beta
(e.g. 0.6 beta -> 0.7 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.2-beta
python3 (or python) configupdate.py
Afterwards, PyWeather should be updated to the latest version.
PyWeather Updater users (Git method): Please refrain from using the updater. The updater is extremely broken, and will be replaced in 0.6.4 beta. Unless you know what you're doing, DO NOT use the updater.
Zip users/PyWeather Updater users (Zip method): Unzip all files over existing files. Execute configupdate.py.
(e.g. 0.5 beta -> 0.7 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
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.
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.