Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
530395befa
!8 [sync] PR-6: Package upgrade
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-10-17 06:19:21 +00:00
xigaoxinyan
8259fcdf22 Package upgrade
(cherry picked from commit 2a7b432afa2b37ec64b9da223e985f34f5118866)
2022-10-17 11:14:00 +08:00
openeuler-ci-bot
a9e1220b3d
!4 fix build failed for python-setuptools-59.4
Merge pull request !4 from wk333/openEuler-22.03-LTS-Next
2022-01-08 07:10:16 +00:00
wk333
b83a0b90fe fix build failed for python-setuptools-59.4 2022-01-07 05:53:17 +08:00
openeuler-ci-bot
47997e60d4 !2 delete python2
From: @jackie_wu123
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-09-11 21:38:03 +08:00
jackie_wu
dcda678ff1 some fix 2020-09-11 21:22:39 +08:00
jackie_wu
1fcb0d6a24 some fix 2020-09-11 21:07:04 +08:00
jackie_wu
30622a16bf delete python2 2020-09-11 20:56:44 +08:00
openeuler-ci-bot
6f227a76eb !1 Package init
Merge pull request !1 from seki099/shijian
2019-12-16 15:29:30 +08:00
seki099
ea4896a3cb package init 2019-12-16 15:03:47 +08:00
2 changed files with 68 additions and 0 deletions

68
python-parse_type.spec Normal file
View File

@ -0,0 +1,68 @@
Name: python-parse_type
Version: 0.5.2
Release: 1
Summary: Make parse types building more easier by parse module
License: BSD
URL: https://github.com/jenisys/parse_type
Source0: https://github.com/jenisys/parse_type/archive/refs/tags/v%{version}.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
sed -i -e '/use_2to3/s/\S.*/pass/' setup.py
%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
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.5.2-1
- Upgrade to version 0.5.2
* Thu Jan 06 2022 wangkai <wangkai385@huawei.com> - 0.4.2-4
- fix build failed for python-setuptools-59.4
* 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

BIN
v0.5.2.tar.gz Normal file

Binary file not shown.