Logs for #nikola for 2017-05-24

11:24:52 <madduck> so this warning confuses me: remote: [2017-05-24T11:23:51Z] WARNING: Nikola: Could not guess locale for language en, using locale C
11:25:02 <madduck> # locale -a | grep en
11:25:04 <madduck> en_NZ.utf8
11:25:09 <madduck> what's so hard about guessing that?
11:43:17 <ChrisWarrick> madduck: I’m afraid we can’t guess any better than en_US
11:43:57 <ChrisWarrick> madduck: you can just put this in conf.py:  LOCALES = {'en': 'en_NZ.utf8'}
11:45:12 <gour> strange...i've hr_HR.UTF-8 and Nikola does not complain (within venv)
11:46:07 <ChrisWarrick> gour: if your translations only contains Croatian, we can then guess hr_HR
11:46:51 <gour> ChrisWarrick: ahh, ok. atm, my sites are monolingual, iow. either Croatian or English
11:50:11 <madduck> ChrisWarrick: why would you need to guess any different than locale -a | grep "^${LANG}" | head -1
11:51:18 <ChrisWarrick> madduck: this guess is handled by Python’s locale.py module, not us, and they have a hardcoded list like that
11:51:55 <ChrisWarrick> madduck: I guess we could try that as a fallback mechanism though?
12:01:28 <madduck> omg /me just read guess_locale_from_lang_posix
12:03:21 <madduck> ChrisWarrick: locale.py provides no way to enumerate the existing locales
12:03:50 <ChrisWarrick> madduck: subprocess.check_output(['locale', '-a']) could though
12:04:36 * madduck turns blind
12:05:27 <madduck> locale.getdefaultlocale(('LC_MESSAGES',))
12:05:27 <madduck> Out[18]: ('en_NZ', 'UTF-8')
12:05:33 <madduck> I think that might be the better default
12:06:14 <ChrisWarrick> madduck: I get (None, None) on macOS
12:06:27 <ChrisWarrick> and on Fedora
12:06:36 <madduck> do those systems even set up locales properly?
12:06:45 <ChrisWarrick> yes
12:07:19 <madduck> hm.
12:07:37 <ChrisWarrick> locale.getdefaultlocale(('LANG',))
12:07:49 <madduck> what does locale.getdefaultlocale() output?
12:08:12 <ChrisWarrick> ('en_US', 'UTF-8')
12:08:29 <madduck> okay, so I think we can use that…
12:09:27 <ChrisWarrick> what about locale.getdefaultocale() without arguments?
12:09:47 <madduck> exactly. as that employs a search path
12:10:21 <madduck> i'm failing to locate the test case though
12:12:57 -GitHub[nikola]:#nikola- [nikola] Kwpolska created sane-locale-guesses (+1 new commit): https://git.io/vHmyl
12:12:57 -GitHub[nikola]:#nikola- nikola/sane-locale-guesses cf812c1 Chris Warrick: Guess locale using locale.getdefaultlocale()...
12:13:32 <madduck> awesome how quickly that turned into a branch, *BUT* I was going to make this my first PR!!! /me *sobs* ;) 
12:13:51 <ChrisWarrick> Oh, sorry. Do you want me to drop it?
12:13:55 <madduck> of course not
12:14:00 <madduck> just joking ;) 
12:15:25 <madduck> 1 test case fails, for both master and this new branch: http://scratch.madduck.net/2017-05-24-141521-paste-ZX1aKw.txt
12:16:09 <ChrisWarrick> making tests work is not always easy. In fact, I almost never run tests locally and just let Travis CI/AppVeyor run them
12:20:43 <madduck> just costs a lot of time to send a commit and wait for github's web interface to provide the feedback, when I could just run a single test locally
12:22:40 <ChrisWarrick> aaaand python 2.7 crashes
12:24:13 -GitHub[nikola]:#nikola- [nikola] Kwpolska pushed 1 new commit to sane-locale-guesses: https://git.io/vHmS0
12:24:13 -GitHub[nikola]:#nikola- nikola/sane-locale-guesses 3ee9123 Chris Warrick: Use locale guess only if it’s the same language
12:29:05 -GitHub[nikola]:#nikola- [nikola] Kwpolska pushed 1 new commit to sane-locale-guesses: https://git.io/vHmSD
12:29:05 -GitHub[nikola]:#nikola- nikola/sane-locale-guesses b1a7c91 Chris Warrick: (debugging in Travis)...
12:35:28 -GitHub[nikola]:#nikola- [nikola] Kwpolska force-pushed sane-locale-guesses from b1a7c91 to 0c4a0c1: https://git.io/vHm9V
12:35:28 -GitHub[nikola]:#nikola- nikola/sane-locale-guesses 0c4a0c1 Chris Warrick: Use default string type for py2/3 compatibility...
12:35:38 <ChrisWarrick> there, it should work
12:38:58 <madduck> \o/
12:39:33 <madduck> confirmed the warning's gone here
12:39:34 <madduck> thanks!
12:42:07 -GitHub[nikola]:#nikola- [nikola] Kwpolska opened pull request #2795: Guess locale using locale.getdefaultlocale() (master...sane-locale-guesses) https://git.io/vHmHu
12:46:01 -GitHub[nikola]:#nikola- [nikola] Kwpolska pushed 1 new commit to sane-locale-guesses: https://git.io/vHmHA
12:46:01 -GitHub[nikola]:#nikola- nikola/sane-locale-guesses d9704d9 Chris Warrick: Add credit to changelog...
14:38:51 -GitHub[plugins]:#nikola- [plugins] ralsina pushed 1 new commit to similarity: https://git.io/vHYJa
14:38:51 -GitHub[plugins]:#nikola- plugins/similarity 919ffcc Roberto Alsina: Added README
14:50:56 <KwBot> [nikola] ralsina closed issue #2794: Magic timeline dependency broken? https://github.com/getnikola/nikola/issues/2794
14:57:35 -GitHub[plugins]:#nikola- [plugins] ralsina pushed 1 new commit to similarity: https://git.io/vHYkj
14:57:35 -GitHub[plugins]:#nikola- plugins/similarity 10bc2cb Roberto Alsina: remove FIXME
15:34:46 -GitHub[plugins]:#nikola- [plugins] ralsina pushed 1 new commit to similarity: https://git.io/vHYsE
15:34:46 -GitHub[plugins]:#nikola- plugins/similarity fdd431c Roberto Alsina: Startup hit down to 20 secs in most cases
15:43:40 -GitHub[plugins]:#nikola- [plugins] ralsina pushed 1 new commit to similarity: https://git.io/vHYGQ
15:43:40 -GitHub[plugins]:#nikola- plugins/similarity 191d757 Roberto Alsina: doh
15:47:55 -GitHub[plugins]:#nikola- [plugins] ralsina pushed 1 new commit to similarity: https://git.io/vHYnv
15:47:55 -GitHub[plugins]:#nikola- plugins/similarity 967c6fc Roberto Alsina: Fix obvious bug
16:25:18 -GitHub[plugins]:#nikola- [plugins] ralsina pushed 1 new commit to similarity: https://git.io/vHY47
16:25:18 -GitHub[plugins]:#nikola- plugins/similarity eb279cb Roberto Alsina: tweaks
16:55:58 -GitHub[plugins]:#nikola- [plugins] ralsina pushed 1 new commit to similarity: https://git.io/vHYzT
16:55:58 -GitHub[plugins]:#nikola- plugins/similarity 659c3fd Roberto Alsina: Don't do nonsense
17:00:37 -GitHub[plugins]:#nikola- [plugins] ralsina pushed 1 new commit to similarity: https://git.io/vHYgu
17:00:37 -GitHub[plugins]:#nikola- plugins/similarity 565858e Roberto Alsina: Don't consider a post related to itself
17:09:00 -GitHub[plugins]:#nikola- [plugins] ralsina pushed 1 new commit to similarity: https://git.io/vHY2y
17:09:00 -GitHub[plugins]:#nikola- plugins/similarity b8fa6c8 Roberto Alsina: This plugin has weird deps
18:13:52 <KwBot> [plugins] Kwpolska closed issue #176: [errorpages] https://github.com/getnikola/plugins/issues/176
18:23:06 -GitHub[plugins]:#nikola- [plugins] ralsina pushed 1 new commit to similarity: https://git.io/vHY15
18:23:06 -GitHub[plugins]:#nikola- plugins/similarity 95ef884 Roberto Alsina: Describe template changes
18:23:16 -GitHub[plugins]:#nikola- [plugins] ralsina deleted similarity at 95ef884: https://git.io/vHY1F
18:25:36 <ChrisWarrick> ralsina: I tried to install Nikola from snapcraft, but I got v7.8.1 (snap install nikola, Ubuntu 16.04)
18:25:52 <ralsina> ChrisWarrick: you need to do snap install nikola --edge
18:26:00 <ralsina> I have not promoted anything to stable just yet
18:34:27 <ChrisWarrick> ralsina: is --edge github master, or the latest release
18:34:37 <ralsina> --edge is GH master
18:34:47 <ralsina> and yes, the version says 7.8.5 I need to polish stuff ;-)
18:41:46 -GitHub[site]:#nikola- [nikola-site] Kwpolska pushed 1 new commit to master: https://git.io/vHYyR
18:41:46 -GitHub[site]:#nikola- nikola-site/master 9796fc2 Chris Warrick: Snapcraft docs in Getting Started (getnikola/nikola#2784)...
18:41:54 <ChrisWarrick> ralsina: I updated the getting started guide, please take a look at https://getnikola.com/blog/nikola-available-as-a-snap.html (shouldn’t take long)
18:42:07 <ralsina> looking...
18:43:01 <ralsina> ChrisWarrick: LGTM
18:43:08 <ChrisWarrick> ralsina: what about the permissions stuff?
18:43:21 <ralsina> doesn't hurt
18:43:27 <ralsina> in some distros it's not necessary
18:52:14 -GitHub[site]:#nikola- [nikola-site] Kwpolska pushed 1 new commit to master: https://git.io/vHY9O
18:52:14 -GitHub[site]:#nikola- nikola-site/master 93ea92b Chris Warrick: Update documentation.txt and getting-started.html...
19:01:27 <KwBot> [nikola] Kwpolska closed issue #2784: Snapcraft should be documented in getting-started https://github.com/getnikola/nikola/issues/2784
19:07:27 -GitHub[nikola]:#nikola- [nikola] felixfontein pushed 1 new commit to taxonomy-lang-refs: https://git.io/vHYQx
19:07:27 -GitHub[nikola]:#nikola- nikola/taxonomy-lang-refs 0c37b25 Felix Fontein: Moving hierarchy functions from utils.py to hierarchy_utils.py.
19:17:09 <ralsina> ChrisWarrick: seems to me we should release next week
19:17:20 <ralsina> there's a nice bunch of new stuff in master
21:37:51 <KwBot> [nikola] ralsina closed issue #1702: Related posts as JSON https://github.com/getnikola/nikola/issues/1702
21:51:14 -GitHub[themes]:#nikola- [nikola-themes] ralsina created metadata (+2 new commits): https://git.io/vHOGJ
21:51:14 -GitHub[themes]:#nikola- nikola-themes/metadata 51b5a3f Roberto Alsina: blotblog metadata
21:51:14 -GitHub[themes]:#nikola- nikola-themes/metadata 30291c5 Roberto Alsina: more metadata
21:54:59 -GitHub[themes]:#nikola- [nikola-themes] ralsina pushed 1 new commit to metadata: https://git.io/vHOGW
21:54:59 -GitHub[themes]:#nikola- nikola-themes/metadata df9cf6f Roberto Alsina: more metadata
22:05:12 -GitHub[themes]:#nikola- [nikola-themes] ralsina pushed 2 new commits to metadata: https://git.io/vHOZu
22:05:12 -GitHub[themes]:#nikola- nikola-themes/metadata f103eaf Roberto Alsina: more metadata
22:05:12 -GitHub[themes]:#nikola- nikola-themes/metadata a8c95da Roberto Alsina: more metadata
22:10:20 -GitHub[themes]:#nikola- [nikola-themes] ralsina pushed 2 new commits to metadata: https://git.io/vHOZp
22:10:20 -GitHub[themes]:#nikola- nikola-themes/metadata 82a13cc Roberto Alsina: more metadata
22:10:20 -GitHub[themes]:#nikola- nikola-themes/metadata 2f57b49 Roberto Alsina: more metadata
22:14:25 -GitHub[themes]:#nikola- [nikola-themes] ralsina pushed 1 new commit to metadata: https://git.io/vHOns
22:14:25 -GitHub[themes]:#nikola- nikola-themes/metadata 94cb4c8 Roberto Alsina: more metadata
22:15:39 -GitHub[themes]:#nikola- [nikola-themes] ralsina pushed 1 new commit to metadata: https://git.io/vHOn0
22:15:39 -GitHub[themes]:#nikola- nikola-themes/metadata a88613e Roberto Alsina: more metadata
22:18:51 -GitHub[themes]:#nikola- [nikola-themes] ralsina pushed 1 new commit to metadata: https://git.io/vHOn1
22:18:51 -GitHub[themes]:#nikola- nikola-themes/metadata 6ba4da0 Roberto Alsina: more metadata
22:19:51 -GitHub[themes]:#nikola- [nikola-themes] ralsina opened pull request #122: Metadata (master...metadata) https://git.io/vHOnH
22:36:42 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to master: https://git.io/vHOCA
22:36:42 -GitHub[nikola]:#nikola- nikola/master fb06046 Roberto Alsina: whatever
22:51:59 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to baguette: https://git.io/vHOlw
22:51:59 -GitHub[nikola]:#nikola- nikola/baguette de40901 Roberto Alsina: Merge branch 'master' into baguette
23:26:23 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to baguette: https://git.io/vHOB4
23:26:23 -GitHub[nikola]:#nikola- nikola/baguette 34437a4 Roberto Alsina: missing assets
23:33:40 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to master: https://git.io/vHOBx
23:33:40 -GitHub[nikola]:#nikola- nikola/master 938d105 Chris Warrick: Guess locale using locale.getdefaultlocale() (#2795)...
23:33:47 -GitHub[nikola]:#nikola- [nikola] ralsina deleted sane-locale-guesses at d9704d9: https://git.io/vHOBp
23:34:35 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to baguette: https://git.io/vHORf
23:34:35 -GitHub[nikola]:#nikola- nikola/baguette be73d82 Roberto Alsina: Merge branch 'master' into baguette
23:37:26 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to baguette: https://git.io/vHOR4
23:37:26 -GitHub[nikola]:#nikola- nikola/baguette c383e23 Roberto Alsina: nah