File project.diff of Package python-smartypants
--- python-smartypants.changes.orig
+++ python-smartypants.changes
@@ -1,4 +1,20 @@
-------------------------------------------------------------------
+Fri Apr 21 12:34:12 UTC 2023 - Dirk Müller <dmueller@suse.com>
+
+- add sle15_python_module_pythons (jsc#PED-68)
+
+-------------------------------------------------------------------
+Thu Apr 13 22:44:55 UTC 2023 - Matej Cepl <mcepl@suse.com>
+
+- Make calling of %{sle15modernpython} optional.
+
+-------------------------------------------------------------------
+Tue Mar 14 20:32:40 UTC 2023 - Dirk Müller <dmueller@suse.com>
+
+- add use-sys-executable.patch to run the tests with the flavor
+ python interpreter
+
+-------------------------------------------------------------------
Wed Sep 8 10:03:32 UTC 2021 - pgajdos@suse.com
- %check: use %pyunittest rpm macro
--- python-smartypants.spec.orig
+++ python-smartypants.spec
@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?sle15_python_module_pythons}
Name: python-smartypants
Version: 2.0.1
Release: 0
@@ -25,6 +26,7 @@ License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/leohemsted/smartypants.py
Source: https://github.com/leohemsted/smartypants.py/archive/v%{version}.tar.gz#/smartypants-%{version}.tar.gz
+Patch1: use-sys-executable.patch
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module pygments}
BuildRequires: %{python_module setuptools}
@@ -43,10 +45,10 @@ typographic punctuation HTML entities.
%prep
%setup -q -n smartypants.py-%{version}
+%patch1 -p1
%build
%python_build
-sed -i 's:python:python3:' setup.py smartypants tests/*.py
%install
%python_install