* This PR impliments the feature request #784. When a folder is explicit defined in `pyproject.toml` as excluded, all nested data, including subfolder, are excluded. It is no longer neccessary to use the glob `folder/**/*` * use `Path` instead of `os.path.join` to create string for globbing * try to fix linting error * create glob pattern string by concatenating and not using Path * using `os.path.isdir()`` for checking of explicit excluded name is a folder, because pathlib's `is_dir()` raises in exception under windows of name contains globing characters * Remove nested data when wildcards where used. Steps to do this are: 1. expand any wildcard used 2. if expanded path is a folder append **/* and expand again * fix linting * only glob a second time if path is dir * implement @sdispater 's suggestion for better readability * fix glob for windows? * On Windows, testing if a path with a glob is a directory will raise an OSError * pathlibs glob function doesn't return the correct case (https://bugs.python.org/issue26655). So switching back to glob.glob() * removing obsolete imports
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| case_sensitive_exclusions | Loading commit data... | |
| complete | Loading commit data... | |
| default_with_excluded_data | Loading commit data... | |
| default_with_excluded_data_toml | Loading commit data... | |
| exclude_nested_data_toml | Loading commit data... | |
| extended | Loading commit data... | |
| invalid_case_sensitive_exclusions | Loading commit data... | |
| localversionlabel | Loading commit data... | |
| module1 | Loading commit data... | |
| prerelease | Loading commit data... | |
| simple_version | Loading commit data... | |
| single_python | Loading commit data... | |
| source_file | Loading commit data... | |
| source_package | Loading commit data... | |
| src_extended | Loading commit data... | |
| with-include | Loading commit data... | |
| with_url_dependency | Loading commit data... | |
| with_vcs_dependency | Loading commit data... |