代码拉取完成,页面将自动刷新
%global srcname constantly
%bcond_without tests
%bcond_with docs
Summary: Symbolic constants in Python
Name: python-%{srcname}
Version: 15.1.0
Release: 9%{?dist}
License: MIT
URL: https://github.com/twisted/constantly
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
Patch0001: 0001-Update-versioneer.py-to-0.21.patch
BuildRequires: python3-devel
%if %{with docs}
BuildRequires: python3dist(sphinx-rtd-theme)
%endif
%if %{with tests}
BuildRequires: python3dist(twisted) python3-pytest
%endif
BuildArch: noarch
%description
A library that provides symbolic constant support. It includes collections and
constants with text, numeric, and bit flag values. Originally
twisted.python.constants from the Twisted project.
%package -n python3-%{srcname}
Summary: Symbolic constants in Python
%description -n python3-%{srcname}
A library that provides symbolic constant support. It includes collections and
constants with text, numeric, and bit flag values. Originally
twisted.python.constants from the Twisted project.
%if %{with docs}
%package doc
Summary: Documentation for %{name}
%description doc
A library that provides symbolic constant support. It includes collections and
constants with text, numeric, and bit flag values. Originally
twisted.python.constants from the Twisted project.
This is the documentation package for %{name}.
%endif
%prep
%autosetup -p1 -n %{srcname}-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%if %{with docs}
PYTHONPATH=%{pyproject_build_lib} sphinx-build docs html
rm -rf html/.{doctrees,buildinfo}
%endif
%install
%pyproject_install
%pyproject_save_files %{srcname}
%check
%if %{with tests}
%pytest
%endif
%files -n python3-%{srcname} -f %{pyproject_files}
%if %{with docs}
%files -n python-%{srcname}-doc
%license LICENSE
%doc html
%endif
%changelog
* Thu Sep 26 2024 OpenCloudOS Release Engineering <[email protected]> - 15.1.0-9
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Wed Sep 18 2024 Shuo Wang <[email protected]> - 15.1.0-8
- switch test from tox to pytest
* Fri Aug 16 2024 OpenCloudOS Release Engineering <[email protected]> - 15.1.0-7
- Rebuilt for loongarch release
* Fri May 31 2024 Shuo Wang <[email protected]> - 15.1.0-6
- enable %check
* Tue Sep 19 2023 OpenCloudOS Release Engineering <[email protected]> - 15.1.0-5
- Rebuilt for python 3.11
* Fri Sep 08 2023 OpenCloudOS Release Engineering <[email protected]> - 15.1.0-4
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <[email protected]> - 15.1.0-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <[email protected]> - 15.1.0-2
- Rebuilt for OpenCloudOS Stream 23
* Tue Dec 20 2022 Miaojun Dong <[email protected]> - 15.1.0-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。