public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-python-ulid] epel10: Update to 3.2.0 (close RHBZ#2501767)
@ 2026-07-17 21:14 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-17 21:14 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-python-ulid
Branch : epel10
Commit : cf65d8efb827eb994c044868cbf5b2ff5c4f4ffe
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-07-17T22:13:45+01:00
Stats  : +11/-86 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/python-python-ulid/c/cf65d8efb827eb994c044868cbf5b2ff5c4f4ffe?branch=epel10

Log:
Update to 3.2.0 (close RHBZ#2501767)

---
diff --git a/.gitignore b/.gitignore
index 7664e02..1153bd5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
 /python_ulid-2.7.0.tar.gz
 /python_ulid-3.0.0.tar.gz
 /python_ulid-3.1.0.tar.gz
+/python-ulid-3.2.0.tar.gz

diff --git a/0001-Depend-on-typing-extensions-for-Python-3.11-avoid-it.patch b/0001-Depend-on-typing-extensions-for-Python-3.11-avoid-it.patch
deleted file mode 100644
index fe9b1c6..0000000
--- a/0001-Depend-on-typing-extensions-for-Python-3.11-avoid-it.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-From a2719467253b66191b2ae148bb88e47b1101fd3f Mon Sep 17 00:00:00 2001
-From: "Benjamin A. Beasley" <code@musicinmybrain.net>
-Date: Tue, 3 Feb 2026 11:04:29 +0000
-Subject: [PATCH] Depend on typing-extensions for Python<3.11; avoid it
- otherwise
-
-Conditionalize the import of `typing_extensions`, needed only in Python
-3.10 and older; use `typing` instead for Python 3.11 and later. Add a
-dependency on `typing-extensions`, appropriately conditioned on the
-Python interpreter version.
-
-Based on https://github.com/mdomke/python-ulid/pull/47 and
-https://github.com/mdomke/python-ulid/pull/47#issuecomment-3431221960.
-
-Fixes https://github.com/mdomke/python-ulid/issues/44.
----
- pyproject.toml   | 3 +++
- ulid/__init__.py | 6 +++++-
- 2 files changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index 5c3b252..c28114c 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -26,6 +26,9 @@ classifiers = [
-     "Programming Language :: Python :: 3.13",
-     "Topic :: Software Development :: Libraries",
- ]
-+dependencies = [
-+    "typing-extensions; python_version < '3.11'",
-+]
- 
- [project.urls]
- Homepage = "https://github.com/mdomke/python-ulid"
-diff --git a/ulid/__init__.py b/ulid/__init__.py
-index d327385..d457081 100644
---- a/ulid/__init__.py
-+++ b/ulid/__init__.py
-@@ -2,6 +2,7 @@ from __future__ import annotations
- 
- import functools
- import os
-+import sys
- import time
- import uuid
- from datetime import datetime
-@@ -13,7 +14,10 @@ from typing import Generic
- from typing import TYPE_CHECKING
- from typing import TypeVar
- 
--from typing_extensions import Self
-+if sys.version_info >= (3, 11):
-+    from typing import Self
-+else:
-+    from typing_extensions import Self
- 
- from ulid import base32
- from ulid import constants
--- 
-2.52.0
-

diff --git a/python-python-ulid.spec b/python-python-ulid.spec
index d1438d4..abfe0f4 100644
--- a/python-python-ulid.spec
+++ b/python-python-ulid.spec
@@ -6,43 +6,25 @@
 #   Possible confusion with the "ulid" package
 #   https://github.com/mdomke/python-ulid/issues/13
 Name:           python-python-ulid
-Version:        3.1.0
+Version:        3.2.0
 Release:        %autorelease
 Summary:        Universally unique lexicographically sortable identifier
 
 # SPDX
 License:        MIT
 URL:            https://github.com/mdomke/python-ulid
-Source0:        %{pypi_source python_ulid}
+Source0:        %{url}/archive/%{version}/python-ulid-%{version}.tar.gz
 # Man pages hand-written for Fedora in groff_man(7) format based on --help
 Source10:       ulid.1
 Source11:       ulid-build.1
 Source12:       ulid-show.1
 
-# Depend on typing-extensions for Python<3.11; avoid it otherwise
-#
-# Conditionalize the import of `typing_extensions`, needed only in Python 3.10
-# and older; use `typing` instead for Python 3.11 and later. Add a dependency
-# on `typing-extensions`, appropriately conditioned on the Python interpreter
-# version.
-#
-# Based on https://github.com/mdomke/python-ulid/pull/47 and
-# https://github.com/mdomke/python-ulid/pull/47#issuecomment-3431221960.
-#
-# Fixes https://github.com/mdomke/python-ulid/issues/44.
-#
-# Without changes to uv.lock, since we don’t use the lockfile and to avoid
-# merge conflicts.
-#
-# Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2436255.
-Patch:          0001-Depend-on-typing-extensions-for-Python-3.11-avoid-it.patch
 
 BuildArch:      noarch
 
-BuildRequires:  python3-devel
-# Test dependencies are defined in [envs.default] in hatch.toml. They have
-# tight version pins and include coverage tools; it is easier to maintain a
-# manual list.
+# Test dependencies are defined in the “dev” dependeny group, which has tight
+# version pins and includes coverage tools and other unwanted dependencies; it
+# is easier to maintain a manual list.
 BuildRequires:  %{py3_dist freezegun}
 BuildRequires:  %{py3_dist pytest}
 
@@ -58,6 +40,7 @@ A ULID is a universally unique lexicographically sortable identifier. It is
     character)
   * Case insensitive
   * No special characters (URL safe)
+  * Monotonic sort order (correctly detects and handles the same millisecond)
 
 For more information have a look at the original specification,
 https://github.com/alizain/ulid#specification.}
@@ -79,14 +62,16 @@ Summary:        %{summary}
 
 
 %prep
-%autosetup -n python_ulid-%{version} -p1
+%autosetup -n python-ulid-%{version} -p1
 
 
 %generate_buildrequires
+export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
 %pyproject_buildrequires -x pydantic
 
 
 %build
+export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
 %pyproject_wheel
 
 

diff --git a/sources b/sources
index 67ab8f2..3bab44c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (python_ulid-3.1.0.tar.gz) = f21fc70133a839934e9b3f4b2ec756a5a68440cdeedd4aacbf60e93843c845d5600f1c9368178cd37226a80fa08ddb2239a29fbd04c916ff64f29a811dc71943
+SHA512 (python-ulid-3.2.0.tar.gz) = 8e7a5065d42eb413d6395a629c15f8a579402cab63b27a51b9447fbd613d7b6011184cf30d85aa4b14c667ac67da7600e3c1b727797ef27714b2de68cdda6b70

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-17 21:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-17 21:14 [rpms/python-python-ulid] epel10: Update to 3.2.0 (close RHBZ#2501767) Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox