Return a plain version attribute string or None from searching the module file at `location`.
(location)
| 2708 | |
| 2709 | |
| 2710 | def find_plain_version(location): |
| 2711 | """ |
| 2712 | Return a plain version attribute string or None from searching the module |
| 2713 | file at `location`. |
| 2714 | """ |
| 2715 | pattern = re.compile(r"^version\s*=\s*['\"]([^'\"]*)['\"]", re.MULTILINE) |
| 2716 | match = find_pattern(location, pattern) |
| 2717 | if TRACE: logger_debug('find_plain_version:', 'location:', location, 'match:', match) |
| 2718 | return match |
| 2719 | |
| 2720 | |
| 2721 | def find_setup_py_dunder_version(location): |
nothing calls this directly
no test coverage detected