Move description to %global _description as suggested in the Python package guideline
This commit is contained in:
parent
794f1eea4e
commit
f43402c43e
@ -11,7 +11,7 @@ Source0: %{pypi_source}
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%global _description %{expand:
|
||||||
Typing Extensions - Backported and Experimental Type Hints for Python
|
Typing Extensions - Backported and Experimental Type Hints for Python
|
||||||
|
|
||||||
The typing module was added to the standard library in Python 3.5 on a
|
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
|
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
|
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
|
%package -n python3-typing-extensions
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
@ -38,22 +40,8 @@ BuildRequires: python3-pytest
|
|||||||
BuildRequires: python3-pytest-xdist
|
BuildRequires: python3-pytest-xdist
|
||||||
BuildRequires: python3-pytest-cov
|
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
|
%description -n python3-typing-extensions %_description
|
||||||
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.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{srcname}-%{version} -p2
|
%autosetup -n %{srcname}-%{version} -p2
|
||||||
|
Loading…
Reference in New Issue
Block a user