Commit Graph

11196 Commits

Author SHA1 Message Date
Jean-Paul Calderone
f21e3189b5 Remove some repetition between read_config and config_from_string 2020-11-18 13:17:16 -05:00
Jean-Paul Calderone
53aa434d77 Add a helper to make a deep copy of a ConfigParser
This will help avoid unintentional side-effects
2020-11-18 13:01:08 -05:00
Jean-Paul Calderone
84647e25b7 Refine the ConfigParser generator
Limit the characters used in the section and item name strategies.
ConfigParser doesn't allow all characters in all places.
2020-11-18 12:59:23 -05:00
Jean-Paul Calderone
021615bdff Some further test_configutil improvements 2020-11-18 12:44:52 -05:00
Jean-Paul Calderone
34714d5f6b Add everything and nothing config validation helpers 2020-11-18 12:42:31 -05:00
Jean-Paul Calderone
aedac9d570 news fragment 2020-11-18 11:02:58 -05:00
Jean-Paul Calderone
e60c643b5f Make configutil.write_config atomic and also make it take a FilePath 2020-11-18 10:57:38 -05:00
Itamar Turner-Trauring
feb85f4c4a Always use native strings as keys. 2020-11-17 13:15:57 -05:00
Itamar Turner-Trauring
dd5092f656 News fragment. 2020-11-17 13:15:52 -05:00
Itamar Turner-Trauring
bb7ed3afc9 Fix the bug. 2020-11-17 11:25:24 -05:00
Itamar Turner-Trauring
9b8b0b1946 News fragment. 2020-11-17 09:33:44 -05:00
Jean-Paul Calderone
2ee0b1d3c6 flake cleanup 2020-11-16 15:05:04 -05:00
Jean-Paul Calderone
5cb1df06c4 delegate introducer furl lookup to the config object 2020-11-16 15:02:51 -05:00
Jean-Paul Calderone
92206b907e write introducers.yaml instead of [client]introducer.furl 2020-11-16 15:02:29 -05:00
Jean-Paul Calderone
60e0056ad8 don't guide folks to the deprecated config item 2020-11-16 15:02:18 -05:00
Jean-Paul Calderone
0258bb7295 note it's deprecated 2020-11-16 15:02:13 -05:00
Jean-Paul Calderone
c9f7ce8db5 write introducers.yaml instead of [client]introducer.furl 2020-11-16 15:01:52 -05:00
Jean-Paul Calderone
302b5cb01f look for the introducer furl via a more structured interface 2020-11-16 15:01:34 -05:00
Jean-Paul Calderone
0fd354396f note this is for deprecated functionality 2020-11-16 15:01:21 -05:00
Jean-Paul Calderone
69b8262f6b use a different .furl item since introducer.furl will go away 2020-11-16 15:01:05 -05:00
Jean-Paul Calderone
1946ee5023 note this is for deprecated functionality 2020-11-16 15:00:49 -05:00
Jean-Paul Calderone
4e84f5e690 write introducers.yaml instead of [client]introducer.furl in client creation 2020-11-16 15:00:20 -05:00
Jean-Paul Calderone
10600ef5ec Move write_introducer somewhere it can be used more widely 2020-11-16 14:59:42 -05:00
Jean-Paul Calderone
7cf5b04b77 Put all the CI back 2020-11-14 18:22:41 -05:00
Jean-Paul Calderone
d27c25a26f make sure we put text into yaml 2020-11-14 18:17:34 -05:00
Jean-Paul Calderone
3ac2e9365f yea okay that one fails 2020-11-14 16:57:45 -05:00
Jean-Paul Calderone
dbb8050a8c really suffering from not having a local dev env here 2020-11-14 16:51:36 -05:00
Jean-Paul Calderone
fd495124ef bleh can't just comment it all out anymore 2020-11-14 16:47:52 -05:00
Jean-Paul Calderone
c529d271ee "unicode" is spelled "str" now 2020-11-14 16:46:54 -05:00
Jean-Paul Calderone
4963e78f9f speed up ci-based testing 2020-11-14 16:46:46 -05:00
Jean-Paul Calderone
06fe3869ef is pyyaml screwing it up? 2020-11-14 16:36:51 -05:00
Jean-Paul Calderone
7b2d76c7ec Another effort to make this simultaneously Py2/Py3 friendly 2020-11-14 16:12:07 -05:00
Jean-Paul Calderone
22973e6951 Attempt to make Python 3 happier 2020-11-14 12:36:22 -05:00
Jean-Paul Calderone
18e327417c Get [client]introducer.furl out of test_system 2020-11-14 11:44:28 -05:00
Jean-Paul Calderone
0f4e34c41d Take [client]introducer.furl out of the UseNode fixture 2020-11-14 11:44:28 -05:00
Jean-Paul Calderone
b6bebc514a Remove [client]introducer.furl from test_node 2020-11-14 11:44:28 -05:00
Jean-Paul Calderone
b181b577e8 Remove [client]introducer.furl from test_multi_introducers (mostly)
Leave in this one test to demonstrate the deprecated functionality still
works, until we delete it entirely.
2020-11-14 11:44:28 -05:00
Jean-Paul Calderone
fabcc079c5 we're not testing the yaml library 2020-11-14 11:44:28 -05:00
Jean-Paul Calderone
0664416f65 Remove [client]introducer.furl from test_introducer 2020-11-14 11:44:26 -05:00
Jean-Paul Calderone
b202f81fd1 move config helper to shared location 2020-11-14 10:23:07 -05:00
Jean-Paul Calderone
25666ee49c Get rid of [client]introducer.furl from test_client 2020-11-14 10:02:19 -05:00
Jean-Paul Calderone
e0f69dcfcf Get the path manipulation into _Config too 2020-11-14 09:26:07 -05:00
Jean-Paul Calderone
bef5ccd0ca Move the introducer config reading code into _Config 2020-11-14 09:12:14 -05:00
Jean-Paul Calderone
bcef851ae0 news fragment 2020-11-13 21:08:19 -05:00
Jean-Paul Calderone
2205e144f9 Stop pointing folks at [client]introducer.furl in the docs 2020-11-13 21:06:58 -05:00
Jean-Paul Calderone
59902e037b some rst improvements 2020-11-13 14:11:21 -05:00
Jean-Paul Calderone
b34afb819f don't even hint at hash length as a version indicator 2020-11-13 14:05:22 -05:00
Jean-Paul Calderone
c9b9f2d0ce Be explicit with the version
Forward compatibility issues seem like a problem with the hash length based solution
2020-11-13 13:57:36 -05:00
Jean-Paul Calderone
a40f4ecef3 Fix the ebnf and add more references 2020-11-13 12:56:33 -05:00
Jean-Paul Calderone
983800d593 news fragment 2020-11-13 12:35:03 -05:00