forked from pool/python-SQLAlchemy
- Add patch to fix test failure from upstream test.patch
- Update to versrion 1.3.0: * See https://docs.sqlalchemy.org/en/latest/changelog/migration_13.html for deprecation list with this version * For the changes see https://docs.sqlalchemy.org/en/latest/changelog/changelog_13.html OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy?expand=0&rev=133
This commit is contained in:
committed by
Git OBS Bridge
parent
c51ca28261
commit
8a0675efce
@@ -18,34 +18,31 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
%bcond_without tests
|
||||
Name: python-SQLAlchemy
|
||||
Version: 1.2.18
|
||||
Version: 1.3.0
|
||||
Release: 0
|
||||
Summary: Database Abstraction Library
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: http://www.sqlalchemy.org
|
||||
Source: https://files.pythonhosted.org/packages/source/S/SQLAlchemy/SQLAlchemy-%{version}.tar.gz
|
||||
Patch0: test.patch
|
||||
# devel is needed for optional C extensions cprocessors.so, cresultproxy.so and cutils.so
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Provides: python-sqlalchemy = %{version}
|
||||
Obsoletes: python-sqlalchemy < %{version}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
#BuildRequires: python-pysqlite
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-sqlalchemy < %{version}
|
||||
Provides: %{oldpython}-sqlalchemy = %{version}
|
||||
%endif
|
||||
%ifpython3
|
||||
Provides: python3-sqlalchemy = %{version}
|
||||
Obsoletes: python3-sqlalchemy < %{version}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -60,9 +57,7 @@ domain.
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for python-SQLAlchemy
|
||||
Group: Documentation/Other
|
||||
Provides: python-SQLAlchemy-doc = %{version}
|
||||
Provides: python2-SQLAlchemy-doc = %{version}
|
||||
Provides: python3-SQLAlchemy-doc = %{version}
|
||||
Provides: %{python_module SQLAlchemy-doc = %{version}}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}-doc
|
||||
@@ -73,6 +68,7 @@ reference for python-SQLAlchemy.
|
||||
%setup -q -n SQLAlchemy-%{version}
|
||||
rm -rf doc/build # Remove unnecessary scripts for building documentation
|
||||
sed -i 's/\r$//' examples/dynamic_dict/dynamic_dict.py
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
@@ -82,10 +78,8 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%python_expand py.test-%{$python_bin_suffix}
|
||||
%endif
|
||||
%python_expand py.test-%{$python_bin_suffix} -v
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user