From eee877b6798c798458c0bf0308f53594689d4fef1f36c944ed6c45d52964d099 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 7 May 2025 07:58:23 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyDispatcher?expand=0&rev=13 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + PyDispatcher-2.0.7.tar.gz | 3 ++ python-PyDispatcher.changes | 76 +++++++++++++++++++++++++++++++++++++ python-PyDispatcher.spec | 60 +++++++++++++++++++++++++++++ 5 files changed, 163 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 PyDispatcher-2.0.7.tar.gz create mode 100644 python-PyDispatcher.changes create mode 100644 python-PyDispatcher.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/PyDispatcher-2.0.7.tar.gz b/PyDispatcher-2.0.7.tar.gz new file mode 100644 index 0000000..d62c43e --- /dev/null +++ b/PyDispatcher-2.0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b777c6ad080dc1bad74a4c29d6a46914fa6701ac70f94b0d66fbcfde62f5be31 +size 38891 diff --git a/python-PyDispatcher.changes b/python-PyDispatcher.changes new file mode 100644 index 0000000..405de9f --- /dev/null +++ b/python-PyDispatcher.changes @@ -0,0 +1,76 @@ +------------------------------------------------------------------- +Tue May 6 12:48:23 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Jun 1 20:10:10 UTC 2023 - Dirk Müller + +- update to 2.0.7: + * packaging improvements, include pyproject.toml + +------------------------------------------------------------------- +Fri Sep 9 12:27:33 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 2.0.6 + No change log. Following is git log + * README Show the pypi badges for the project + * PACKAGING Update the packaging and docs for github hosting, version bump + * PAGES Check in the pydispatcher pydoc for gh-pages + * PYTHON3 Update the pydoc runner to work under python3 + * Add tox-file to run the test suite across current interpreters + * Remove 2to3 command as well + * Remove the 2to3 operation, provide a __bool__ method + * Fix indentation weirdness + * Bump version for 2/3 release + * A few percent improvement in test coverage in trivial branches + * Expand tabs to 4-spaces + * Eliminate the old CVS auto-update metadata (now out of date), unused import + * Pass test suite under Python 3.4 + * Fix license declaration and get rid of the python 2.2 work arounds + * Ignore coverage directory + * More print function changes + * Print function + * Eliminate the future statement from 2.3 or so + * Coverage test run script + * Use modern except forms + * Note link to django.dispatch, provide links to pyvrml97 use-case examples + * Add script to upload the documentation + * Eliminate some un-needed imports and assignments + * Hrm, didn't get docs checked in, anyway, docs and 2 introductory samples + * Extend docs with some basic usage + * Ignore generated pydocs + * Update the docs ever so slightly with more accurate references + * Note current maintainer in setup, build zip and tar by default + * Add Python3 identifier + * Python 3.2 now passes the whole test suite + * Ignore a few generated files + * Version bump for the 3.x compatible release + * Make the test suite run under 2.x or 3.x + * Allow use of 2to3 automatically on installation, clean up code ever so slightly + +------------------------------------------------------------------- +Thu Nov 7 15:16:17 UTC 2019 - Matej Cepl + +- Run through spec-cleaner + +------------------------------------------------------------------- +Tue Dec 4 12:52:04 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu Dec 21 23:04:44 UTC 2017 - mpluskal@suse.com + +- Convert to singlespec + +------------------------------------------------------------------- +Thu Jun 2 18:16:32 UTC 2016 - jacobwinski@gmail.com + +- Add description to spec file. + +------------------------------------------------------------------- +Thu Jun 2 18:15:37 UTC 2016 - jacobwinski@gmail.com + +- Initial package build. + diff --git a/python-PyDispatcher.spec b/python-PyDispatcher.spec new file mode 100644 index 0000000..1374bc8 --- /dev/null +++ b/python-PyDispatcher.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-PyDispatcher +# +# 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/ +# + + +Name: python-PyDispatcher +Version: 2.0.7 +Release: 0 +Summary: Multi-producer-multi-consumer signal dispatching mechanism +License: BSD-3-Clause +URL: https://github.com/mcfletch/pydispatcher +Source: https://files.pythonhosted.org/packages/source/P/PyDispatcher/PyDispatcher-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Dispatcher mechanism for creating event models. + +PyDispatcher is an enhanced version of Patrick K. O’Brien’s original +dispatcher.py module. It provides the Python programmer with a robust +mechanism for event routing within various application contexts. + +Included in the package are the robustapply and saferef modules, which +provide the ability to selectively apply arguments to callable objects and +to reference instance methods using weak-references. + +%prep +%setup -q -n PyDispatcher-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license license.txt +%{python_sitelib}/pydispatch +%{python_sitelib}/[Pp]y[Dd]ispatcher-%{version}*-info + +%changelog