15
0

- Add missing deps

- Reenable testsuite by skipping the tests needing pgsql

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy-Utils?expand=0&rev=59
This commit is contained in:
Tomáš Chvátal
2020-06-09 12:15:18 +00:00
committed by Git OBS Bridge
parent ab81fedc57
commit 45630863b2
2 changed files with 33 additions and 4 deletions

View File

@@ -26,19 +26,26 @@ License: BSD-3-Clause
URL: https://github.com/kvesteri/sqlalchemy-utils
Source: https://files.pythonhosted.org/packages/source/S/SQLAlchemy-Utils/SQLAlchemy-Utils-%{version}.tar.gz
BuildRequires: %{python_module Babel >= 1.3}
BuildRequires: %{python_module Jinja2 >= 2.3}
BuildRequires: %{python_module Pygments >= 1.2}
BuildRequires: %{python_module SQLAlchemy >= 1.0}
BuildRequires: %{python_module anyjson >= 0.3.3}
BuildRequires: %{python_module arrow >= 0.3.4}
BuildRequires: %{python_module colour >= 0.0.4}
BuildRequires: %{python_module cryptography >= 0.6}
BuildRequires: %{python_module docutils >= 0.10}
BuildRequires: %{python_module flexmock >= 0.9.7}
BuildRequires: %{python_module furl >= 0.4.1}
BuildRequires: %{python_module intervals >= 0.7.1}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module mock >= 2.0.0}
BuildRequires: %{python_module passlib >= 1.6}
BuildRequires: %{python_module pendulum >= 2.0.5}
BuildRequires: %{python_module phonenumbers >= 5.9.2}
BuildRequires: %{python_module psycopg2 >= 2.5.1}
BuildRequires: %{python_module psycopg2cffi >= 2.8.1}
BuildRequires: %{python_module pyodbc}
BuildRequires: %{python_module pytest >= 2.7.1}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module python-dateutil >= 2.6}
BuildRequires: %{python_module pytz >= 2014.2}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
@@ -55,6 +62,7 @@ Recommends: python-dateutil
Recommends: python-furl >= 0.4.1
Recommends: python-intervals >= 0.7.1
Recommends: python-passlib >= 1.6
Recommends: python-pendulum >= 2.0.5
Recommends: python-phonenumbers >= 5.9.2
BuildArch: noarch
%python_subpackages
@@ -73,8 +81,23 @@ Various utility functions and custom data types for SQLAlchemy.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# requires initialized pgsql database
#%%pytest
# needs running pgsql / mssql / mysql
rm tests/test_asserts.py
rm tests/test_translation_hybrid.py
rm tests/aggregate/test_o2m_o2m_o2m.py
rm tests/aggregate/test_search_vectors.py
rm tests/aggregate/test_with_ondelete_cascade.py
rm tests/observes/test_column_property.py
rm tests/observes/test_m2m_m2m_m2m.py
rm tests/observes/test_o2m_o2o_o2m.py
rm tests/observes/test_o2m_o2m_o2m.py
rm tests/observes/test_o2o_o2o.py
rm tests/observes/test_o2o_o2o_o2o.py
rm tests/relationships/test_select_correlated_expression.py
rm tests/types/test_composite.py
rm tests/types/test_ltree.py
rm tests/types/test_tsvector.py
%pytest -k 'not (TestDatabasePostgres or TestDatabaseMssql or OnPostgres or OnMysql or TestPostgres or TestMysql or TestSortQueryRelationshipCounts or TestSortQueryWithPolymorphicInheritance or TestMaterializedViews or TestLazyEvaluatedSelectExpressionsForAggregates or TestAggregatesWithManyToManyRelationships or TestAggregateManyToManyAndManyToMany or TestAggregateOneToManyAndOneToMany or TestJSONSQL or TestJSONBSQL or TestSortQueryWithCustomPolymorphic or TestAggregateOneToManyAndManyToMany or test_timezone)'
%files %{python_files}
%license LICENSE