Commit a3a106a 1 parent b3e604b commit a3a106a Copy full SHA for a3a106a
File tree 4 files changed +8
-7
lines changed
4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def main():
58
58
"--example-parser" ,
59
59
nargs = "?" ,
60
60
choices = plugins ,
61
- const = "aocd_examples_canned " ,
61
+ const = "reference " ,
62
62
help = "get the example(s) data, if any" ,
63
63
)
64
64
if len (users ) > 1 :
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def _get_unique_real_inputs(year, day):
147
147
def main ():
148
148
"""
149
149
Summarize an example parser's results with historical puzzles' prose, and
150
- compare the performance against a reference implementation (aocd_examples_canned)
150
+ compare the performance against a reference implementation
151
151
"""
152
152
try :
153
153
from rich .console import Console
@@ -166,12 +166,13 @@ def main():
166
166
"-e" ,
167
167
"--example-parser" ,
168
168
choices = list (plugins ),
169
- default = "aocd_examples_canned " ,
169
+ default = "reference " ,
170
170
help = "plugin to use for example extraction testing (default: %(default)s)" ,
171
171
)
172
172
parser .add_argument (
173
173
"-y" ,
174
174
"--years" ,
175
+ metavar = "2015+" ,
175
176
nargs = "+" ,
176
177
help = "years to run the parser against (can specify multiple)" ,
177
178
choices = all_years ,
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ def examples(self):
243
243
"""
244
244
return self ._get_examples ()
245
245
246
- def _get_examples (self , parser_name = "aocd_examples_canned " ):
246
+ def _get_examples (self , parser_name = "reference " ):
247
247
# invoke a named example parser to extract examples from cached prose.
248
248
# logs warning and returns an empty list if the parser plugin raises an
249
249
# exception for any reason.
@@ -824,7 +824,7 @@ def _load_users():
824
824
825
825
826
826
@cache
827
- def _load_example_parser (group = "adventofcode.examples" , name = "aocd_examples_canned " ):
827
+ def _load_example_parser (group = "adventofcode.examples" , name = "reference " ):
828
828
# lazy-loads a plugin used to parse sample data, and cache it
829
829
try :
830
830
# Python 3.10+ - group/name selectable entry points
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
5
5
[project ]
6
6
name = " advent-of-code-data"
7
- version = " 2.0.0 "
7
+ version = " 2.0.1 "
8
8
description = " Get your puzzle data with a single import"
9
9
requires-python = " >=3.9"
10
10
classifiers = [
@@ -19,7 +19,7 @@ dependencies = [
19
19
" pebble" ,
20
20
" urllib3" ,
21
21
' tzdata ; platform_system == "Windows"' ,
22
- " aocd-example-parser >= 2023.1 " ,
22
+ " aocd-example-parser >= 2023.2 " ,
23
23
]
24
24
25
25
[[project .authors ]]
You can’t perform that action at this time.
0 commit comments