14
0
forked from pool/python-pony
Files
python-pony/python-pony.spec
Steve Kowalik fd3e50e6d9 Accepting request 886454 from home:bnavigator:branches:devel:languages:python
- 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()

OBS-URL: https://build.opensuse.org/request/show/886454
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pony?expand=0&rev=16
2021-04-19 06:31:20 +00:00

65 lines
1.9 KiB
RPMSpec

#
# spec file for package python-pony
#
# Copyright (c) 2021 SUSE LLC
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pony
Version: 0.7.14
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 setuptools}
BuildRequires: %{pythons}
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
%setup -q -n pony-%{version}
dos2unix README.md
%build
%python_build
%install
%python_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/pony/*/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/pony
%{python_sitelib}/pony-%{version}*-info
%changelog