4 Star 0 Fork 2

OpenCloudOS Stream/python-constantly

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-constantly.spec 2.90 KB
一键复制 编辑 原始数据 按行查看 历史
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/python-constantly.git
[email protected]:opencloudos-stream/python-constantly.git
opencloudos-stream
python-constantly
python-constantly
master

搜索帮助