From fb3fc72f8c7d9ad5cbcf87cce17fece054cf43b6 Mon Sep 17 00:00:00 2001 From: fandehui Date: Wed, 27 Dec 2023 11:44:10 +0800 Subject: [PATCH] Fix long description Signed-off-by: fandehui --- Fix-long-description.patch | 28 ++++++++++++++++++++++++++++ python-attrs.spec | 6 +++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 Fix-long-description.patch diff --git a/Fix-long-description.patch b/Fix-long-description.patch new file mode 100644 index 0000000..1e6af87 --- /dev/null +++ b/Fix-long-description.patch @@ -0,0 +1,28 @@ +From 108c792ec8e8b6446e835b33a39f416b2cd1734d Mon Sep 17 00:00:00 2001 +From: Hynek Schlawack +Date: Fri, 20 Nov 2020 10:13:38 +0100 +Subject: [PATCH] Fix long description + +--- + setup.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 64af96e..51f4178 100644 +--- a/setup.py ++++ b/setup.py +@@ -87,7 +87,10 @@ def find_meta(meta): + VERSION = find_meta("version") + URL = find_meta("url") + LONG = ( +- read("README.rst") ++ "======================================\n" ++ "``attrs``: Classes Without Boilerplate\n" ++ "======================================\n" ++ + read("README.rst").split(".. teaser-begin")[1] + + "\n\n" + + "Release Information\n" + + "===================\n\n" +-- +2.27.0 + diff --git a/python-attrs.spec b/python-attrs.spec index b93d7a9..84cd6e7 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -10,10 +10,11 @@ object protocols. \ Name: python-attrs Summary: Python attributes without boilerplate Version: 20.3.0 -Release: 1 +Release: 2 License: MIT URL: http://www.attrs.org/ Source0: https://github.com/hynek/attrs/archive/%{version}/attrs-%{version}.tar.gz +Patch0: Fix-long-description.patch BuildRequires: python2-devel python%{python3_pkgversion}-setuptools BuildRequires: python2-setuptools python%{python3_pkgversion}-devel @@ -72,6 +73,9 @@ PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v %doc AUTHORS.rst README.rst %changelog +* Wed Dec 27 2023 fandehui - 20.3.0-2 +- Fix long description + * Mon Aug 16 2021 liyanan - 20.3.0-1 - update to 20.3.0 -- Gitee