加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-jmespath.spec 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
jiangxinyu 提交于 2022-09-20 15:57 . Upgrade to 1.0.1
Name: python-jmespath
Version: 1.0.1
Release: 1
Summary: Matching Expressions for JSON
License: MIT
URL: https://github.com/jmespath/jmespath.py
Source0: https://pypi.python.org/packages/source/j/jmespath/jmespath-%{version}.tar.gz
BuildArch: noarch
%description
JMESPath is a python library which allows you to declaratively specify how to
extract elements from a JSON document.
%package -n python3-jmespath
Summary: JSON Matching Expressions
%{?python_provide:%python_provide python3-jmespath}
BuildRequires: python3-devel python3-mock python3-setuptools python3-pytest
%description -n python3-jmespath
JMESPath is a python library which allows you to declaratively specify how to
extract elements from a JSON document.
%prep
%setup -q -n jmespath-%{version}
rm -rf jmespath.egg-info
%build
%py3_build
%install
%py3_install
mv %{buildroot}/%{_bindir}/jp.py %{buildroot}/%{_bindir}/jp.py-%{python3_version}
ln -sf %{_bindir}/jp.py-%{python3_version} %{buildroot}/%{_bindir}/jp.py-3
%check
python3 -m unittest discover -v
%files -n python3-jmespath
%doc README.rst LICENSE.txt
%{_bindir}/jp.py-3
%{_bindir}/jp.py-%{python3_version}
%{python3_sitelib}/jmespath*
%changelog
* Tue Sep 20 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 1.0.1-1
- Upgrade to 1.0.1
* Fri Apr 29 2022 houyingchao <houyingchao@h-partners.com> - 0.10.0-2
- Remove dependency on python-nose
* Wed Jul 14 2021 huangtianhua <huangtianhua@huawei.com> - 0.10.0-1
- Upgrade to 0.10.0 to support OpenStack-W
* Thu Nov 19 2020 caodongxia <caodongxia@huawei.com> - 0.9.0-14
- Remove python2 subPackage
* Sat Nov 16 2019 yanzhihua <yanzhihua4@huawei.com> - 0.9.0-13
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化