Update the version in all examples files.
(version)
| 46 | |
| 47 | |
| 48 | def update_version_in_examples(version): |
| 49 | """Update the version in all examples files.""" |
| 50 | for folder, directories, fnames in os.walk(PATH_TO_EXAMPLES): |
| 51 | # Removing some of the folders with non-actively maintained examples from the walk |
| 52 | if "research_projects" in directories: |
| 53 | directories.remove("research_projects") |
| 54 | if "legacy" in directories: |
| 55 | directories.remove("legacy") |
| 56 | for fname in fnames: |
| 57 | if fname.endswith(".py"): |
| 58 | update_version_in_file(os.path.join(folder, fname), version, pattern="examples") |
| 59 | |
| 60 | |
| 61 | def global_version_update(version, patch=False): |
no test coverage detected