python3-smartypants: upgrade 2.0.0 -> 2.0.2

Changelog (https://github.com/justinmayer/smartypants.py/blob/main/CHANGES.rst#releases-20-and-greater):

Release 2.0.2 (2025-06-17)

- Fix double closing quotes after an HTML block
- Fix regular expressions and tests for Python 3.12+
- Move documentation to ReadTheDocs

Release 2.0.1 (2017-12-20)

- use re.match instead of re.search to improve performance on large strings

The patch '0001-Change-hash-bang-to-python3.patch' needed a refresh to
apply on the latest version.

License-Update: Update and granularize copyright years

(From OE-Core rev: ebb83ce10fecd1a4378a238191f1e012f0c849b7)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Trevor Gamblin 2025-06-24 12:43:01 -04:00 committed by Richard Purdie
parent bf9c285a10
commit 33d128592f
2 changed files with 17 additions and 11 deletions

View File

@ -1,4 +1,4 @@
From e299bcb05405ff49450307bf3002c1fac14a866c Mon Sep 17 00:00:00 2001
From 7425e49166e6f16743ec9528697d06bc4103dc5e Mon Sep 17 00:00:00 2001
From: Tim Orling <tim.orling@konsulko.com>
Date: Sun, 20 Feb 2022 18:55:50 -0800
Subject: [PATCH] Change hash bang to python3
@ -9,6 +9,9 @@ Upstream-Status: Inappropriate [oe-core specific]
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Update to apply on v2.0.2.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
setup.py | 2 +-
smartypants | 2 +-
@ -16,32 +19,35 @@ Signed-off-by: Tim Orling <tim.orling@konsulko.com>
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/setup.py b/setup.py
index ff1ea76..96a8b73 100755
index c183fc0..e10d757 100755
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright (C) 2013, 2014 by Yu-Jie Lin
# Copyright (c) 2025present Justin Mayer
# For detail license information, See COPYING
diff --git a/smartypants b/smartypants
index 189adf5..0cca568 100755
index 1dabf7d..20c130e 100755
--- a/smartypants
+++ b/smartypants
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright (c) 2013, 2014 Yu-Jie Lin
# Copyright (c) 2025present Justin Mayer
# Licensed under the BSD License, for detailed license information, see COPYING
diff --git a/smartypants.py b/smartypants.py
index a70575b..e53bd87 100755
index 62c1472..a440d14 100755
--- a/smartypants.py
+++ b/smartypants.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
+#!/usr/bin/python3
# Copyright (c) 2025present Justin Mayer
# Copyright (c) 2017 Leo Hemsted
# Copyright (c) 2013, 2014, 2016 Yu-Jie Lin
# Copyright (c) 2004, 2005, 2007, 2013 Chad Miller
--
2.49.0

View File

@ -1,12 +1,12 @@
SUMMARY = "Translator of plain ASCII punctuation characters into 'smart' typographic punctuation HTML entities"
HOMEPAGE = "https://pythonhosted.org/smartypants/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=977036977591ac666c728921ecc54c4f"
LIC_FILES_CHKSUM = "file://COPYING;md5=ca325788d94ee694fef2a308c5073454"
inherit pypi setuptools3
PYPI_PACKAGE = "smartypants"
SRC_URI += "file://0001-Change-hash-bang-to-python3.patch"
SRC_URI[sha256sum] = "7812353a32022699a1aa8cd5626e01c94a946dcaeedaee2d0b382bae4c4cbf36"
SRC_URI[sha256sum] = "39d64ce1d7cc6964b698297bdf391bc12c3251b7f608e6e55d857cd7c5f800c6"
BBCLASSEXTEND = "native nativesdk"