Accepting request 927869 from devel:languages:python

- Update to 4.2:
  * Use setuptools.
  * Set zip_safe to False.
  * Remove reference to DurusWorks.
  * Use python3 for scripts.
  * Small optimization for setting _p_* attributes.
  * Pickler.clear_memo() can get slow.  Work-around that issue.
  * When finishing FileStorage commit, log file size.
  * Order pack todo queue by file offset.
  * Add support for an inherited server socket.
  * Improve db_to_py3k.py script.
  * Move scripts to 'bin' directory.
  * Define separate methods for PersistentSet.
  * Add --storage-class option to 'durus' command line tool.
  * Fix suble bug in FileStorage2 packer.
  * Add create_from_records() method.
  * Restore DFS20 file storage format.
- Remove nose from BuildRequires.

OBS-URL: https://build.opensuse.org/request/show/927869
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Durus?expand=0&rev=11
This commit is contained in:
2021-10-28 16:31:22 +00:00
committed by Git OBS Bridge
4 changed files with 33 additions and 9 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:164f60fba8f4c68e018df48d82c22d0dcc349c51584a4ed337f18a44e8ace59d
size 69271

3
Durus-4.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6c440f0a3ed3b9427506e19c957a0c6bc6cb69cc6cf7e8b2c48f73f50779fdbf
size 82456

View File

@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Thu Oct 28 03:37:51 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 4.2:
* Use setuptools.
* Set zip_safe to False.
* Remove reference to DurusWorks.
* Use python3 for scripts.
* Small optimization for setting _p_* attributes.
* Pickler.clear_memo() can get slow. Work-around that issue.
* When finishing FileStorage commit, log file size.
* Order pack todo queue by file offset.
* Add support for an inherited server socket.
* Improve db_to_py3k.py script.
* Move scripts to 'bin' directory.
* Define separate methods for PersistentSet.
* Add --storage-class option to 'durus' command line tool.
* Fix suble bug in FileStorage2 packer.
* Add create_from_records() method.
* Restore DFS20 file storage format.
- Remove nose from BuildRequires.
-------------------------------------------------------------------
Thu Sep 10 15:31:40 UTC 2020 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Durus
#
# Copyright (c) 2020 SUSE LLC
# 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
@@ -19,17 +19,17 @@
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Durus
Version: 3.9
Version: 4.2
Release: 0
Summary: A Python Object Database
License: CNRI-Python
URL: https://www.mems-exchange.org/software/durus/
Source: https://files.pythonhosted.org/packages/source/D/Durus/Durus-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
%ifpython2
Provides: %{oldpython}-durus = %{version}
Obsoletes: %{oldpython}-durus < %{version}
@@ -42,7 +42,9 @@ multiple client processes.
%prep
%setup -q -n Durus-%{version}
sed -i "1d" {db_renumber,__main__}.py # Fix non-executable scripts
# Fix non-executable scripts
sed -i "1d" bin/db_renumber.py
sed -i "1d" durus/__main__.py
%build
export CFLAGS="%{optflags}"
@@ -64,7 +66,7 @@ export CFLAGS="%{optflags}"
%files %{python_files}
%license LICENSE.txt
%doc ACKS.txt CHANGES.txt README.txt doc/FAQ.txt
%doc ACKS.txt CHANGES.txt README.md doc/FAQ.txt
%python_alternative %{_bindir}/durus
%{python_sitearch}/*