Compare commits

..

No commits in common. "c10s" and "c8" have entirely different histories.
c10s ... c8

9 changed files with 186 additions and 499 deletions

View File

@ -1 +0,0 @@
1

121
.gitignore vendored
View File

@ -1,120 +1 @@
SQLAlchemy-0.6.1.tar.gz SOURCES/SQLAlchemy-1.2.7.tar.gz
/SQLAlchemy-0.6.3.tar.gz
/SQLAlchemy-0.6.4.tar.gz
/SQLAlchemy-0.6.5.tar.gz
/SQLAlchemy-0.6.6.tar.gz
/SQLAlchemy-0.7.1.tar.gz
/SQLAlchemy-0.7.2.tar.gz
/SQLAlchemy-0.7.3.tar.gz
/SQLAlchemy-0.7.5.tar.gz
/SQLAlchemy-0.7.6.tar.gz
/SQLAlchemy-0.7.7.tar.gz
/SQLAlchemy-0.7.8.tar.gz
/SQLAlchemy-0.7.9dev.tar.gz
/SQLAlchemy-0.8.0b1.tar.gz
/SQLAlchemy-0.8.0.tar.gz
/SQLAlchemy-0.8.1.tar.gz
/SQLAlchemy-0.8.2.tar.gz
/SQLAlchemy-0.8.3.tar.gz
/SQLAlchemy-0.8.4.tar.gz
/SQLAlchemy-0.9.1.tar.gz
/SQLAlchemy-0.9.2.tar.gz
/SQLAlchemy-0.9.3.tar.gz
/SQLAlchemy-0.9.4.tar.gz
/SQLAlchemy-0.9.6.tar.gz
/SQLAlchemy-0.9.7.tar.gz
/SQLAlchemy-0.9.8.tar.gz
/SQLAlchemy-0.9.9.tar.gz
/SQLAlchemy-1.0.0.tar.gz
/SQLAlchemy-1.0.1.tar.gz
/SQLAlchemy-1.0.2.tar.gz
/SQLAlchemy-1.0.3.tar.gz
/SQLAlchemy-1.0.4.tar.gz
/SQLAlchemy-1.0.5.tar.gz
/SQLAlchemy-1.0.6.tar.gz
/SQLAlchemy-1.0.7.tar.gz
/SQLAlchemy-1.0.8.tar.gz
/SQLAlchemy-1.0.9.tar.gz
/SQLAlchemy-1.0.10.tar.gz
/SQLAlchemy-1.0.11.tar.gz
/SQLAlchemy-1.0.12.tar.gz
/SQLAlchemy-1.0.13.tar.gz
/SQLAlchemy-1.0.14.tar.gz
/SQLAlchemy-1.1.0.tar.gz
/SQLAlchemy-1.1.1.tar.gz
/SQLAlchemy-1.1.2.tar.gz
/SQLAlchemy-1.1.3.tar.gz
/SQLAlchemy-1.1.4.tar.gz
/SQLAlchemy-1.1.5.tar.gz
/SQLAlchemy-1.1.6.tar.gz
/SQLAlchemy-1.1.9.tar.gz
/SQLAlchemy-1.1.10.tar.gz
/SQLAlchemy-1.1.11.tar.gz
/SQLAlchemy-1.1.12.tar.gz
/SQLAlchemy-1.1.13.tar.gz
/SQLAlchemy-1.2.0.tar.gz
/SQLAlchemy-1.2.2.tar.gz
/SQLAlchemy-1.2.3.tar.gz
/SQLAlchemy-1.2.4.tar.gz
/SQLAlchemy-1.2.5.tar.gz
/SQLAlchemy-1.2.6.tar.gz
/SQLAlchemy-1.2.7.tar.gz
/SQLAlchemy-1.2.8.tar.gz
/SQLAlchemy-1.2.10.tar.gz
/SQLAlchemy-1.2.11.tar.gz
/SQLAlchemy-1.2.12.tar.gz
/SQLAlchemy-1.2.16.tar.gz
/SQLAlchemy-1.2.17.tar.gz
/SQLAlchemy-1.2.18.tar.gz
/SQLAlchemy-1.3.0b3.tar.gz
/SQLAlchemy-1.3.0.tar.gz
/SQLAlchemy-1.3.1.tar.gz
/SQLAlchemy-1.3.2.tar.gz
/SQLAlchemy-1.3.3.tar.gz
/SQLAlchemy-1.3.4.tar.gz
/SQLAlchemy-1.3.5.tar.gz
/SQLAlchemy-1.3.6.tar.gz
/SQLAlchemy-1.3.7.tar.gz
/SQLAlchemy-1.3.8.tar.gz
/SQLAlchemy-1.3.10.tar.gz
/SQLAlchemy-1.3.11.tar.gz
/SQLAlchemy-1.3.12.tar.gz
/SQLAlchemy-1.3.13.tar.gz
/SQLAlchemy-1.3.15.tar.gz
/SQLAlchemy-1.3.17.tar.gz
/SQLAlchemy-1.3.18.tar.gz
/SQLAlchemy-1.3.19.tar.gz
/SQLAlchemy-1.3.20.tar.gz
/SQLAlchemy-1.3.22.tar.gz
/SQLAlchemy-1.4.14.tar.gz
/SQLAlchemy-1.4.15.tar.gz
/SQLAlchemy-1.4.18.tar.gz
/SQLAlchemy-1.4.22.tar.gz
/SQLAlchemy-1.4.23.tar.gz
/SQLAlchemy-1.4.25.tar.gz
/SQLAlchemy-1.4.26.tar.gz
/SQLAlchemy-1.4.27.tar.gz
/SQLAlchemy-1.4.28.tar.gz
/SQLAlchemy-1.4.29.tar.gz
/SQLAlchemy-1.4.31.tar.gz
/SQLAlchemy-1.4.32.tar.gz
/SQLAlchemy-1.4.34.tar.gz
/SQLAlchemy-1.4.35.tar.gz
/SQLAlchemy-1.4.36.tar.gz
/SQLAlchemy-1.4.37.tar.gz
/SQLAlchemy-1.4.38.tar.gz
/SQLAlchemy-1.4.39.tar.gz
/SQLAlchemy-1.4.40.tar.gz
/SQLAlchemy-1.4.41.tar.gz
/SQLAlchemy-1.4.42.tar.gz
/SQLAlchemy-1.4.43.tar.gz
/SQLAlchemy-1.4.44.tar.gz
/SQLAlchemy-1.4.45.tar.gz
/SQLAlchemy-1.4.46.tar.gz
/SQLAlchemy-1.4.48.tar.gz
/sqlalchemy-cd56e873e1db4e6c8bee9e035627beba80251bea.tar.gz
/SQLAlchemy-1.4.49.tar.gz
/SQLAlchemy-1.4.50.tar.gz
/SQLAlchemy-1.4.51.tar.gz
/SQLAlchemy-2.0.25.tar.gz
/SQLAlchemy-2.0.26.tar.gz

View File

@ -0,0 +1 @@
343aa9ade5fc6b01933f5d2d8fc97c75005ac9fa SOURCES/SQLAlchemy-1.2.7.tar.gz

View File

@ -0,0 +1,28 @@
From 3fd3ac6d554019f54efe1935f3a25cb5939fdad3 Mon Sep 17 00:00:00 2001
From: Nils Philippsen <nils@tiptoe.de>
Date: Mon, 18 Jun 2018 00:08:38 +0200
Subject: [PATCH] fix TypeReflectionTest for sqlite 3.24
SQLite 3.24 added support for PostgreSQL-style UPSERT. This added two
new keywords 'DO' and 'NOTHING' which made
test_round_trip_direct_type_affinity() fail with a syntax error.
---
test/dialect/test_sqlite.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/dialect/test_sqlite.py b/test/dialect/test_sqlite.py
index 4c462aed1..d2d563208 100644
--- a/test/dialect/test_sqlite.py
+++ b/test/dialect/test_sqlite.py
@@ -1637,7 +1637,7 @@ class TypeReflectionTest(fixtures.TestBase):
("BLOBBER", sqltypes.NullType()),
("DOUBLE PRECISION", sqltypes.REAL()),
("FLOATY", sqltypes.REAL()),
- ("NOTHING WE KNOW", sqltypes.NUMERIC()),
+ ("SOMETHING UNKNOWN", sqltypes.NUMERIC()),
]
def _fixture_as_string(self, fixture):
--
2.17.1

View File

@ -1,215 +1,159 @@
* Tue Aug 09 2022 Nils Philippsen <nils@tiptoe.de> - 1.4.40-1 %if 0%{?fedora} || 0%{?rhel} > 7
- Version 1.4.40 %global with_python3 1
%endif
* Mon Jul 25 2022 Miro Hrončok <miro@hroncok.cz>
- Remove obsolete cruft from the specfile, follow the packaging guidelines %if 0%{?rhel} > 7
# Disable python2 build by default
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.39-2 %bcond_with python2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild %else
%bcond_without python2
* Fri Jun 24 2022 Nils Philippsen <nils@tiptoe.de> - 1.4.39-1 %endif
- version 1.4.39
%global srcname SQLAlchemy
* Fri Jun 24 2022 Nils Philippsen <nils@tiptoe.de> - 1.4.38-1
- version 1.4.38 Name: python-sqlalchemy
Version: 1.2.7
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 1.4.37-2 Release: 3%{?dist}
- Rebuilt for Python 3.11 Summary: Modular and flexible ORM library for python
* Wed Jun 08 2022 Nils Philippsen <nils@tiptoe.de> Group: Development/Libraries
- Generally BR: python3-pytest-xdist, also on EL9 License: MIT
URL: http://www.sqlalchemy.org/
* Wed Jun 01 2022 Nils Philippsen <nils@tiptoe.de> - 1.4.37-1 Source0: https://files.pythonhosted.org/packages/source/S/%{srcname}/%{srcname}-%{version}.tar.gz
- version 1.4.37
# Fix tests for sqlite 3.24
* Wed Apr 27 2022 Nils Philippsen <nils@tiptoe.de> - 1.4.36-1 # https://github.com/zzzeek/sqlalchemy/pull/452
- version 1.4.36 Patch1: python-sqlalchemy-1.2.8-sqlite-3.24.patch
* Thu Apr 07 2022 Nils Philippsen <nils@tiptoe.de> - 1.4.35-1 BuildRequires: gcc
- version 1.4.35
%if %{with python2}
* Fri Apr 01 2022 Nils Philippsen <nils@tiptoe.de> - 1.4.34-1 BuildRequires: python2-devel >= 2.6
- version 1.4.34 BuildRequires: python2-setuptools
BuildRequires: python2-mock
* Tue Mar 08 2022 Nils Philippsen <nils@tiptoe.de> - 1.4.32-1 BuildRequires: python2-pytest
- version 1.4.32 %endif # with python2
- don't BR: python3-pytest-xdist on EL9
- remove obsolete (no-op) tweak of setup.cfg %if 0%{?with_python3}
BuildRequires: python3-devel
* Fri Jan 21 2022 Nils Philippsen <nils@tiptoe.de> - 1.4.31-1 BuildRequires: python3-setuptools
- version 1.4.31 BuildRequires: python3-pytest
%endif
* Thu Dec 23 2021 Nils Philippsen <nils@tiptoe.de> - 1.4.29-1
- version 1.4.29 %description
SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible,
* Wed Dec 15 2021 Nils Philippsen <nils@tiptoe.de> - 1.4.28-1 high-level interface to SQL databases. Database and domain concepts are
- version 1.4.28 decoupled, allowing both sides maximum flexibility and power. SQLAlchemy
- remove build dependency on python3-mock provides a powerful mapping layer that can work as automatically or as manually
as you choose, determining relationships based on foreign keys or letting you
* Fri Nov 12 2021 Nils Philippsen <nils@tiptoe.de> - 1.4.27-1 define the join conditions explicitly, to bridge the gap between database and
- version 1.4.27 domain.
* Tue Oct 26 2021 Joel Capitao <jcapitao@redhat.com> - 1.4.26-1 %package doc
- Update to 1.4.26. Fixes rhbz#2015705 Summary: Documentation for SQLAlchemy
BuildArch: noarch
* Sun Sep 26 2021 Kevin Fenzi <kevin@scrye.com> - 1.4.25-1
- Update to 1.4.25. Fixes rhbz#1995262 %description doc
Documentation for SQLAlchemy
* Wed Aug 25 2021 Nils Philippsen <nils@tiptoe.de> - 1.4.23-1
- version 1.4.23 %if %{with python2}
%package -n python2-sqlalchemy
* Sun Aug 08 2021 Kevin Fenzi <kevin@scrye.com> - 1.4.22-1 Summary: Modular and flexible ORM library for python
- Update to 1.4.22. Fixes rhbz#1975029 Group: Development/Libraries
%{?python_provide:%python_provide python2-sqlalchemy}
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild %description -n python2-sqlalchemy
SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible,
* Sun Jun 13 2021 Nils Philippsen <nils@tiptoe.de> - 1.4.18-1 high-level interface to SQL databases. Database and domain concepts are
- version 1.4.18 decoupled, allowing both sides maximum flexibility and power. SQLAlchemy
provides a powerful mapping layer that can work as automatically or as manually
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.4.15-2 as you choose, determining relationships based on foreign keys or letting you
- Rebuilt for Python 3.10 define the join conditions explicitly, to bridge the gap between database and
domain.
* Fri May 14 2021 Nils Philippsen <nils@tiptoe.de> - 1.4.15-1
- version 1.4.15 This package includes the python 2 version of the module.
%endif # with python2
* Mon May 10 2021 Nils Philippsen <nils@tiptoe.de> - 1.4.14-1
- version 1.4.14 %if 0%{?with_python3}
- drop Python 2.x support %package -n python3-sqlalchemy
- define extras subpackages Summary: Modular and flexible ORM library for python
Group: Development/Libraries
* Fri Apr 30 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.3.22-3 %{?python_provide:%python_provide python%{python3_pkgversion}-sqlalchemy}
- Disabled failing test test_pyodbc_extra_connect_azure
%description -n python3-sqlalchemy
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.22-2 SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible,
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild high-level interface to SQL databases. Database and domain concepts are
decoupled, allowing both sides maximum flexibility and power. SQLAlchemy
* Mon Dec 21 2020 Nils Philippsen <nils@tiptoe.de> - 1.3.22-1 provides a powerful mapping layer that can work as automatically or as manually
- version 1.3.22 as you choose, determining relationships based on foreign keys or letting you
define the join conditions explicitly, to bridge the gap between database and
* Sun Nov 01 2020 Nils Philippsen <nils@tiptoe.de> - 1.3.20-1 domain.
- version 1.3.20
This package includes the python 3 version of the module.
* Tue Aug 18 2020 Nils Philippsen <nils@tiptoe.de> - 1.3.19-1 %endif # with_python3
- version 1.3.19
# Filter unnecessary dependencies
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.18-2 %global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
%prep
* Fri Jul 10 2020 Nils Philippsen <nils@tiptoe.de> - 1.3.18-1 %setup -q -n %{srcname}-%{version}
- version 1.3.18
%patch1 -p1 -b .sqlite-3.24
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.17-3
- Rebuilt for Python 3.9 %build
%if %{with python2}
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.17-2 %py2_build
- Bootstrap for Python 3.9 %endif # with python2
* Sat May 16 2020 Nils Philippsen <nils@tiptoe.de> - 1.3.17-1 %if 0%{?with_python3}
- version 1.3.17 %py3_build
%endif
* Thu Mar 26 2020 Nils Philippsen <nils@tiptoe.de> - 1.3.15-1
- version 1.3.15 %install
- quieten %%setup %if %{with python2}
%py2_install
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.13-2 %endif # with python2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
%if 0%{?with_python3}
* Sun Jan 26 2020 Nils Philippsen <nils@tiptoe.de> - 1.3.13-1 %py3_install
- version 1.3.13 %endif
* Wed Dec 18 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.12-1 # remove unnecessary scripts for building documentation
- version 1.3.12 rm -rf doc/build
* Tue Nov 19 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.3.11-1 %check
- Update to 1.3.11 (#1771196). %if %{with python2}
- https://docs.sqlalchemy.org/en/13/changelog/changelog_13.html#change-1.3.11 PYTHONPATH=. %{__python2} -m pytest test
%endif # with python2
* Wed Nov 13 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.10-2
- drop python2-sqlalchemy from F32 on %if 0%{?with_python3}
PYTHONPATH=. %{__python3} -m pytest test
* Fri Oct 18 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.10-1 %endif
- fix/skip tests that are broken on SQLite 3.30
* Wed Oct 16 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.10-1 %files doc
- version 1.3.10 %doc doc examples
* Tue Sep 17 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.3.8-1 %if %{with python2}
- Update to 1.3.8 (#1747080). %files -n python2-sqlalchemy
- https://docs.sqlalchemy.org/en/13/changelog/changelog_13.html#change-1.3.8 %license LICENSE
%doc README.rst
* Sun Aug 25 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.7-1 %{python2_sitearch}/*
- version 1.3.7 %endif # with python2
- require python3-mock for building
%if 0%{?with_python3}
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.6-2 %files -n python3-sqlalchemy
- Rebuilt for Python 3.8 %license LICENSE
%doc README.rst
* Sat Jul 27 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.6-1 %{python3_sitearch}/*
- version 1.3.6 %endif # with_python3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-3 %changelog
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Aug 01 2018 Petr Viktorin <pviktori@redhat.com> - 1.2.7-3
- Fix tests with SQLite 3.24+
* Mon Jul 22 2019 Petr Viktorin <pviktori@redhat.com> - 1.3.5-2
- Remove dependency on python2-xdist * Thu Jun 14 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.2.7-2
- Enable multi-process testing using python3-xdist - Conditionalize the python2 subpackage
* Tue Jun 18 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.3.5-1
- Update to 1.3.5 (#1721271).
- https://docs.sqlalchemy.org/en/13/changelog/changelog_13.html#change-1.3.5
* Mon Jun 03 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.4-1
- version 1.3.4
* Thu Apr 18 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.3-1
- version 1.3.3
* Wed Apr 10 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.2-1
- version 1.3.2
* Wed Mar 13 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.1-1
- version 1.3.1
* Tue Mar 05 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.0-1
- version 1.3.0
* Fri Mar 01 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.0~b3-1
- version 1.3.0b3
* Wed Feb 20 2019 Nils Philippsen <nils@tiptoe.de> - 1.2.18-1
- version 1.2.18
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Jan 30 2019 Nils Philippsen <nils@tiptoe.de> - 1.2.17-1
- version 1.2.17
* Sat Jan 12 2019 Nils Philippsen <nils@tiptoe.de> - 1.2.16-1
- version 1.2.16
* Tue Oct 30 2018 Nils Philippsen <nils@tiptoe.de> - 1.2.12-1
- version 1.2.12
* Tue Aug 21 2018 Nils Philippsen <nils@tiptoe.de> - 1.2.11-1
- version 1.2.11
* Sun Jul 22 2018 Nils Philippsen <nils@tiptoe.de> - 1.2.10-1
- version 1.2.10
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Jun 17 2018 Nils Philippsen <nils@tiptoe.de> - 1.2.8-3
- rename patch, apply with backups
- fix failing test for sqlite 3.24 instead of skipping it
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.8-2
- Rebuilt for Python 3.7
* Tue Jun 05 2018 Nils Philippsen <nils@tiptoe.de> - 1.2.8-1
- version 1.2.8
* Sun Apr 22 2018 Nils Philippsen <nils@tiptoe.de> - 1.2.7-1 * Sun Apr 22 2018 Nils Philippsen <nils@tiptoe.de> - 1.2.7-1
- version 1.2.7 - version 1.2.7

16
ci.fmf
View File

@ -1,16 +0,0 @@
/keylime-e2e:
plan:
import:
url: https://github.com/RedHat-SP-Security/keylime-plans.git
name: /generic/minimal-e2e
/internal-sanity:
enabled: false
adjust:
- when: distro == rhel
enabled: true
plan:
import:
url: https://gitlab.cee.redhat.com/special-projects/tests/python-sqlalchemy.git
name: /Plans/sanity

View File

@ -1,6 +0,0 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,143 +0,0 @@
# Mypy plugin is deprecated in 2.0. mypy is not in RHEL.
%bcond mypy %{undefined rhel}
# The asyncmy Python package isnt available in x86 (32bit)
%ifnarch %ix86
%bcond asyncmy %{undefined rhel}
%else
%bcond asyncmy 0
%endif
# Tests crash when being run by pytest-xdist
%bcond xdist 0
%global srcname SQLAlchemy
%global canonicalname %{py_dist_name %{srcname}}
%if %{undefined rhel}
%global python_pkg_extras \
asyncio \
mssql_pymssql \
mssql_pyodbc \
mysql \
mysql_connector \
%{?with_mypy:mypy} \
postgresql \
postgresql_pg8000 \
postgresql_asyncpg \
pymysql \
aiomysql \
aioodbc \
aiosqlite \
%{?with_asyncmy:asyncmy}
%endif
Name: python-%{canonicalname}
Version: 2.0.26
# cope with pre-release versions containing tildes
%global srcversion %{lua: srcversion, num = rpm.expand("%{version}"):gsub("~", ""); print(srcversion);}
Release: %autorelease
Summary: Modular and flexible ORM library for Python
License: MIT
URL: https://www.sqlalchemy.org/
Source0: %{pypi_source %{srcname} %{srcversion}}
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: python3-devel >= 3.7
# The dependencies needed for testing dont get auto-generated.
BuildRequires: python3dist(pytest)
%if %{with xdist}
BuildRequires: python3dist(pytest-xdist)
%endif
%description
SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible,
high-level interface to SQL databases. Database and domain concepts are
decoupled, allowing both sides maximum flexibility and power. SQLAlchemy
provides a powerful mapping layer that can work as automatically or as manually
as you choose, determining relationships based on foreign keys or letting you
define the join conditions explicitly, to bridge the gap between database and
domain.
%package -n python3-sqlalchemy
Summary: %{summary}
%if %{without asyncmy}
Obsoletes: python3-sqlalchemy+asyncmy < %{version}-%{release}
%endif
%description -n python3-sqlalchemy
SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible,
high-level interface to SQL databases. Database and domain concepts are
decoupled, allowing both sides maximum flexibility and power. SQLAlchemy
provides a powerful mapping layer that can work as automatically or as manually
as you choose, determining relationships based on foreign keys or letting you
define the join conditions explicitly, to bridge the gap between database and
domain.
%if %{undefined rhel}
# Subpackages to ensure dependencies enabling extra functionality
%pyproject_extras_subpkg -n python3-sqlalchemy %python_pkg_extras
%endif
%package doc
Summary: Documentation for SQLAlchemy
BuildArch: noarch
%description doc
Documentation for SQLAlchemy.
%generate_buildrequires
%pyproject_buildrequires %{!?rhel:-x %{gsub %{quote:%python_pkg_extras} %%s+ ,}}
%prep
%autosetup -n %{srcname}-%{version} -p1
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{canonicalname}
# Work around poetry not listing license files as such in package metadata.
sed -i -e 's|^\(.*/LICENSE\)|%%license \1|g' %{pyproject_files}
install -d %{buildroot}%{_pkgdocdir}
cp -a doc examples %{buildroot}%{_pkgdocdir}/
# remove unnecessary scripts for building documentation
rm -rf %{buildroot}%{_pkgdocdir}/doc/build
find %{buildroot}%{_pkgdocdir} | while read long; do
short="${long#%{buildroot}}"
if [ -d "$long" ]; then
echo "%%doc %%dir $short"
else
if [ "$short" != "${short/copyright/}" ]; then
echo "%%license $short"
else
echo "%%doc $short"
fi
fi
done > doc-files.txt
%check
%pytest test \
%if %{without mypy}
-k 'not Mypy' \
%endif
%if %{with xdist}
--numprocesses=auto
%endif
%files doc -f doc-files.txt
%files -n python3-sqlalchemy -f %{pyproject_files}
%doc README.rst
%changelog
%autochangelog

View File

@ -1 +0,0 @@
SHA512 (SQLAlchemy-2.0.26.tar.gz) = 62532253ba6dee0c8e5c89487459ce783eb3d00cdcaf645efa5b68a03b62cc92ab7b447c791ac05bd552910edd223a390ab930a16b6234afb5dbe6d9c05b997a