From 1889536b06b8121600a220807be928aa7ab3c66c Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Wed, 16 Jul 2025 15:00:17 +0800 Subject: [PATCH] Fix build failure due to setuptools updated --- python-appdirs.spec | 9 ++++++--- python-appdirs.yaml | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 python-appdirs.yaml diff --git a/python-appdirs.spec b/python-appdirs.spec index 93bc034..097e5f5 100644 --- a/python-appdirs.spec +++ b/python-appdirs.spec @@ -3,12 +3,12 @@ name: python-%{srcname} Version: 1.4.4 -Release: 4 +Release: 5 Summary: A Python module for determining platform-specific directories License: MIT URL: https://github.com/ActiveState/appdirs -Source0: %{pypi_source} +Source0: %{pypi_source appdirs} BuildArch: noarch @@ -40,7 +40,7 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs %check %if %{with_tests} -%{__python3} setup.py test +%{__python3} -m unittest discover %endif %files -n python3-appdirs @@ -49,6 +49,9 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs %{python3_sitelib}/__pycache__/appdirs.* %changelog +* Wed Jul 16 2025 yaoxin <1024769339@qq.com> - 1.4.4-5 +- Fix build failure due to setuptools updated + * Tue Dec 13 2022 zhuofeng - 1.4.4-4 - Type:bugfix - CVE:NA diff --git a/python-appdirs.yaml b/python-appdirs.yaml new file mode 100644 index 0000000..8d93082 --- /dev/null +++ b/python-appdirs.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: ActiveState/appdirs +tag_prefix: ^ +separator: . -- Gitee