!12 Update to 0.6.2 for fix test_parse.py fail

From: @wk333 
Reviewed-by: @zhu-yuncheng, @cherry530 
Signed-off-by: @cherry530
This commit is contained in:
openeuler-ci-bot 2023-07-12 00:59:56 +00:00 committed by Gitee
commit e8e347d2a2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 16 additions and 14 deletions

View File

@ -1,8 +1,8 @@
Name: python-parse_type
Version: 0.6.0
Version: 0.6.2
Release: 1
Summary: Make parse types building more easier by parse module
License: BSD
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
@ -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,25 +33,21 @@ 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 python3/*.egg-info
%autosetup -n parse_type-%{version}
%build
cd python3
# remove deps on pytest-html
sed -i -e '/^\s*pytest-html >= /d' tox.ini
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
%py3_build
%pyproject_build
%install
cd python3
%py3_install
%pyproject_install
%check
cd python3
sed -i \
-e '/^addopts = --metadata PACKAGE_UNDER_TEST parse_type/d' \
-e '/^ --metadata PACKAGE_VERSION [0-9].[0-9].[0-9]/d' \
@ -58,14 +55,19 @@ sed -i \
-e '\% --junit-xml=build/testing/report.xml%d' \
pytest.ini
%{__python3} setup.py test
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

Binary file not shown.

BIN
v0.6.2.tar.gz Normal file

Binary file not shown.