Move description to %global _description as suggested in the Python package guideline

This commit is contained in:
Jonny Heggheim 2021-12-02 19:58:16 +01:00
parent 794f1eea4e
commit f43402c43e

View File

@ -11,7 +11,7 @@ Source0: %{pypi_source}
BuildArch: noarch
%description
%global _description %{expand:
Typing Extensions - Backported and Experimental Type Hints for Python
The typing module was added to the standard library in Python 3.5 on a
@ -26,7 +26,9 @@ Protocol.
Users of other Python versions should continue to install and use the typing
module from PyPi instead of using this one unless specifically writing code that
must be compatible with multiple Python versions or requires experimental types.
must be compatible with multiple Python versions or requires experimental types.}
%description %_description
%package -n python3-typing-extensions
Summary: %{summary}
@ -38,22 +40,8 @@ BuildRequires: python3-pytest
BuildRequires: python3-pytest-xdist
BuildRequires: python3-pytest-cov
%description -n python3-typing-extensions
Typing Extensions - Backported and Experimental Type Hints for Python
The typing module was added to the standard library in Python 3.5 on a
provisional basis and will no longer be provisional in Python 3.7.
However, this means users of Python 3.5 - 3.6 who are unable to upgrade will not
be able to take advantage of new types added to the typing module, such as
typing.Text or typing.Coroutine.
The typing_extensions module contains both backports of these changes as well as
experimental types that will eventually be added to the typing module, such as
Protocol.
Users of other Python versions should continue to install and use the typing
module from PyPi instead of using this one unless specifically writing code that
must be compatible with multiple Python versions or requires experimental types.
%description -n python3-typing-extensions %_description
%prep
%autosetup -n %{srcname}-%{version} -p2