forked from pool/python-pynamodb
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 56e4b51e50 | |||
| 9884711f79 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3991239810c2a3d8bb3503783b787c47dc304566258e0793ae0b1d61909d1a3f
|
|
||||||
size 53904
|
|
||||||
3
pynamodb-6.1.0.tar.gz
Normal file
3
pynamodb-6.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c7d09700ace9f428e67ecf73fa867633c632de3acf402b2c7c136be695afda79
|
||||||
|
size 96283
|
||||||
@@ -1,3 +1,74 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 30 09:19:50 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 6.1.0
|
||||||
|
* 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.
|
||||||
|
* pynamodb.util.attribute_value_to_json was removed (#1126)
|
||||||
|
* Attribute’s default parameter must be either an immutable value (of one of
|
||||||
|
the built-in immutable types) or a callable. This prevents a common class of
|
||||||
|
errors caused by unintentionally mutating the default value. A simple workaround
|
||||||
|
is to pass an initializer (e.g. change default={} to default=dict) or wrap in a
|
||||||
|
lambda (e.g. change default={'foo': 'bar'} to default=lambda: {'foo': 'bar'}).
|
||||||
|
* count(), query(), and scan() are now instance methods.
|
||||||
|
* OperationSettings has been removed.
|
||||||
|
* We are now compatible with opentelemetry botocore instrumentation.
|
||||||
|
* We’ve reduced our usage of botocore private APIs (#1079). On multiple occasions,
|
||||||
|
new versions of botocore broke PynamoDB, and this change lessens the likelihood
|
||||||
|
of that happening in the future by reducing (albeit not eliminating) our reliance
|
||||||
|
on private botocore APIs.
|
||||||
|
* save(), update(), delete_item(), and delete() now accept a add_version_condition
|
||||||
|
parameter. See Conditioning on the version for more details.
|
||||||
|
* batch_get(), has guard rails defending against items without a hash_key and range_key.
|
||||||
|
* set(), can remove attribute by assigning an empty value in the update expression.
|
||||||
|
- from version 5.5.1
|
||||||
|
* Fix compatibility with botocore 1.33.2 (#1205)
|
||||||
|
- from version 5.5.0
|
||||||
|
* save(), update(), delete_item(), and delete() now accept a add_version_condition
|
||||||
|
parameter. See Conditioning on the version for more details.
|
||||||
|
- from version 5.4.1
|
||||||
|
* Use model’s AWS credentials in threads (#1164)
|
||||||
|
- from version 5.4.0
|
||||||
|
* Expose transaction cancellation reasons (#1156)
|
||||||
|
- from version 5.3.5
|
||||||
|
* Fix exception message (#1157)
|
||||||
|
- Limit Python files matched in %files section
|
||||||
|
- Switch package to modern Python Stack on SLE-15
|
||||||
|
* Use Python 3.11 on SLE-15 by default
|
||||||
|
* Drop support for older Python versions
|
||||||
|
- Switch build system from setuptools to pyproject.toml
|
||||||
|
* Add python-pip and python-wheel to BuildRequires
|
||||||
|
* Remove python-devel and python-setuptools from BuildRequires
|
||||||
|
* Replace %python_build with %pyproject_wheel
|
||||||
|
* Replace %python_install with %pyproject_install
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 12 18:15:28 UTC 2022 - pgajdos@suse.com
|
Mon Dec 12 18:15:28 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pynamodb
|
# spec file for package python-pynamodb
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,19 +16,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?sle15_python_module_pythons}
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%define skip_python2 1
|
|
||||||
%endif
|
|
||||||
Name: python-pynamodb
|
Name: python-pynamodb
|
||||||
Version: 5.3.4
|
Version: 6.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python Interface to DynamoDB
|
Summary: Python Interface to DynamoDB
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pynamodb/PynamoDB
|
URL: https://github.com/pynamodb/PynamoDB
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/pynamodb/pynamodb-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/pynamodb/pynamodb-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-botocore >= 1.12.54
|
Requires: python-botocore >= 1.12.54
|
||||||
@@ -51,10 +48,10 @@ A Python interface for Amazon's DynamoDB.
|
|||||||
%setup -q -n pynamodb-%{version}
|
%setup -q -n pynamodb-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -66,6 +63,7 @@ export AWS_ACCESS_KEY_ID=fake_id
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pynamodb
|
||||||
|
%{python_sitelib}/pynamodb-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user