Add citation

Reference:
https://github.com/python-attrs/attrs/commit/0e9a101

Signed-off-by: caofei <caofei@xfusion.com>
This commit is contained in:
caofei 2023-07-17 18:22:05 +08:00
parent 6632cad0a5
commit 772e76a303
2 changed files with 44 additions and 1 deletions

39
0001-Add-citation.patch Normal file
View File

@ -0,0 +1,39 @@
From 0e9a101fc0414a53d72684a053818da96cbe4e6f Mon Sep 17 00:00:00 2001
From: Hynek Schlawack <hs@ox.cx>
Date: Thu, 28 Jul 2022 15:54:39 +0200
Subject: [PATCH] Add citation
---
CITATION.cff | 9 +++++++++
MANIFEST.in | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
create mode 100644 CITATION.cff
diff --git a/CITATION.cff b/CITATION.cff
new file mode 100644
index 0000000..83718ad
--- /dev/null
+++ b/CITATION.cff
@@ -0,0 +1,9 @@
+cff-version: 1.2.0
+message: If you use this software, please cite it as below.
+title: attrs
+type: software
+authors:
+ - given-names: Hynek
+ family-names: Schlawack
+ email: hs@ox.cx
+doi: 10.5281/zenodo.6925130
diff --git a/MANIFEST.in b/MANIFEST.in
index 3d68bf9..6dbe985 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,4 +1,4 @@
-include LICENSE *.rst *.toml *.yml *.yaml *.ini
+include LICENSE *.rst *.toml *.yml *.yaml *.ini CITATION.cff
graft .github
# Stubs
--
2.33.0

View File

@ -9,7 +9,7 @@ object protocols. \
Name: python-attrs
Summary: Python attributes without boilerplate
Version: 22.1.0
Release: 5
Release: 6
License: MIT
URL: http://www.attrs.org/
Source0: https://github.com/hynek/attrs/archive/%{version}/attrs-%{version}.tar.gz
@ -18,6 +18,7 @@ Patch0: 0001-Update-.gitignore.patch
Patch1: 0001-Fix-typo.patch
Patch2: 0001-Fix-type-docstring.patch
Patch3: 0001-Fix-minor-stub-issues-1072.patch
Patch6000: 0001-Add-citation.patch
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-devel
@ -62,6 +63,9 @@ PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v
%doc AUTHORS.rst README.rst
%changelog
* Tue Jul 18 2023 caofei <caofei@xfusion.com> - 22.1.0-6
- Add citation
* Fri Jan 13 2023 caofei <caofei@xfusion.com> - 22.1.0-5
- Fix minor stub issues