From 1ec96d5220bfbb9beae552fb6750af96db181277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 27 Jan 2023 20:00:08 +0100 Subject: [PATCH] Use a GitHub tarball as a source to get requirements/tests.in --- .gitignore | 1 + python-markupsafe.spec | 10 +++------- sources | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 0433592..b04c51b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ MarkupSafe-0.9.2.tar.gz /MarkupSafe-2.0.0.tar.gz /MarkupSafe-2.1.1.tar.gz /MarkupSafe-2.1.2.tar.gz +/markupsafe-2.1.2.tar.gz diff --git a/python-markupsafe.spec b/python-markupsafe.spec index f3d05d5..e2942ed 100644 --- a/python-markupsafe.spec +++ b/python-markupsafe.spec @@ -4,15 +4,11 @@ Release: 1%{?dist} Summary: Implements a XML/HTML/XHTML Markup safe string for Python License: BSD URL: https://palletsprojects.com/p/markupsafe/ -Source: %pypi_source MarkupSafe +Source: https://github.com/pallets/markupsafe/archive/%{version}/markupsafe-%{version}.tar.gz BuildRequires: gcc BuildRequires: python3-devel -# This dependency is listed in requirements/tests.in but that file is not in the sdist -# requirements/tests.txt pins exact versions of dependencies, so we rather list it manually: -BuildRequires: python3-pytest - %description A library for safe markup escaping. @@ -25,13 +21,13 @@ A library for safe markup escaping. Python 3 version. %prep -%autosetup -n MarkupSafe-%{version} +%autosetup -n markupsafe-%{version} # Exclude C source from the package: echo 'global-exclude *.c' >> MANIFEST.in %generate_buildrequires -%pyproject_buildrequires +%pyproject_buildrequires requirements/tests.in %build diff --git a/sources b/sources index 9016eb6..e6bee44 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (MarkupSafe-2.1.2.tar.gz) = 84dbeddaf2df713b3cce94eb64876fea8f80c608e25130c18e4691be2b1dea56df8b772d26c0caca88231ef795125eb9678210c33bf20518c18e3047912ddb4b +SHA512 (markupsafe-2.1.2.tar.gz) = 0e66a99ed99b356d7492e86e428d478ee677cbfbe41bdc8c5652341c1b394e34332d73ff9712d0ad933e87ecc5ab6d47fbcdaf0a3412c502fc979c6163a07917