Ai
3 Star 0 Fork 7

src-openEuler/python-fastjsonschema

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-fastjsonschema.spec 2.51 KB
一键复制 编辑 原始数据 按行查看 历史
zhangyulongkylinos 提交于 2025-09-28 17:50 +08:00 . Upgrade package to version 2.21.2
%global _empty_manifest_terminate_build 0
%global pypi_name fastjsonschema
%global common_description %{expand:
fastjsonschema implements validation of JSON documents by JSON schema.
The library implements JSON schema drafts 04, 06 and 07.
The main purpose is to have a really fast implementation.
}
Name: python-%{pypi_name}
Version: 2.21.2
Release: 1
Summary: Fastest Python implementation of JSON schema.
License: BSD
URL: https://github.com/horejsek/python-fastjsonschema
Source0: https://github.com/horejsek/python-fastjsonschema/archive/refs/tags/%{name}-%{version}.tar.gz
BuildArch: noarch
%description
%{common_description}
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# test dependencies
BuildRequires: python3-mock
BuildRequires: python3-pytest
BuildRequires: python3-pytest-benchmark
%description -n python3-%{pypi_name}
%{common_description}
%prep
%autosetup -p1 -n %{name}-%{version}
# Remove upstreams egg info
rm -rf *.egg*
%build
%py3_build
%install
%py3_install
%check
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \
PATH="%{buildroot}%{_bindir}:$PATH" \
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \
PYTHONDONTWRITEBYTECODE=1 \
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \
PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \
%{_bindir}/pytest
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%changelog
* Sun Sep 28 2025 zhangyulong <zhangyulong@kylinos.cn> - 2.21.2-1
- Update package version to 2.21.2
-Correct the escaping of periods in the ipv6 format regex
-Fix date pattern regexp
* Mon Dec 23 2024 sqfu <dev01203@linx-info.com> - 2.21.1-1
- update to 2.21.1
- Fix date pattern regexp
- Add re import when using regex pattern
- Add detailed_exception parameter
* Mon Feb 26 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 2.19.1-1
- Update package to version 2.19.1
Fix date format
* Tue Dec 05 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 2.19.0-1
- Update package to version 2.19.0
* Mon Jul 10 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.17.1-1
- Initial packaging
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-fastjsonschema.git
git@gitee.com:src-openeuler/python-fastjsonschema.git
src-openeuler
python-fastjsonschema
python-fastjsonschema
master

搜索帮助