From d5aaeb56342a4befea4b77ac6e195e31adadc74f Mon Sep 17 00:00:00 2001 From: o355 Date: Sat, 29 Apr 2017 23:38:13 -0400 Subject: [PATCH] 0.5.2 now on the release train! --- README.md | 11 +------- storage/config.ini | 2 +- storage/config_README.md | 59 ++++++++++++++++++++++++++++++++++++--- updater/versioncheck.json | 12 ++++---- 4 files changed, 63 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 8f99467..ba55bee 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,6 @@ -## Welcome to PyWeather (0.5.1 beta)! +## Welcome to PyWeather (0.5.2 beta)! Viewing the weather in a terminal has never been so much fun. -## Yet another development notice (oh boy) -PyWeather 0.5.2 is on it's way, but if you have a quick glance at the changelog, everything changed. - -I'm basically tired of adding bells and whistles, I want to push myself further, and the pending list of "rewrite prints" and all that fun stuff was making it so that I would play KSP (great game, by the way) or Cities:Skylines (make sure you have a supercomputer handy) instead of coding. - -Code cleanup was meant to occur later down the road, and I'll add the bells and whistles in other releases. I want to really focus on getting real features in PyWeather. - -Right now, PyWeather 0.5.2 beta is still slated to drop in Early May. 0.6 development will start afterwards, and should drop in Mid June. - ## Why? Why should I check my weather in a terminal? It's cooler. I think. diff --git a/storage/config.ini b/storage/config.ini index 92053fb..3585042 100644 --- a/storage/config.ini +++ b/storage/config.ini @@ -37,7 +37,7 @@ validateapikey = True [UPDATER] autocheckforupdates = False show_updaterreleasetag = False -allowgitforupdating = False +allowGitForUpdating = False [KEYBACKUP] savedirectory = backup// diff --git a/storage/config_README.md b/storage/config_README.md index 8b9bf1b..5570e36 100644 --- a/storage/config_README.md +++ b/storage/config_README.md @@ -1,4 +1,4 @@ -## PyWeather Configuration Readme - For PyWeather 0.5.1 beta +## PyWeather Configuration Readme - For PyWeather 0.5.2 beta Since configparser hates comments, this will do for now. ## CHANGELOG @@ -7,7 +7,7 @@ This is just to show you what version the config file is meant to be used for. Changing this does nothing. -**Default option: 0.5.1** +**Default option: 0.5.2** ## SUMMARY section ### sundata_summary @@ -110,7 +110,6 @@ Useful for reporting issues, and seeing what went wrong. **Default option: False** ### keybackup_tracebacks -**This option is useless, but will be implemented in 0.5.2 beta.** This option allows you to turn on printing full tracebacks in PyWeather API Key Backup. @@ -171,6 +170,20 @@ This isn't a default in the code due to the pros/cons of using each method. **Default option: False** +## PYWEATHER BOOT section +This section controls stuff that goes on when PyWeather boots. + +### validateapikey +This option allows for PyWeather to validate your primary API key (stored at storage//apikey.txt), and make sure the key is valid. + +PyWeather will try to open the file, fetch a test JSON, and validate the primary key. If the key is valid, everything continues. If the key isn't valid, PyWeather will attempt to load a backup key (with the directory specified in the config), and vertify that. If it's verified, variables are changed, and PW continues on. + +If the backup key can't be opened or verified, PyWeather stops. + +This option is enabled, as it's well worth the extra API call to make sure your key is valid. + +**Default option: True** + ## UPDATER section This section controls PyWeather's updating mechanism. @@ -194,6 +207,15 @@ It's off by default as it's presumed you're not using Git to download and update **Default option: False** +### allowGitForUpdating +This option allows you to control if PyWeather should prompt you to update with Git in PyWeather. + +Only turn this on if you're sure that you have Git on your system, and that it's available in your default shell. When PyWeather updates with Git, it'll automatically check out to the master branch, stash any local changes, pull new changes, stash local changes again, and check out to the latest "branch". + +When doing this, custom changes to your config file will be overwritten. PyWeather 0.6 beta will most likely be able to get around this, so it's just for now. + +**Default option: False** + ## KEYBACKUP section This section allows you to control parts of the Key Backup script. @@ -208,4 +230,33 @@ You can save it anywhere in PyWeather's folder. However, you'll want to take not 3. The file extension is no more. PyWeather will automatically save the backup key document as backkey.txt, to prevent conflicts. -**Default option: backup//** \ No newline at end of file +**Default option: backup//** + +## VERSIONS section +This section controls version overriding, mainly for debugging reasons. + +### overrideVersion +This option allows you to control if PyWeather should override set build numbers/version texts, for debugging or some other reason. + +The two options below this are only valid if version overriding is enabled. + +**Default option: False** + +### overridebuildnumber +This option lets you control the build number PyWeather uses (mainly for update checking). This option MUST BE AN INTEGER. + +Build numbers are basically the version number. + +0.5 beta = 50 +v1.0 = 100 +v1.0.1 = 101 +v1.1 = 110 + +And so on and so forth. + +**Default option: 52** + +### overrideversiontext +This option lets you control the version text that is visible to the user (when showing "PyWeather is out of date, you have version , etc). This option is a string, you can put whatever you want here, if you so desire. + +**Default option: 0.5.2 beta** \ No newline at end of file diff --git a/updater/versioncheck.json b/updater/versioncheck.json index b0f1302..0b1fcef 100644 --- a/updater/versioncheck.json +++ b/updater/versioncheck.json @@ -1,11 +1,11 @@ { "updater": { "apiversion": "1.2", - "latestbuild": "51", - "latestversion": "0.5.1 beta", - "latestversiontag": "0.5.1-beta", - "latesturl": "https://github.com/o355/pyweather/releases/download/0.5.1-beta/pyweather-0.5.1beta.zip", - "latestfilename": "pyweather-0.5.1beta.zip", - "releasedate": "4/17/2017" + "latestbuild": "52", + "latestversion": "0.5.2 beta", + "latestversiontag": "0.5.2-beta", + "latesturl": "https://github.com/o355/pyweather/releases/download/0.5.2-beta/pyweather-0.5.2beta.zip", + "latestfilename": "pyweather-0.5.2beta.zip", + "releasedate": "4/29/2017" } }