From 499b126f6731d5e3398491321cf92855270c594e2dffbdcae7b5d508f8a9ba05 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 29 Oct 2025 01:30:02 +0000 Subject: [PATCH] - Remove skip for Python 3.12, it's supported. - Add skip for Python 3.14, it isn't. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pony?expand=0&rev=34 --- python-pony.changes | 146 ++++++++++++++++++++++++++++++++++++++++++++ python-pony.spec | 72 ++++++++++++++++++++++ .gitattributes | 23 +++++++ .gitignore | 1 + pony-0.7.19.tar.gz | 3 + 5 files changed, 245 insertions(+) create mode 100644 python-pony.changes create mode 100644 python-pony.spec create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pony-0.7.19.tar.gz diff --git a/python-pony.changes b/python-pony.changes new file mode 100644 index 0000000..d3dcefe --- /dev/null +++ b/python-pony.changes @@ -0,0 +1,146 @@ +------------------------------------------------------------------- +Wed Oct 29 01:29:47 UTC 2025 - Steve Kowalik + +- Remove skip for Python 3.12, it's supported. +- Add skip for Python 3.14, it isn't. + +------------------------------------------------------------------- +Wed Jun 11 05:49:24 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Wed Oct 30 12:45:17 UTC 2024 - Dirk Müller + +- skip for python313 + +------------------------------------------------------------------- +Sat Aug 31 11:39:46 UTC 2024 - Dirk Müller + +- update to 0.7.19: + * Python 3.12 support + * Fix JSON handling in SQLite >= 3.45 + +------------------------------------------------------------------- +Thu Apr 4 11:06:06 UTC 2024 - Daniel Garcia + +- Do not run test_json, it fails with sqlite 3.45 gh#ponyorm/pony#704 + +------------------------------------------------------------------- +Fri Feb 16 16:52:02 UTC 2024 - Ben Greiner + +- Disable python312 build: upstream is very adamant about not + being compatible + https://github.com/ponyorm/pony/blob/v0.7.17/setup.py#L112 + +------------------------------------------------------------------- +Mon Jan 22 23:41:18 UTC 2024 - Dirk Müller + +- update to 0.7.17: + * Add Python 3.11 support; drop support for Python < 3.8 + * Fix #636 nullable IntArray and StrArray + * Fix quoting table alias in MySQL DELETE queries + * Fix handling of default argument values in hybrid methods + and functions +- drop python-311.patch (upstream) + +------------------------------------------------------------------- +Fri Feb 24 11:46:59 UTC 2023 - Daniel Garcia + +- Add python-311.patch to support python 3.11, + gh#ponyorm/pony#671 + +------------------------------------------------------------------- +Thu Feb 17 21:08:46 UTC 2022 - Dirk Müller + +- update to 0.7.16: + * A long-awaited support of Python 3.10. + * A possibility to create shared-in memory SQLite databases that can be + accessed from multiple threads + * Fixes #628: DBAPIProvider.init() got multiple values for argument 'database' +- remove b6599465524c4b5c9624dfa30dd3c8a5624b515d.patch (upstream) + +------------------------------------------------------------------- +Wed Sep 15 07:53:53 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- +Sun Apr 18 13:11:59 UTC 2021 - Ben Greiner + +- Update to 0.7.14 + * Add Python 3.9 support + * Allow to use kwargs in select: Entity.select(**kwargs) and + obj.collection.select(**kwargs), a feature that was announced + but actually missed from 0.7.7 + * Add support for volatile collection attributes that don't throw + "Phantom object appeared/disappeared" exceptions + * Fix negative timedelta conversions + * Pony should reconnect to PostgreSQL when receiving 57P01 error + (AdminShutdown) + * Allow mixing compatible types (like int and float) in + coalesce() arguments + * Support of subqueries in coalesce() arguments + * Fix using aggregated subqueries in ORDER BY section + * Fix queries with expressions like (x, y) in ((a, b), (c, d)) + * #451: KeyError for seeds with unique attributes in + SessionCache.update_simple_index() + +------------------------------------------------------------------- +Mon Mar 9 09:02:16 UTC 2020 - Tomáš Chvátal + +- Update to 0.7.13: + * support for python 3.8 + * minor fixes + +------------------------------------------------------------------- +Wed Dec 11 08:22:40 UTC 2019 - Tomáš Chvátal + +- Require full python stack to ensure sqlite module + +------------------------------------------------------------------- +Wed Apr 24 11:04:20 UTC 2019 - pgajdos@suse.com + +- version update to 0.7.10 + * Python3.7 and PyPy decompiling fixes + * Fix reading NULL from Optional nullable array column + * Fix handling of empty arrays in queries + * #415: error message typo + * #432: PonyFlask - request object can trigger teardown_request + without real request + * Fix GROUP CONCAT separator for MySQL +- deleted sources + - LICENSE (not needed) + +------------------------------------------------------------------- +Fri Mar 1 13:33:46 UTC 2019 - Tomáš Chvátal + +- Update to 0.7.9: + * Fix handling of empty arrays and empty lists in queries + * Fix reading optional nullable array columns from database + * Array type support for PostgreSQL and SQLite + * isinstance() support in queries + * Support of queries based on collections: select(x for x in y.items) +- Drop merged patch 0001-Fix-tests-failing-with-python-3.6.patch + +------------------------------------------------------------------- +Thu Oct 25 09:31:35 UTC 2018 - Jan Engelhardt + +- Ensure neutrality of description. + +------------------------------------------------------------------- +Thu Oct 25 09:14:44 UTC 2018 - Antonio Larrosa + +- Add BuildRequires: python2 for SLE12/Leap 42.3 so tests are + passed successfully + +------------------------------------------------------------------- +Wed Oct 24 11:48:53 UTC 2018 - Antonio Larrosa + +- Added 0001-Fix-tests-failing-with-python-3.6.patch from upstream + to fix the tests to run as expected. + +------------------------------------------------------------------- +Mon Sep 24 12:19:58 UTC 2018 - Antonio Larrosa - 0.7.6 + +- Initial release of python-pony 0.7.6 diff --git a/python-pony.spec b/python-pony.spec new file mode 100644 index 0000000..6905e81 --- /dev/null +++ b/python-pony.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-pony +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# not compatible: https://github.com/ponyorm/pony/blob/v0.7.17/setup.py#L112 +%define skip_python313 1 +%define skip_python314 1 +Name: python-pony +Version: 0.7.19 +Release: 0 +Summary: Pony Object-Relational Mapper +License: Apache-2.0 +URL: https://ponyorm.com +Source: https://files.pythonhosted.org/packages/source/p/pony/pony-%{version}.tar.gz +BuildRequires: %{python_module base} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module sqlite3} +BuildRequires: %{python_module wheel} +BuildRequires: dos2unix +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python +BuildArch: noarch +%python_subpackages + +%description +Pony ORM is a object-relational mapper for Python. Using Pony, users +can create and maintain database-oriented software applications. Pony +is able to write queries to the database using generator expressions. +Pony then analyzes the abstract syntax tree of a generator and +translates it to its SQL equivalent. + +%prep +%autosetup -p1 -n pony-%{version} +rm -rf pony/thirdparty/compiler +dos2unix README.md + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand rm -r %{buildroot}%{$python_sitelib}/pony/*/tests +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_json fails with sqlite 3.45 gh#ponyorm/pony#704 +rm pony/orm/tests/test_json.py +%pyunittest discover -v pony/orm/tests -p 'test_*.py' + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/pony +%{python_sitelib}/pony-%{version}.dist-info + +%changelog diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pony-0.7.19.tar.gz b/pony-0.7.19.tar.gz new file mode 100644 index 0000000..91afc88 --- /dev/null +++ b/pony-0.7.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7f83b2981893e49f7f18e8def52ad8fa8f8e6c5f9583b9aaed62d4d85036a0f +size 258589