public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-wcmatch] rawhide: Remove unnecessary patch
@ 2026-06-30 10:05 Parag Nemade
0 siblings, 0 replies; only message in thread
From: Parag Nemade @ 2026-06-30 10:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-wcmatch
Branch : rawhide
Commit : ce78b55c9a6897866d976760737930e920a26c5a
Author : Parag Nemade <panemade AT redhat DOT com>
Date : 2026-06-30T15:34:56+05:30
Stats : +0/-285 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-wcmatch/c/ce78b55c9a6897866d976760737930e920a26c5a?branch=rawhide
Log:
Remove unnecessary patch
---
diff --git a/Update-to-support-Python-3.12-alpha-203.patch b/Update-to-support-Python-3.12-alpha-203.patch
deleted file mode 100644
index c7bc147..0000000
--- a/Update-to-support-Python-3.12-alpha-203.patch
+++ /dev/null
@@ -1,285 +0,0 @@
-From 6595179e3ff296875c6fa0808c635c2045df18a6 Mon Sep 17 00:00:00 2001
-From: Isaac Muse <faceless.shop@gmail.com>
-Date: Tue, 25 Apr 2023 18:22:22 -0600
-Subject: [PATCH] Update to support Python 3.12 alpha (#203)
-
-* Update to support Python 3.12 alpha
-
-* Refactor for latest alpha
----
- .github/workflows/build.yml | 28 +++++++++++----------
- .github/workflows/deploy.yml | 12 ++++-----
- docs/src/markdown/about/changelog.md | 5 ++++
- hatch_build.py | 1 +
- tox.ini | 2 +-
- wcmatch/pathlib.py | 37 ++++++++++++++++++----------
- wcmatch/util.py | 1 +
- 7 files changed, 53 insertions(+), 33 deletions(-)
-
-diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
-index b629a82..a2a7529 100644
---- a/.github/workflows/build.yml
-+++ b/.github/workflows/build.yml
-@@ -17,7 +17,7 @@ jobs:
- max-parallel: 4
- matrix:
- platform: [ubuntu-latest, windows-latest]
-- python-version: [3.7, 3.8, 3.9, '3.10', '3.11-dev']
-+ python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12-dev']
- include:
- - python-version: 3.7
- tox-env: py37
-@@ -27,11 +27,13 @@ jobs:
- tox-env: py39
- - python-version: '3.10'
- tox-env: py310
-- - python-version: '3.11-dev'
-- tox-env: py311
-+ - python-version: '3.11'
-+ tox-env: py310
-+ - python-version: '3.12-dev'
-+ tox-env: py312
- exclude:
- - platform: windows-latest
-- python-version: '3.11-dev'
-+ python-version: '3.12-dev'
-
- env:
- TOXENV: ${{ matrix.tox-env }}
-@@ -39,10 +41,10 @@ jobs:
- runs-on: ${{ matrix.platform }}
-
- steps:
-- - uses: actions/checkout@v2
-+ - uses: actions/checkout@v3
- - name: Set up Python ${{ matrix.python-version }}
- if: "!endsWith(matrix.python-version, '-dev')"
-- uses: actions/setup-python@v2
-+ uses: actions/setup-python@v4
- with:
- python-version: ${{ matrix.python-version }}
- - name: Set up development Python ${{ matrix.python-version }}
-@@ -52,7 +54,7 @@ jobs:
- python-version: ${{ matrix.python-version }}
- - name: Install dependencies
- run: |
-- python -m pip install --upgrade pip setuptools tox coverage codecov
-+ python -m pip install --upgrade pip setuptools tox coverage
- - name: Test
- run: |
- python -m tox
-@@ -69,7 +71,7 @@ jobs:
- strategy:
- max-parallel: 4
- matrix:
-- python-version: [3.9]
-+ python-version: [3.11]
-
- env:
- TOXENV: lint
-@@ -77,9 +79,9 @@ jobs:
- runs-on: ubuntu-latest
-
- steps:
-- - uses: actions/checkout@v2
-+ - uses: actions/checkout@v3
- - name: Set up Python ${{ matrix.python-version }}
-- uses: actions/setup-python@v2
-+ uses: actions/setup-python@v4
- with:
- python-version: ${{ matrix.python-version }}
- - name: Install dependencies
-@@ -93,7 +95,7 @@ jobs:
- strategy:
- max-parallel: 4
- matrix:
-- python-version: [3.9]
-+ python-version: [3.11]
-
- env:
- TOXENV: documents
-@@ -101,9 +103,9 @@ jobs:
- runs-on: ubuntu-latest
-
- steps:
-- - uses: actions/checkout@v2
-+ - uses: actions/checkout@v3
- - name: Set up Python ${{ matrix.python-version }}
-- uses: actions/setup-python@v2
-+ uses: actions/setup-python@v4
- with:
- python-version: ${{ matrix.python-version }}
- - name: Install dependencies
-diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
-index 08c89ab..581fd1d 100644
---- a/.github/workflows/deploy.yml
-+++ b/.github/workflows/deploy.yml
-@@ -11,16 +11,16 @@ jobs:
- strategy:
- max-parallel: 4
- matrix:
-- python-version: [3.9]
-+ python-version: [3.11]
-
- runs-on: ubuntu-latest
-
- steps:
-- - uses: actions/checkout@v2
-+ - uses: actions/checkout@v3
- with:
- fetch-depth: 0
- - name: Set up Python ${{ matrix.python-version }}
-- uses: actions/setup-python@v2
-+ uses: actions/setup-python@v4
- with:
- python-version: ${{ matrix.python-version }}
- - name: Install dependencies
-@@ -40,10 +40,10 @@ jobs:
- runs-on: ubuntu-latest
-
- steps:
-- - uses: actions/checkout@v2
-- - uses: actions/setup-python@v2
-+ - uses: actions/checkout@v3
-+ - uses: actions/setup-python@v4
- with:
-- python-version: 3.9
-+ python-version: 3.11
- - name: Package
- run: |
- pip install --upgrade wheel build
-diff --git a/docs/src/markdown/about/changelog.md b/docs/src/markdown/about/changelog.md
-index 2ef5859..5ac87ee 100644
---- a/docs/src/markdown/about/changelog.md
-+++ b/docs/src/markdown/about/changelog.md
-@@ -1,5 +1,10 @@
- # Changelog
-
-+## 8.5
-+
-+- **NEW**: Formally support Python 3.11 (no change).
-+- **NEW**: Experimental, early support for upcoming Python 3.12 (`pathlib` changes).
-+
- ## 8.4.1
-
- - **FIX**: Windows drive path separators should normalize like other path separators.
-diff --git a/hatch_build.py b/hatch_build.py
-index 89bf8dc..b05d7ff 100644
---- a/hatch_build.py
-+++ b/hatch_build.py
-@@ -44,6 +44,7 @@ class CustomMetadataHook(MetadataHookInterface):
- 'Programming Language :: Python :: 3.8',
- 'Programming Language :: Python :: 3.9',
- 'Programming Language :: Python :: 3.10',
-+ 'Programming Language :: Python :: 3.11',
- 'Topic :: Software Development :: Libraries :: Python Modules',
- 'Typing :: Typed'
- ]
-diff --git a/tox.ini b/tox.ini
-index f4f05c2..07d7234 100644
---- a/tox.ini
-+++ b/tox.ini
-@@ -2,7 +2,7 @@
- isolated_build = true
- skipsdist=true
- envlist=
-- py36,py37,py38,py39,py310,
-+ py36,py37,py38,py39,py310,py311,py312,
- lint
-
- [testenv]
-diff --git a/wcmatch/pathlib.py b/wcmatch/pathlib.py
-index 05462a6..688ed39 100644
---- a/wcmatch/pathlib.py
-+++ b/wcmatch/pathlib.py
-@@ -1,10 +1,12 @@
- """Pathlib implementation that uses our own glob."""
-+import ntpath
-+import posixpath
- import pathlib
- import os
- from . import glob
- from . import _wcparse
- from . import util
--from typing import Iterable, Any, Union, Sequence, Optional, cast
-+from typing import Iterable, Any, Union, Sequence, Optional
-
- __all__ = (
- "CASE", "IGNORECASE", "RAWCHARS", "DOTGLOB", "DOTMATCH",
-@@ -79,7 +81,10 @@ class PurePath(pathlib.PurePath):
-
- if cls is PurePath:
- cls = PureWindowsPath if os.name == 'nt' else PurePosixPath
-- return cast('PurePath', cls._from_parts(args)) # type: ignore[attr-defined]
-+ if not util.PY312:
-+ return cls._from_parts(args) # type: ignore[no-any-return,attr-defined]
-+ else:
-+ return object.__new__(cls)
-
- def _translate_flags(self, flags: int) -> int:
- """Translate flags for the current `pathlib` object."""
-@@ -159,17 +164,23 @@ class Path(pathlib.Path):
- def __new__(cls, *args: str, **kwargs: Any) -> 'Path':
- """New."""
-
-+ win_host = os.name == 'nt'
- if cls is Path:
-- cls = WindowsPath if os.name == 'nt' else PosixPath
-- if util.PY310:
-- self = cls._from_parts(args) # type: ignore[attr-defined]
-+ cls = WindowsPath if win_host else PosixPath
-+ if not util.PY312:
-+ if util.PY310:
-+ self = cls._from_parts(args) # type: ignore[attr-defined]
-+ else:
-+ self = cls._from_parts(args, init=False) # type: ignore[attr-defined]
-+ if not self._flavour.is_supported:
-+ raise NotImplementedError("Cannot instantiate {!r} on your system".format(cls.__name__))
-+ if not util.PY310:
-+ self._init()
-+ return self # type: ignore[no-any-return]
- else:
-- self = cls._from_parts(args, init=False) # type: ignore[attr-defined]
-- if not self._flavour.is_supported:
-- raise NotImplementedError("Cannot instantiate {!r} on your system".format(cls.__name__))
-- if not util.PY310:
-- self._init()
-- return cast('Path', self)
-+ if cls is WindowsPath and not win_host or cls is not WindowsPath and win_host:
-+ raise NotImplementedError("Cannot instantiate {!r} on your system".format(cls.__name__))
-+ return object.__new__(cls)
-
- def glob( # type: ignore[override]
- self,
-@@ -218,14 +229,14 @@ class Path(pathlib.Path):
- class PurePosixPath(PurePath):
- """Pure Posix path."""
-
-- _flavour = pathlib._posix_flavour # type: ignore[attr-defined]
-+ _flavour = pathlib._posix_flavour if not util.PY312 else posixpath # type: ignore[attr-defined]
- __slots__ = ()
-
-
- class PureWindowsPath(PurePath):
- """Pure Windows path."""
-
-- _flavour = pathlib._windows_flavour # type: ignore[attr-defined]
-+ _flavour = pathlib._windows_flavour if not util.PY312 else ntpath # type: ignore[attr-defined]
- __slots__ = ()
-
-
-diff --git a/wcmatch/util.py b/wcmatch/util.py
-index 6eaf652..d582a1f 100644
---- a/wcmatch/util.py
-+++ b/wcmatch/util.py
-@@ -10,6 +10,7 @@ import warnings
- from typing import Any, Callable, Tuple, AnyStr, Match, Pattern, Optional, cast
-
- PY310 = (3, 10) <= sys.version_info
-+PY312 = (3, 12) <= sys.version_info
-
- UNICODE = 0
- BYTES = 1
---
-2.41.0
-
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-30 10:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-30 10:05 [rpms/python-wcmatch] rawhide: Remove unnecessary patch Parag Nemade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox