Overview
Comment: | add pacakge disovery, and additional comment styles (different languages) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f03780244f3b89cd5dbf1a0f5dcca340 |
User & Date: | mario on 2022-10-31 18:56:16 |
Other Links: | manifest | tags |
Context
2022-11-01
| ||
16:57 | add new comment extraction rx check-in: 3ad4b252ac user: mario tags: trunk | |
2022-10-31
| ||
18:56 | add pacakge disovery, and additional comment styles (different languages) check-in: f03780244f user: mario tags: trunk | |
12:56 | doc additions, add params for setup and gui, fix flit sample check-in: 93aac20151 user: mario tags: trunk | |
Changes
Modified pluginconf/__init__.py from [5e7e9e9afe] to [97ed648af8].
︙ | |||
284 285 286 287 288 289 290 | 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | - + | And `meta.config` already parsed as a list (`OptionList`) of dictionaries. """ # Try via pkgutil first, # find any plugins.* modules, or main packages if module: search = plugin_base + kwargs.get("extra_base", []) |
︙ | |||
359 360 361 362 363 364 365 366 367 368 369 370 371 372 | 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 | + | "config": [], "doc": "" } # Extract coherent comment block src = src.replace("\r", "") if not literal: src = rx.header.sub("", src) src = rx.comment.search(src) if not src: log.warning("Couldn't read source meta information: %s", filename) return meta src = src.group(0) src = rx.hash.sub("", src).strip() |
︙ | |||
466 467 468 469 470 471 472 | 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 | + + + + + + - - + + + + + + + + + | class rx: """ Pretty crude comment splitting approach. But works well enough already. Technically a YAML parser would do better; but is likely overkill. """ header = re.compile(r""" (\A ( \#! \s+ /.+ | # shebang <\?php .* ) $)+ """, re.M | re.X) |
︙ |
Added test/config_altsyntax.py version [28af7a5552].
|