Use a GitHub tarball as a source to get requirements/tests.in
This commit is contained in:
parent
6270ce56c0
commit
1ec96d5220
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ MarkupSafe-0.9.2.tar.gz
|
|||||||
/MarkupSafe-2.0.0.tar.gz
|
/MarkupSafe-2.0.0.tar.gz
|
||||||
/MarkupSafe-2.1.1.tar.gz
|
/MarkupSafe-2.1.1.tar.gz
|
||||||
/MarkupSafe-2.1.2.tar.gz
|
/MarkupSafe-2.1.2.tar.gz
|
||||||
|
/markupsafe-2.1.2.tar.gz
|
||||||
|
|||||||
@ -4,15 +4,11 @@ Release: 1%{?dist}
|
|||||||
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://palletsprojects.com/p/markupsafe/
|
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: gcc
|
||||||
BuildRequires: python3-devel
|
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
|
%description
|
||||||
A library for safe markup escaping.
|
A library for safe markup escaping.
|
||||||
|
|
||||||
@ -25,13 +21,13 @@ A library for safe markup escaping. Python 3 version.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n MarkupSafe-%{version}
|
%autosetup -n markupsafe-%{version}
|
||||||
# Exclude C source from the package:
|
# Exclude C source from the package:
|
||||||
echo 'global-exclude *.c' >> MANIFEST.in
|
echo 'global-exclude *.c' >> MANIFEST.in
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires
|
%pyproject_buildrequires requirements/tests.in
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|||||||
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (MarkupSafe-2.1.2.tar.gz) = 84dbeddaf2df713b3cce94eb64876fea8f80c608e25130c18e4691be2b1dea56df8b772d26c0caca88231ef795125eb9678210c33bf20518c18e3047912ddb4b
|
SHA512 (markupsafe-2.1.2.tar.gz) = 0e66a99ed99b356d7492e86e428d478ee677cbfbe41bdc8c5652341c1b394e34332d73ff9712d0ad933e87ecc5ab6d47fbcdaf0a3412c502fc979c6163a07917
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user