1 Star 0 Fork 15

src-oepkgs-oE-rv/python-parse_type

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-parse_type.spec 2.15 KB
一键复制 编辑 原始数据 按行查看 历史
jackie_wu 提交于 2020-09-11 21:22 +08:00 . some fix
Name: python-parse_type
Version: 0.4.2
Release: 3
Summary: Make parse types building more easier by parse module
License: BSD
URL: http://pypi.python.org/pypi/parse_type
Source0: https://files.pythonhosted.org/packages/source/p/parse_type/parse_type-0.4.2.tar.gz
BuildArch: noarch
%{?python_enable_dependency_generator}
%description
Parse_type extends the "parse" module (opposite of string.format()") with the following
features:build type converters for common use cases (enum/mapping, choice) build a type
converter with a cardinality constraint (0..1,0..*, 1..*) from the type converter with
cardinality=1.compose a type converter from other type converters an extended parser
that supports the CardinalityField naming schema and creates missing type variants
(0..1, 0..*, 1..*) from the primary type converte.
%package -n python3-parse_type
Summary: Make parse types building more easier by parse module
%{?python_provide:%python_provide python3-parse_type}
BuildRequires: python3-devel python3-setuptools python3-six python3-parse
BuildRequires: python3-pytest python3-pytest-runner python3-sphinx >= 1.1
%description -n python3-parse_type
Parse_type extends the "parse" module (opposite of string.format()") with the following
features:build type converters for common use cases (enum/mapping, choice) build a type
converter with a cardinality constraint (0..1,0..*, 1..*) from the type converter with
cardinality=1.compose a type converter from other type converters an extended parser
that supports the CardinalityField naming schema and creates missing type variants
(0..1, 0..*, 1..*) from the primary type converte.
%prep
%setup -q -c
mv parse_type-%{version} python3
rm -rf python3/*.egg-info
%build
cd python3
%py3_build
%install
cd python3
%py3_install
%check
cd python3
%{__python3} setup.py test
%files -n python3-parse_type
%doc python3/README.rst python3/LICENSE
%{python3_sitelib}/{parse_type-%{version}-*.egg-info/,parse_type/}
%changelog
* Fri Sep 11 2020 wangxiao <wangxiao65@huawei.com> - 0.4.2-3
- remove python2 support
* Fri Dec 13 2019 yanzhihua <yanzhihua4@huawei.com> - 0.4.2-2
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-oepkgs-oe-rv/python-parse_type.git
git@gitee.com:src-oepkgs-oe-rv/python-parse_type.git
src-oepkgs-oe-rv
python-parse_type
python-parse_type
master

搜索帮助