1
0

Accepting request 517105 from home:TheBlackCat:branches:devel:languages:python

- Implement single-spec version
- update to 0.7.11

OBS-URL: https://build.opensuse.org/request/show/517105
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=14
This commit is contained in:
Todd R
2017-08-16 02:22:53 +00:00
committed by Git OBS Bridge
parent 0eff397e7e
commit 4cf09389fc
4 changed files with 45 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyMySQL
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,28 +16,28 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PyMySQL
Version: 0.7.6
Version: 0.7.11
Release: 0
Summary: Pure Python MySQL Driver
License: MIT
Group: Development/Languages/Python
Url: http://code.google.com/p/pymysql
Source: https://pypi.io/packages/source/P/PyMySQL/PyMySQL-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
Url: https://github.com/PyMySQL/PyMySQL/
Source: https://files.pythonhosted.org/packages/source/P/PyMySQL/PyMySQL-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%endif
%python_subpackages
%description
This package contains a pure-Python MySQL client library. Documentation on the
MySQL client/server protocol can be found here:
http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol If you would
like to run the test suite, edit the config parameters in pymysql/tests/base.py.
http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol
The goal of pymysql is to be a drop-in replacement for MySQLdb and work on
CPython 2.3+, Jython, IronPython, PyPy and Python 3. We test for compatibility
by simply changing the import statements in the Django MySQL backend and running
@@ -49,15 +49,16 @@ its unit tests as well as running it against the MySQLdb and myconnpy unit tests
sed -i '1 { /^#!/ d }' pymysql/tests/thirdparty/test_MySQLdb/*.py
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
#%%check
#NOTE(saschpe): Needs mysql server
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG LICENSE README.rst
%{python_sitelib}/*