public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-markups] f45: Update to 4.0.0
Date: Thu, 22 Oct 2026 17:37:39 GMT	[thread overview]
Message-ID: <179269065909.1.12165434052611598201.rpms-python-markups-e0f4770e75ce@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-markups
            Branch : f45
            Commit : e0f4770e75ce63472f293d11275266494ed244b0
            Author : José Matos <jamatos@fedoraproject.org>
            Date   : 2024-10-31T13:03:09+00:00
            Stats  : +30/-55 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-markups/c/e0f4770e75ce63472f293d11275266494ed244b0?branch=f45

            Log:
            Update to 4.0.0

Update to 4.0.0
Update to 4.0.0

---
diff --git a/.gitignore b/.gitignore
index 570dc68..bc53ec6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/Markups-3.1.3.tar.gz
+/Markups-4.0.0.tar.gz

diff --git a/fix-tests-with-pygments-2.11.patch b/fix-tests-with-pygments-2.11.patch
deleted file mode 100644
index 7d2404f..0000000
--- a/fix-tests-with-pygments-2.11.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From c13ae6633fa9395841dbe81ac16879b80868fa86 Mon Sep 17 00:00:00 2001
-From: Dmitry Shachnev <mitya57@gmail.com>
-Date: Sun, 9 Jan 2022 18:49:30 +0300
-Subject: [PATCH] =?UTF-8?q?Make=20the=20tests=20pass=20with=20Pygments=20?=
- =?UTF-8?q?=E2=89=A5=202.11.0?=
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-In https://github.com/pygments/pygments/commit/b4c63595da6bdc45,
-the default color for .ch (Comment.Hashbang) was changed from #408080
-to #3D7B7B.
-
-As I want the tests to pass with both old and new Pygments, I am
-switching to a different selector, .nf (Name.Function) which was not
-changed.
----
- tests/test_public_api.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/tests/test_public_api.py b/tests/test_public_api.py
-index 7cea04f..84338d8 100644
---- a/tests/test_public_api.py
-+++ b/tests/test_public_api.py
-@@ -33,7 +33,7 @@ def test_get_pygments_stylesheet(self):
- 		except ImportError:
- 			raise unittest.SkipTest("Pygments not available")
- 		stylesheet = get_pygments_stylesheet(".selector")
--		self.assertIn(".selector .ch { color: #408080", stylesheet)
-+		self.assertIn(".selector .nf { color: #0000FF", stylesheet)
- 		stylesheet = get_pygments_stylesheet(".selector", style="colorful")
--		self.assertIn(".selector .ch { color: #888888", stylesheet)
-+		self.assertIn(".selector .nf { color: #0066BB", stylesheet)
- 		self.assertFalse(get_pygments_stylesheet(".selector", style=""))

diff --git a/python-markups.spec b/python-markups.spec
index 49d3ccc..3a378d5 100644
--- a/python-markups.spec
+++ b/python-markups.spec
@@ -1,8 +1,8 @@
 %global pypi_name markups
 
 Name:           python-%{pypi_name}
-Version:        3.1.3
-Release:        13%{?dist}
+Version:        4.0.0
+Release:        1%{?dist}
 Summary:        A wrapper around various text markups
 
 # Automatically converted from old format: BSD - review is highly recommended.
@@ -11,19 +11,17 @@ URL:            https://github.com/retext-project/pymarkups
 Source0:        %{pypi_source Markups}
 BuildArch:      noarch
 
-# Fix tests with Pygments 2.11.2
-# Commit backported from: https://github.com/retext-project/pymarkups/commit/c13ae6633
-Patch:          fix-tests-with-pygments-2.11.patch
-
 BuildRequires:  python3-devel
-BuildRequires:  python3dist(docutils)
-BuildRequires:  python3dist(markdown)
-BuildRequires:  python3dist(pygments)
-BuildRequires:  python3dist(python-markdown-math)
-BuildRequires:  python3dist(setuptools)
-BuildRequires:  python3dist(textile)
+BuildRequires: python3dist(pytest)
 BuildRequires:  python3dist(sphinx)
-BuildRequires:  python3dist(pyyaml)
+
+#BuildRequires:  python3dist(docutils)
+#BuildRequires:  python3dist(markdown)
+#BuildRequires:  python3dist(pygments)
+#BuildRequires:  python3dist(python-markdown-math)
+#BuildRequires:  python3dist(setuptools)
+#BuildRequires:  python3dist(textile)
+#BuildRequires:  python3dist(pyyaml)
 
 %description
 This module provides a wrapper around various text markup languages. Available
@@ -52,30 +50,41 @@ Documentation for markups
 # Remove bundled egg-info
 rm -rf %{pypi_name}.egg-info
 
+%generate_buildrequires
+%pyproject_buildrequires
+
+
 %build
-%py3_build
+%pyproject_wheel
+
 # generate html docs
 PYTHONPATH=${PWD} sphinx-build-3 docs html
 # remove the sphinx-build leftovers
 rm -rf html/.{doctrees,buildinfo}
 
+
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files %{pypi_name}
+
 
 %check
-%{__python3} setup.py test -v
+%pytest tests/
+
 
-%files -n python3-%{pypi_name}
+%files -n python3-%{pypi_name} -f %{pyproject_files}
 %license LICENSE
 %doc README.rst
-%{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/Markups-%{version}-py%{python3_version}.egg-info
 
 %files -n python-%{pypi_name}-doc
 %doc html
 %license LICENSE
 
+
 %changelog
+* Thu Oct 31 2024 José Matos <jamatos@fedoraproject.org> - 4.0.0-1
+- Update to 4.0.0
+
 * Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 3.1.3-13
 - convert license to SPDX
 

diff --git a/sources b/sources
index c34cb3f..578cefe 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (Markups-3.1.3.tar.gz) = 324c3c45063e192ebde0fcd10e868b2053fb2758076092b180e1d8eed965dd41b2ea252a081b750637454395c163a92145f68e2a6fd8eb3eded8927baf044484
+SHA512 (Markups-4.0.0.tar.gz) = 5868b480debad480100ce632223aeca62ef22a6d9b2af6b4911d3477c94bcd99b88b5bc56f990d24d92de0d2665340e0fce37721f7979938ba947fab2c65900c

                 reply	other threads:[~2026-10-22 17:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179269065909.1.12165434052611598201.rpms-python-markups-e0f4770e75ce@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox