Use a GitHub tarball as a source to get requirements/tests.in

This commit is contained in:
Miro Hrončok 2023-01-27 20:00:08 +01:00
parent 6270ce56c0
commit 1ec96d5220
3 changed files with 5 additions and 8 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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

View File

@ -1 +1 @@
SHA512 (MarkupSafe-2.1.2.tar.gz) = 84dbeddaf2df713b3cce94eb64876fea8f80c608e25130c18e4691be2b1dea56df8b772d26c0caca88231ef795125eb9678210c33bf20518c18e3047912ddb4b
SHA512 (markupsafe-2.1.2.tar.gz) = 0e66a99ed99b356d7492e86e428d478ee677cbfbe41bdc8c5652341c1b394e34332d73ff9712d0ad933e87ecc5ab6d47fbcdaf0a3412c502fc979c6163a07917