Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
e8e347d2a2
!12 Update to 0.6.2 for fix test_parse.py fail
From: @wk333 
Reviewed-by: @zhu-yuncheng, @cherry530 
Signed-off-by: @cherry530
2023-07-12 00:59:56 +00:00
wk333
650656aa07 Update to 0.6.2 for fix test_parse.py fail 2023-07-11 10:44:42 +08:00
openeuler-ci-bot
f8cf479971
!9 Upgrade package to version 0.6.0
From: @lyn1001 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-04-12 08:04:07 +00:00
lyn1001
c53f846c28 Upgrade package to version 0.6.0 2023-04-12 14:59:05 +08:00
openeuler-ci-bot
694293acfa
!6 Package upgrade
From: @xigaoxinyan 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-07-01 05:31:27 +00:00
xigaoxinyan
2a7b432afa Package upgrade 2022-06-28 16:44:25 +08:00
openeuler-ci-bot
4e6669f6cb
!5 [sync] PR-4: fix build failed for python-setuptools-59.4
From: @openeuler-sync-bot 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
2022-03-31 02:30:19 +00:00
wk333
51973c2a32 fix build failed for python-setuptools-59.4
(cherry picked from commit b83a0b90feeb69fc90dca62630b3b39edbfefe7c)
2022-03-31 09:24:38 +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
3 changed files with 38 additions and 16 deletions

Binary file not shown.

View File

@ -1,10 +1,10 @@
Name: python-parse_type
Version: 0.4.2
Release: 3
Version: 0.6.2
Release: 1
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
License: MIT
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}
@ -22,6 +22,7 @@ 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
BuildRequires: python3-pip python3-wheel
%description -n python3-parse_type
Parse_type extends the "parse" module (opposite of string.format()") with the following
@ -32,29 +33,50 @@ that supports the CardinalityField naming schema and creates missing type varian
(0..1, 0..*, 1..*) from the primary type converte.
%prep
%setup -q -c
mv parse_type-%{version} python3
rm -rf *.egg-info
%autosetup -n parse_type-%{version}
%build
cd python3
%py3_build
# remove deps on pytest-html
sed -i -e '/^\s*"pytest-html >= /d' setup.py
sed -i -e '/^\s*"pytest-html >= /d' pyproject.toml
sed -i -e '/^pytest-html >= /d' py.requirements/testing.txt
%pyproject_build
%install
cd python3
%py3_install
%pyproject_install
%check
cd python3
%{__python3} setup.py test
sed -i \
-e '/^addopts = --metadata PACKAGE_UNDER_TEST parse_type/d' \
-e '/^ --metadata PACKAGE_VERSION [0-9].[0-9].[0-9]/d' \
-e '\% --html=build/testing/report.html --self-contained-html%d' \
-e '\% --junit-xml=build/testing/report.xml%d' \
pytest.ini
pytest
%files -n python3-parse_type
%doc python3/README.rst python3/LICENSE
%{python3_sitelib}/{parse_type-%{version}-*.egg-info/,parse_type/}
%license LICENSE
%doc README.rst
%{python3_sitelib}/{parse_type-%{version}.dist-info/,parse_type/}
%changelog
* Mon Jul 10 2023 wangkai <13474090681@163.com> - 0.6.2-1
- Update to 0.6.2 for fix test_parse.py fail
- Switch compilation method setup.py to pyproject
* Wed Apr 12 2023 liyanan <thistleslyn@163.com> - 0.6.0-1
- Update to 0.6.0
* 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

BIN
v0.6.2.tar.gz Normal file

Binary file not shown.