remove python2

This commit is contained in:
jpzhang 2020-08-11 10:58:40 +08:00
parent 7364a22688
commit e0b70bc625

View File

@ -2,7 +2,7 @@
Name: python-sqlalchemy Name: python-sqlalchemy
Version: 1.2.11 Version: 1.2.11
Release: 3 Release: 4
Summary: SQL toolkit and object relational mapper for Python Summary: SQL toolkit and object relational mapper for Python
License: MIT License: MIT
URL: http://www.sqlalchemy.org/ URL: http://www.sqlalchemy.org/
@ -10,7 +10,6 @@ Source0: https://files.pythonhosted.org/packages/source/S/SQLAlchemy/SQLA
Patch0001: Skip-test-on-sqlite-3.30+.patch Patch0001: Skip-test-on-sqlite-3.30+.patch
BuildRequires: python2-devel >= 2.6 python2-setuptools python2-mock python2-pytest
BuildRequires: python3-devel python3-setuptools python3-pytest BuildRequires: python3-devel python3-setuptools python3-pytest
%description %description
@ -29,19 +28,6 @@ Obsoletes: %{name}-doc < %{version}-%{release}
%description help %description help
Help documents for SQLAlchemy. Help documents for SQLAlchemy.
%package -n python2-sqlalchemy
Summary: SQL toolkit and object relational mapper for Python
%{?python_provide:%python_provide python2-sqlalchemy}
%description -n python2-sqlalchemy
SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible,
high-level interface to SQL databases. It contains a powerful mapping layer
that users can choose to work as automatically or as manually, determining
relationships based on foreign keys or to bridge the gap between database
and domain by letting you define the join conditions explicitly.
The python2-sqlalchemy package contains the python 2 version of the module.
%package -n python3-sqlalchemy %package -n python3-sqlalchemy
Summary: SQL toolkit and object relational mapper for Python Summary: SQL toolkit and object relational mapper for Python
%{?python_provide:%python_provide python%{python3_pkgversion}-sqlalchemy} %{?python_provide:%python_provide python%{python3_pkgversion}-sqlalchemy}
@ -59,27 +45,16 @@ The python3-sqlalchemy package contains the python 3 version of the module.
%autosetup -n SQLAlchemy-%{version} -p1 %autosetup -n SQLAlchemy-%{version} -p1
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
rm -rf doc/build rm -rf doc/build
%check %check
PYTHONPATH=. %{__python2} -m pytest test
PYTHONPATH=. %{__python3} -m pytest test PYTHONPATH=. %{__python3} -m pytest test
%files -n python2-sqlalchemy
%license LICENSE
%doc README.rst
%{python2_sitearch}/*
%files -n python3-sqlalchemy %files -n python3-sqlalchemy
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
@ -89,6 +64,9 @@ PYTHONPATH=. %{__python3} -m pytest test
%doc doc examples %doc doc examples
%changelog %changelog
* Mon Aug 10 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.2.11-4
- Remove python2
* Wed Jul 29 2020 lingsheng <lingsheng@huawei.com> - 1.2.11-3 * Wed Jul 29 2020 lingsheng <lingsheng@huawei.com> - 1.2.11-3
- Skip test on sqlite 3.30+ - Skip test on sqlite 3.30+