!2 delete python2
From: @jackie_wu123 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
47997e60d4
@ -1,6 +1,6 @@
|
||||
Name: python-parse_type
|
||||
Version: 0.4.2
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Make parse types building more easier by parse module
|
||||
License: BSD
|
||||
URL: http://pypi.python.org/pypi/parse_type
|
||||
@ -17,20 +17,6 @@ cardinality=1.compose a type converter from other type converters an extended pa
|
||||
that supports the CardinalityField naming schema and creates missing type variants
|
||||
(0..1, 0..*, 1..*) from the primary type converte.
|
||||
|
||||
%package -n python2-parse_type
|
||||
Summary: Make parse types building more easier by parse module
|
||||
%{?python_provide:%python_provide python2-parse_type}
|
||||
BuildRequires: python2-devel python2-setuptools python2-six python2-parse >= 1.6
|
||||
BuildRequires: python2-pytest python2-pytest-runner python2-enum34 python2-sphinx >= 1.1
|
||||
|
||||
%description -n python2-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.
|
||||
|
||||
%package -n python3-parse_type
|
||||
Summary: Make parse types building more easier by parse module
|
||||
%{?python_provide:%python_provide python3-parse_type}
|
||||
@ -47,44 +33,29 @@ that supports the CardinalityField naming schema and creates missing type varian
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
mv parse_type-%{version} python2
|
||||
cd python2
|
||||
rm -rf *.egg-info
|
||||
cd -
|
||||
cp -ai python2 python3
|
||||
mv parse_type-%{version} python3
|
||||
rm -rf python3/*.egg-info
|
||||
|
||||
%build
|
||||
cd python2
|
||||
%py2_build
|
||||
|
||||
cd ../python3
|
||||
cd python3
|
||||
%py3_build
|
||||
|
||||
|
||||
%install
|
||||
cd python2
|
||||
%py2_install
|
||||
|
||||
cd ../python3
|
||||
cd python3
|
||||
%py3_install
|
||||
|
||||
|
||||
%check
|
||||
cd python2
|
||||
%{__python2} setup.py test
|
||||
|
||||
cd ../python3
|
||||
cd python3
|
||||
%{__python3} setup.py test
|
||||
|
||||
|
||||
%files -n python2-parse_type
|
||||
%doc python2/README.rst python2/LICENSE
|
||||
%{python2_sitelib}/{parse_type-%{version}-*.egg-info/,parse_type/}
|
||||
|
||||
%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…
x
Reference in New Issue
Block a user