diff --git a/.github/workflows/pip_install_pypiwin32.yml b/.github/workflows/pip_install_pypiwin32.yml new file mode 100644 index 00000000..9c6ca9af --- /dev/null +++ b/.github/workflows/pip_install_pypiwin32.yml @@ -0,0 +1,27 @@ +# A GitHub Action to demonstrate pip install pypiwin32 on Windows on Python 3.14t. +# https://github.com/Googulator/pypiwin32 --> https://pypi.org/project/pypiwin32 + +name: pip_install_pypiwin32 +on: + push: + paths: + - '.github/workflows/pip_install_pypiwin32.yml' + pull_request: + paths: + - '.github/workflows/pip_install_pypiwin32.yml' + workflow_dispatch: +jobs: + install_pypiwin32: + strategy: + fail-fast: false + matrix: + python-version: [3.14, 3.14t] + os: [windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 + with: + python-version: ${{ matrix.python-version }} + - run: python3 -m pip install --upgrade pip + - run: pip install pypiwin32 diff --git a/setup.py b/setup.py index 750e30b3..2e7a09ec 100644 --- a/setup.py +++ b/setup.py @@ -116,7 +116,7 @@ build_id_patch = build_id_patch + ".0" pywin32_version = "%d.%d.%s" % (sys.version_info[0], sys.version_info[1], build_id_patch) -print(("Building pywin32", pywin32_version)) +print("Building pywin32", pywin32_version) try: this_file = __file__ @@ -430,7 +430,7 @@ def run(self): f.write("%s\n" % build_id) f.close() except EnvironmentError as why: - print(("Failed to open '%s': %s" % (ver_fname, why))) + print("Failed to open '%s': %s" % (ver_fname, why)) class build_scintilla(Command): @@ -646,7 +646,7 @@ def _copy_mfc(self): for f in mfc_files: self.copy_file(os.path.join(mfc_dir, f), target_dir) except (EnvironmentError, RuntimeError) as exc: - print(("Can't find an installed VC for the MFC DLLs:", exc)) + print("Can't find an installed VC for the MFC DLLs:", exc) def get_ext_filename(self, name): # The pywintypes and pythoncom extensions have special names @@ -775,7 +775,7 @@ def finalize_options(self): if self.install_dir is None: installobj = self.distribution.get_command_obj('install') self.install_dir = installobj.install_lib - print(('Installing data files to %s' % self.install_dir)) + print('Installing data files to %s' % self.install_dir) install_data.finalize_options(self) # TODO: Find out why these files exist