From 26ad6ded2f4904d1bbb3ddb63f7630270f1e75b8 Mon Sep 17 00:00:00 2001 From: caofei Date: Mon, 17 Jul 2023 18:24:50 +0800 Subject: [PATCH] Add citation Reference: https://github.com/python-attrs/attrs/commit/0e9a101 Signed-off-by: caofei --- 0001-Add-citation.patch | 39 +++++++++++++++++++++++++++++++++++++++ python-attrs.spec | 6 +++++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 0001-Add-citation.patch diff --git a/0001-Add-citation.patch b/0001-Add-citation.patch new file mode 100644 index 0000000..03cf845 --- /dev/null +++ b/0001-Add-citation.patch @@ -0,0 +1,39 @@ +From 0e9a101fc0414a53d72684a053818da96cbe4e6f Mon Sep 17 00:00:00 2001 +From: Hynek Schlawack +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 + diff --git a/python-attrs.spec b/python-attrs.spec index 26e4d95..7915dbe 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -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 - 22.1.0-6 +- Add citation + * Fri Jan 13 2023 caofei - 22.1.0-5 - Fix minor stub issues -- Gitee