From 54a0e1dce26597a5f8552f9ee646aa8abefd9af5 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jul 03 2023 07:16:51 +0000 Subject: Update to a git snapshot (future 1.4.49) for Python 3.12 support --- diff --git a/.gitignore b/.gitignore index 791064b..56a6346 100644 --- a/.gitignore +++ b/.gitignore @@ -112,3 +112,4 @@ SQLAlchemy-0.6.1.tar.gz /SQLAlchemy-1.4.45.tar.gz /SQLAlchemy-1.4.46.tar.gz /SQLAlchemy-1.4.48.tar.gz +/sqlalchemy-cd56e873e1db4e6c8bee9e035627beba80251bea.tar.gz diff --git a/python-sqlalchemy.spec b/python-sqlalchemy.spec index 33f199d..e536602 100644 --- a/python-sqlalchemy.spec +++ b/python-sqlalchemy.spec @@ -16,15 +16,17 @@ aiosqlite Name: python-sqlalchemy -Version: 1.4.48 -# cope with pre-release versions containing tildes -%global srcversion %{lua: srcversion, num = rpm.expand("%{version}"):gsub("~", ""); print(srcversion);} +# from the rel_1_4 branch, for Python 3.12 support: +%global commit cd56e873e1db4e6c8bee9e035627beba80251bea +%global scommit %(c=%{commit}; echo ${c:0:7}) +%global cdate 20230703 +Version: 1.4.49~~%{cdate}%{scommit} Release: %autorelease Summary: Modular and flexible ORM library for Python License: MIT URL: https://www.sqlalchemy.org/ -Source0: %{pypi_source %{srcname} %{srcversion}} +Source0: https://github.com/sqlalchemy/sqlalchemy/archive/%{commit}/sqlalchemy-%{commit}.tar.gz BuildRequires: gcc BuildRequires: python3-devel >= 3.6 @@ -68,7 +70,7 @@ Documentation for SQLAlchemy. %prep -%autosetup -n %{srcname}-%{srcversion} -p1 +%autosetup -n sqlalchemy-%{commit} -p1 %build %py3_build diff --git a/sources b/sources index f64b973..90a84a3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (SQLAlchemy-1.4.48.tar.gz) = f948e79c92889f2462b117ca49ccb8e82d5f8da0027c65488a3f6c64a802dc0bca96cc84c4e77bb3b8d434dfd66b621ef4d69c5d417ad781d1dc7136bcf6dea1 +SHA512 (sqlalchemy-cd56e873e1db4e6c8bee9e035627beba80251bea.tar.gz) = 475af71bf56d2dd1c4bea4957f9f9ea5d9b93643e583d5fb4dc092b5cf386c616c5117276e18f600a9704b35e05fe32f6147deb5fbfe778ef8cad2316f86b9c5