/srv/irclogs.ubuntu.com/2020/07/02/#smooth-operator.txt

mupPR operator#354 closed: post-release fallback version bump <Created by chipaca> <Merged by jameinel> <https://github.com/canonical/operator/pull/354>07:41
jammorning Chipaca, just in time for me to go to lunch :)08:45
jamI put up 2 posts on Discourse, feedback/edits welcome08:45
Chipacamoin moin moin08:46
Chipacajam: reading08:46
Chipacajam: the 'reusable components' one, maybe needs tweaking because ops.lib.use is a thing now?09:18
jamChipaca, we could. Right now the component thing is mostly about what a component looks like. We can add ops.lib.use to it, or we can make that a separate topic09:36
Chipacak09:41
facubatistaMuy buenos días a todos!10:56
Chipacafacubatista: a shame tabulate can't be told to print to a file11:40
facubatistaChipaca, I don't want to print to a file! unless a logger can be handled as a file?11:41
Chipacafacubatista: well, that would be my next 'shame' :-)11:41
Chipacaprint(..., file=logger.info) :-)11:42
facubatistadon't like that11:42
facubatistayou're not pushing bytes/chars to it; it's a complex object which builds messages, etc11:42
facubatistaChipaca, what I *do* miss is: instead of doing `print("foo {} bar {}".format(a, b))`, being able to do `print("foo {} bar {}", a, b)` (and that it doesn't fail if var replacement is wrong)11:45
facubatistaprintl()11:45
facubatistaprintf!11:45
Chipacaprintf, clearly11:45
facubatistaoh11:45
Chipacafacubatista: ?11:46
facubatistanow I'm trying to hack it into builtins :p11:47
Chipacafacubatista: it also needs a flogger module that lets you do flogger.debug('the {} is all up the {}', thing, where)11:49
facubatistaChipaca, I want to do that using logger, it's in my project list11:50
facubatistaChipaca, jam, this is the refactor I promised to simplify reviews: https://github.com/canonical/charmcraft/pull/6711:57
mupPR charmcraft#67: A small refactor creating a "store api" layer between commands and the client <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/67>11:57
facubatistaChipaca, jam, and the refactor about paths in build that I also commented to you: https://github.com/canonical/charmcraft/pull/6812:16
mupPR charmcraft#68: Totally avoid dealing with paths as strings <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/68>12:16
Chipacafacubatista: so productive 😲12:29
facubatista:)12:30
Chipacajam: you coming?12:31
jamyep12:31
facubatistaChipaca, I don't "see" the benefit of using NamedTuple from typing in a not-typed project12:57
Chipacafacubatista: yeah, not that big. I started out with "how to add docstrings" and in 3.6+ you subclass NamedTuple and write a regular docstring there, but in 3.5 you still need to set __doc__ by hand12:59
Chipacaso it's a bit of a wash. Maybe just make a note to switch to NamedTuple once we drop 3.5, such that adding a docstring is nicer? (and … what i should have started with: add a docstring :-) )13:00
facubatistaChipaca, you mean, adding a docstring to User?13:00
Chipacafacubatista: PosixPath('/tmp/pytest-of-travis/pytest-0/test_validator_requirement_mul0/testfile1') != PosixPath('/tmp/pytest-of-travis/pytest-0/test_validator_requirement_mul0/testfile1')13:21
Chipacafacubatista: a.k.a. 3.5 hates you13:22
Chipacafacubatista: yes i meant adding a docstring to User13:22
* Chipaca adds __head__ to all his classes13:46
facubatistaChipaca, what do you think? https://paste.ubuntu.com/p/j7QBhKSJtf/14:13
Chipacafacubatista: >3.514:14
facubatistaChipaca, why?14:15
Chipacafacubatista: foo:int  is a 3.6+ thing14:16
facubatistaChipaca, mmm... so how NamedTuple works in 3.5?14:16
* Chipaca points at the docs14:16
Chipacafacubatista: https://docs.python.org/3.5/library/typing.html#typing.NamedTuple14:17
facubatistaChipaca, and how that helps with the docstring?14:18
Chipacafacubatista:14:19
facubatistaright14:19
* facubatista opens an issue and forgets about this :p14:19
* Chipaca hugs facubatista 14:19
facubatistaChipaca, https://github.com/canonical/charmcraft/issues/7014:25
facubatistapy3.5 super hates me: https://paste.ubuntu.com/p/qXcZ3wCVP3/14:29
Chipacafacubatista: You need to upgrade your VESA local bus to a MasterCard local bus.14:30
facubatistaChipaca, I configured the screen to 16 colors and the test still fails14:34
* facubatista tries putting it in 320x20014:35
Chipacafacubatista: Don't worry; it's been deprecated. The new one is worse.14:37
mupIssue operator#356 opened: Support extra service names <Created by knkski> <https://github.com/canonical/operator/issues/356>16:01
* Chipaca EODs17:17

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!