From 10cda34ea6696e6e65311c77dc566293a80274a5 Mon Sep 17 00:00:00 2001 From: jinzhimin369 Date: Fri, 30 Oct 2020 14:22:19 +0800 Subject: [PATCH] remove python2 dependency --- python-PyMySQL.spec | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/python-PyMySQL.spec b/python-PyMySQL.spec index 3b4f1ac..007a5e8 100644 --- a/python-PyMySQL.spec +++ b/python-PyMySQL.spec @@ -1,12 +1,11 @@ Name: python-PyMySQL Version: 0.9.3 -Release: 1 +Release: 2 Summary: Pure Python MySQL Client License: MIT URL: https://pypi.python.org/pypi/PyMySQL/ Source0: https://files.pythonhosted.org/packages/source/P/PyMySQL/PyMySQL-%{version}.tar.gz -BuildRequires: python2-cryptography python2-devel python2-setuptools BuildRequires: python3-cryptography python3-devel python3-setuptools BuildArch: noarch @@ -20,15 +19,6 @@ store_result, and use_result. You should use high level APIs defined in PEP 249. But some APIs like autocommit and ping are supported because PEP 249 doesn't cover their usecase. -%package -n python2-PyMySQL -Summary: Pure Python2 MySQL Client -Requires: python2-cryptography -%{?python_provide:%python_provide python2-PyMySQL} - -%description -n python2-PyMySQL -This package contains a pure-Python MySQL client library, based on PEP 249. -Most public APIs are compatible with mysqlclient and MySQLdb. - %package -n python3-PyMySQL Summary: Pure Python3 MySQL client Requires: python3-cryptography @@ -43,19 +33,11 @@ Most public APIs are compatible with mysqlclient and MySQLdb. %autosetup -n PyMySQL-%{version} -p1 %build -%py2_build %py3_build %install -%py2_install %py3_install - -%files -n python2-PyMySQL -%doc README.rst -%license LICENSE -%{python2_sitelib}/* - %files -n python3-PyMySQL %doc README.rst %license LICENSE @@ -63,6 +45,9 @@ Most public APIs are compatible with mysqlclient and MySQLdb. %changelog +* Fri Oct 30 2020 yanglongkang - 0.9.3-2 +- remove python2 dependency + * Jul Thu 16 2020 yanglongkang - 0.9.3-1 - update package to 0.9.3