Skip to content

Commit 892dad8

Browse files
durgajagadeeshBinduSri-6522866
authored andcommitted
Resolved ptest failures in python-markdown package (microsoft#17089)
1 parent 278e8e8 commit 892dad8

4 files changed

Lines changed: 36 additions & 9 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
From 5b625838fe7ab26b18b37844a172fa133105bd80 Mon Sep 17 00:00:00 2001
2+
From: Durga Jagadeesh Palli <v-dpalli@microsoft.com>
3+
Date: Tue, 12 May 2026 04:50:37 +0000
4+
Subject: [PATCH] fix license issue
5+
Summary: rewriting the pyproject.toml license metadata from the newer format into an older setuptools-compatible format.
6+
7+
diff --git a/pyproject.toml b/pyproject.toml
8+
index e350a23..556dfbb 100644
9+
--- a/pyproject.toml
10+
+++ b/pyproject.toml
11+
@@ -17,8 +17,7 @@ maintainers = [
12+
{name = 'Waylan Limberg', email = 'python.markdown@gmail.com'},
13+
{name = 'Isaac Muse'}
14+
]
15+
-license = "BSD-3-Clause"
16+
-license-files = ["LICENSE.md"]
17+
+license = {text = "BSD-3-Clause"}
18+
requires-python = '>=3.9'
19+
dependencies = [
20+
"importlib-metadata>=4.4;python_version<'3.10'"
21+
--
22+
2.45.4
23+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"python-Markdown-3.5.2.tar.gz": "e1ac7b3dc550ee80e602e71c1d168002f062e49f1b11e26a36264dafd4df2ef8"
3+
"python-Markdown-3.8.2.tar.gz": "247b9a70dd12e27f67431ce62523e675b866d254f900c4fe75ce3dda62237c45"
44
}
5-
}
5+
}

SPECS/python-markdown/python-markdown.spec

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
%global pkgname markdown
33
Summary: Markdown implementation in Python
44
Name: python-%{pkgname}
5-
Version: 3.5.2
6-
Release: 2%{?dist}
7-
License: BSD
5+
Version: 3.8.2
6+
Release: 1%{?dist}
7+
License: BSD-3-Clause
88
Vendor: Microsoft Corporation
99
Distribution: Azure Linux
1010
URL: https://python-markdown.github.io/
11-
Source0: https://files.pythonhosted.org/packages/source/M/%{srcname}/%{srcname}-%{version}.tar.gz#/python-%{srcname}-%{version}.tar.gz
11+
Source0: https://github.com/Python-Markdown/markdown/releases/download/%{version}/%{pkgname}-%{version}.tar.gz#/python-%{srcname}-%{version}.tar.gz
1212
BuildArch: noarch
13+
Patch0: 0001-fix-pyproject-license-for-setuptools.patch
1314

1415
%description
1516
This is a Python implementation of John Grubers Markdown. It is
@@ -35,7 +36,7 @@ almost completely compliant with the reference implementation, though
3536
there are a few known issues.
3637

3738
%prep
38-
%autosetup -p1 -n %{srcname}-%{version}
39+
%autosetup -p1 -n %{pkgname}-%{version}
3940

4041
%build
4142
%pyproject_wheel
@@ -61,6 +62,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \
6162
%{_bindir}/markdown_py
6263

6364
%changelog
65+
* Fri May 08 2026 Durga Jagadeesh Palli <v-dpalli@microsoft.com> - 3.8.2-1
66+
- Upgrade to 3.8.2 to fix the ptest error.
67+
6468
* Tue Apr 29 2025 Riken Maharjan <rmaharjan@microsoft.com> - 3.5.2-2
6569
- Use proper ptest command to run the test.
6670

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23693,8 +23693,8 @@
2369323693
"type": "other",
2369423694
"other": {
2369523695
"name": "python-markdown",
23696-
"version": "3.5.2",
23697-
"downloadUrl": "https://files.pythonhosted.org/packages/source/M/Markdown/Markdown-3.5.2.tar.gz"
23696+
"version": "3.8.2",
23697+
"downloadUrl": "https://github.com/Python-Markdown/markdown/releases/download/3.8.2/markdown-3.8.2.tar.gz"
2369823698
}
2369923699
}
2370023700
},

0 commit comments

Comments
 (0)