14
0
forked from pool/python-peewee
Files
python-peewee/python-peewee.spec
Alexei Podvalsky e0e7e3bd7b Accepting request 917125 from home:mnhauke
- Update to version 3.14.4
  * Bugfix release
- Update to version 3.14.3
  * This release contains a single fix for ensuring NULL values
    are inserted when issuing a bulk-insert of heterogeneous
    dictionaries which may be missing explicit NULL values.
- Update to version 3.14.2
  * Support for named Check and foreign-key constraints.
  * Better foreign-key introspection for CockroachDB (and Postgres)
  * Register UUID adapter for Postgres.
  * Add fn.array_agg() to blacklist for automatic value coercion.
- Update to version 3.14.1
  Changes
  * Properly delegate to a foreign-key field's db_value() function
    when converting model instances.
  * Strip quote marks and parentheses from column names returned
    by sqlite cursor when a function-call is projected without an
    alias.
  * Fix DataSet.create_index() method.
  * Fix column-to-model mapping in model-select from subquery
    with joins.
  * Improvements to foreign-key lazy-loading.
  * Preserve and handle CHECK() constraints in Sqlite migrator.
  * Add stddev aggregate function to collection of sqlite
    user-defined funcs.
- Update to version 3.14.0
  * Add an experimental helper,
    shortcuts.resolve_multimodel_query(),
    for resolving multiple models used in a compound select query.
  * Add a lateral() method to select query for use with lateral

OBS-URL: https://build.opensuse.org/request/show/917125
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-peewee?expand=0&rev=32
2021-09-07 13:56:33 +00:00

76 lines
2.2 KiB
RPMSpec

#
# spec file for package python-peewee
#
# 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-peewee
Version: 3.14.4
Release: 0
Summary: An expressive ORM that supports multiple SQL backends
License: BSD-3-Clause
URL: https://github.com/coleifer/peewee
Source: https://github.com/coleifer/peewee/archive/refs/tags/%{version}.tar.gz#/peewee-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module PyMySQL}
BuildRequires: %{python_module apsw}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module psycopg2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{pythons}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: unzip
BuildRequires: pkgconfig(sqlite3)
Requires(post): update-alternatives
Requires(postun):update-alternatives
%python_subpackages
%description
An expressive ORM that supports PostgreSQL, MySQL and SQLite.
%prep
%setup -q -n peewee-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pwiz.py
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pytest_arch tests
%post
%python_install_alternative pwiz.py
%postun
%python_uninstall_alternative pwiz.py
%files %{python_files}
%license LICENSE
%doc CHANGELOG.md README.rst TODO.rst
%{_bindir}/pwiz.py-%{python_bin_suffix}
%python_alternative %{_bindir}/pwiz.py
%{python_sitearch}/*
%changelog