* Add a wait argument to Model.delete_table (#1270) * Add the ability to set or unset the boto retry configuration (#1271) - from version 6.0.2 * Fix a warning about datetime.utcfromtimestamp deprecation (#1261) - from version 6.0.1 * For failed transaction, return the underlying item in cancellation_reasons[...].raw_item (#1226). This only applies when passing return_values=ALL_OLD. * Fixing (#1242) regression to the extra_headers feature. These headers are intended for proxies that strip them, so they should be excluded from the AWS signature. - from version 6.0.0 * BinaryAttribute and BinarySetAttribute have undergone breaking changes: * The attributes’ internal encoding has changed. To prevent this change going unnoticed, a new required legacy_encoding parameter was added: see Upgrading Binary(Set)Attribute for details. If your codebase uses BinaryAttribute or BinarySetAttribute, go over the attribute declarations and mark them accordingly. * When using binary attributes, the return value of serialize() will no longer be JSON-serializable since it will contain bytes objects. Use to_dynamodb_dict() and to_simple_dict() for JSON-serializable mappings. for a safe JSON-serializable representation. * Python 3.6 is no longer supported. * PynamoDB no longer has a default AWS region (used to be us-east-1) (#1003). If needed, update your models’ Meta or set the AWS_DEFAULT_REGION environment variable. * Model’s JSON serialization helpers were changed: * to_json was renamed to to_simple_dict() (#1126). Additionally, to_dynamodb_dict() and from_dynamodb_dict() were added for round-trip JSON serialization. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-pynamodb?expand=0&rev=14
70 lines
2.1 KiB
RPMSpec
70 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-pynamodb
|
|
#
|
|
# Copyright (c) 2025 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pynamodb
|
|
Version: 6.1.0
|
|
Release: 0
|
|
Summary: Python Interface to DynamoDB
|
|
License: MIT
|
|
URL: https://github.com/pynamodb/PynamoDB
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pynamodb/pynamodb-%{version}.tar.gz
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-botocore >= 1.12.54
|
|
Requires: python-python-dateutil >= 2.1
|
|
Recommends: python-blinker >= 1.3
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module blinker >= 1.3}
|
|
BuildRequires: %{python_module botocore >= 1.12.54}
|
|
BuildRequires: %{python_module pytest-mock}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dateutil >= 2.1}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python interface for Amazon's DynamoDB.
|
|
|
|
%prep
|
|
%setup -q -n pynamodb-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export AWS_SECRET_ACCESS_KEY=fake_key
|
|
export AWS_ACCESS_KEY_ID=fake_id
|
|
# Sadly the tests since 4.x series require local dynamdb running on the local machine instead of mocking
|
|
#%%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/pynamodb
|
|
%{python_sitelib}/pynamodb-%{version}.dist-info
|
|
|
|
%changelog
|