(
project_shortname, components, metadata, pkg_data, prefix, **kwargs
)
| 522 | |
| 523 | # pylint: disable=unused-argument |
| 524 | def generate_module( |
| 525 | project_shortname, components, metadata, pkg_data, prefix, **kwargs |
| 526 | ): |
| 527 | # copy over all JS dependencies from the (Python) components dir |
| 528 | # the inst/lib directory for the package won't exist on first call |
| 529 | # create this directory if it is missing |
| 530 | if os.path.exists("deps"): |
| 531 | shutil.rmtree("deps") |
| 532 | |
| 533 | os.makedirs("deps") |
| 534 | |
| 535 | for rel_dirname, _, filenames in os.walk(project_shortname): |
| 536 | for filename in filenames: |
| 537 | extension = os.path.splitext(filename)[1] |
| 538 | |
| 539 | if extension in [".py", ".pyc", ".json"]: |
| 540 | continue |
| 541 | |
| 542 | target_dirname = os.path.join( |
| 543 | "deps/", os.path.relpath(rel_dirname, project_shortname) |
| 544 | ) |
| 545 | |
| 546 | if not os.path.exists(target_dirname): |
| 547 | os.makedirs(target_dirname) |
| 548 | |
| 549 | shutil.copy(os.path.join(rel_dirname, filename), target_dirname) |
| 550 | |
| 551 | generate_package_file(project_shortname, components, pkg_data, prefix) |
| 552 | generate_toml_file(project_shortname, pkg_data) |
no test coverage detected
searching dependent graphs…