Pathing issues on pypi upload on Windows
BUILD FAILED - [Errno 22] invalid mode ('w') or filename: 'c:\\Users\\jcorson\\pythonWorkspace\\projectNameHere\\target/reports\\distutils\\sdist__upload__-r__http:123.123.120.117:8080'

I am on windows working in the Git Bash. pybuilder version 0.11.8. I saw another closed issue about pathing and you made him upgrade but this is very recent

This issue didn't exist when it was the public PyPI server but I changed it to a local pypi that I need to store my project in. As a result, it seems to append the -r and the URL I provided

project.set_property("distutils_upload_repository", 'http://123.123.120.117:8080')

diff --git a/src/main/python/pybuilder/plugins/python/distutils_plugin.py b/src/main/python/pybuilder/plugins/python/distutils_plugin.py
index 8ca8e61..32b8b1d 100644
--- a/src/main/python/pybuilder/plugins/python/distutils_plugin.py
+++ b/src/main/python/pybuilder/plugins/python/distutils_plugin.py
@@ -35,7 +35,7 @@ from pybuilder.core import (after,
                             RequirementsFile,
                             Dependency)
 from pybuilder.errors import BuildFailedException
-from pybuilder.utils import as_list, is_string, is_notstr_iterable, get_dist_version_string
+from pybuilder.utils import as_list, is_string, is_notstr_iterable, get_dist_version_string, safe_log_file_name
 from pybuilder.pip_utils import build_dependency_version_string
 from textwrap import dedent
 from pybuilder.pip_utils import pip_install
@@ -257,9 +257,9 @@ def execute_distutils(project, logger, distutils_commands, clean=False):
     for command in distutils_commands:
         logger.debug("Executing distutils command %s", command)
         if is_string(command):
-            output_file_path = os.path.join(reports_dir, command.replace("/", ""))
+            output_file_path = os.path.join(reports_dir, safe_log_file_name(command))
         else:
-            output_file_path = os.path.join(reports_dir, "__".join(command).replace("/", ""))
+            output_file_path = os.path.join(reports_dir, safe_log_file_name("__".join(command)))
         with open(output_file_path, "w") as output_file:
             commands = [sys.executable, setup_script]
             if project.get_property("verbose"):
['src/main/python/pybuilder/plugins/python/distutils_plugin.py']