Fix long description

Signed-off-by: fandehui <fandehui@xfusion.com>
This commit is contained in:
fandehui 2023-12-27 11:44:10 +08:00
parent 51a8a77847
commit 4493ed00d6
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From 108c792ec8e8b6446e835b33a39f416b2cd1734d Mon Sep 17 00:00:00 2001
From: Hynek Schlawack <hs@ox.cx>
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

View File

@ -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 <fandehui@xfusion.com> - 20.3.0-2
- Fix long description
* Mon Aug 16 2021 liyanan <liyanan32@huawei.com> - 20.3.0-1
- update to 20.3.0