Skip to content

refactor: replace deprecated package distutils #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mkdocs_monorepo_plugin/merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

from tempfile import TemporaryDirectory
from distutils.dir_util import copy_tree
from shutil import copytree

import logging
import os
Expand Down Expand Up @@ -59,7 +59,7 @@ def merge(self):
dest_dir = os.path.join(self.temp_docs_dir.name, *split_alias)

if os.path.exists(source_dir):
copy_tree(source_dir, dest_dir)
copytree(source_dir, dest_dir, dirs_exist_ok=True)
for file_abs_path in Path(source_dir).rglob('*.md'):
file_abs_path = str(file_abs_path) # python 3.5 compatibility
if os.path.isfile(file_abs_path):
Expand Down