15
0
forked from pool/python-Durus

- Update to 4.3

* Sub-class containers from abstract base types.
  * Use updated trashcan macros.
- Add fdupes to BuildRequires
- Adjust upstream source name in spec file
- Limit Python files matched in %files section
- Run %fdupes to eliminate duplicates from Python directory
- Switch package to modern Python Stack on SLE-15
  * Use Python 3.11 on SLE-15 by default
  * Add Obsoletes for old python3 package on SLE-15
  * Drop support for older Python versions
- Switch build system from setuptools to pyproject.toml
  * Add python-pip and python-wheel to BuildRequires
  * Replace %python_build with %pyproject_wheel
  * Replace %python_install with %pyproject_install
  * Update name for dist directory in %files section

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Durus?expand=0&rev=17
This commit is contained in:
2024-11-07 10:45:46 +00:00
committed by Git OBS Bridge
commit 3f1b877206
6 changed files with 176 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

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

3
durus-4.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:690334236ea3ba8d966e3aecce025477909d6b240d0b3203d3327f6243726007
size 82767

74
python-Durus.changes Normal file
View File

@@ -0,0 +1,74 @@
-------------------------------------------------------------------
Thu Nov 7 08:51:48 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 4.3
* Sub-class containers from abstract base types.
* Use updated trashcan macros.
- Add fdupes to BuildRequires
- Adjust upstream source name in spec file
- Limit Python files matched in %files section
- Run %fdupes to eliminate duplicates from Python directory
- Switch package to modern Python Stack on SLE-15
* Use Python 3.11 on SLE-15 by default
* Add Obsoletes for old python3 package on SLE-15
* Drop support for older Python versions
- Switch build system from setuptools to pyproject.toml
* Add python-pip and python-wheel to BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
* Update name for dist directory in %files section
-------------------------------------------------------------------
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
- note this package does not use nose for testing at all
-------------------------------------------------------------------
Tue Nov 5 09:52:43 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Format with spec-cleaner
-------------------------------------------------------------------
Thu Aug 24 13:37:52 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Sun Apr 14 14:00:06 UTC 2013 - p.drouand@gmail.com
- Initial python3 support
-------------------------------------------------------------------
Fri Mar 23 14:36:27 UTC 2012 - cfarrell@suse.com
- license update: CNRI-Python
SPDX
-------------------------------------------------------------------
Wed Sep 22 09:41:26 UTC 2011 - saschpe@suse.de
- Initial version

72
python-Durus.spec Normal file
View File

@@ -0,0 +1,72 @@
#
# spec file for package python-Durus
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-Durus
Version: 4.3
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 pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
%python_subpackages
%description
Serves and manages changes to persistent objects being used in
multiple client processes.
%prep
%setup -q -n durus-%{version}
# Fix non-executable scripts
sed -i "1d" bin/db_renumber.py
sed -i "1d" durus/__main__.py
%build
export CFLAGS="%{optflags}"
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/durus
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%post
%python_install_alternative durus
%postun
%python_uninstall_alternative durus
%check
# TODO, uses sancho's utest format from 2005 on
# see CHANGES.txt
%files %{python_files}
%license LICENSE.txt
%doc ACKS.txt CHANGES.txt README.md doc/FAQ.txt
%python_alternative %{_bindir}/durus
%{python_sitearch}/durus
%{python_sitearch}/Durus-%{version}.dist-info
%changelog