define extras subpackages

Signed-off-by: Nils Philippsen <nils@tiptoe.de>
This commit is contained in:
Nils Philippsen 2021-05-10 14:47:19 +02:00
parent e90a627871
commit 0ca6ff1ab3
1 changed files with 16 additions and 0 deletions

View File

@ -3,6 +3,18 @@
%global srcname SQLAlchemy
%global python_pkg_extras \
asyncio \
mssql_pymssql \
mssql_pyodbc \
mysql \
postgresql \
postgresql_pg8000 \
postgresql_asyncpg \
pymysql \
aiomysql \
aiosqlite
Name: python-sqlalchemy
Version: 1.4.14
# cope with pre-release versions containing tildes
@ -58,6 +70,9 @@ domain.
This package includes the python 3 version of the module.
# Subpackages to ensure dependencies enabling extra functionality
%{?python_extras_subpkg:%python_extras_subpkg -n python3-sqlalchemy -i %{python3_sitelib}/*.egg-info %python_pkg_extras}
%prep
%setup -q -n %{srcname}-%{srcversion}
@ -94,6 +109,7 @@ PYTHONPATH=. %{__python3} -m pytest test \
* Mon May 10 2021 Nils Philippsen <nils@tiptoe.de> - 1.4.14-1
- version 1.4.14
- drop Python 2.x support
- define extras subpackages
* Fri Apr 30 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.3.22-3
- Disabled failing test test_pyodbc_extra_connect_azure