commit 073e6acc9eb9bba32fb0a79dc99279299bbeb3759b1ed2dbd95f9fa937bfb18c Author: Adrian Schröter Date: Fri May 3 20:10:58 2024 +0200 Sync from SUSE:SLFO:Main python-autocommand revision 43bcb4c72bb083cbaea5d5a4f450b8be 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/autocommand-2.2.2.tar.gz b/autocommand-2.2.2.tar.gz new file mode 100644 index 0000000..3ccc08c --- /dev/null +++ b/autocommand-2.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:878de9423c5596491167225c2a455043c3130fb5b7286ac83443d45e74955f34 +size 22894 diff --git a/python-autocommand.changes b/python-autocommand.changes new file mode 100644 index 0000000..97bb507 --- /dev/null +++ b/python-autocommand.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Fri Dec 22 13:12:16 UTC 2023 - Ben Greiner + +- Add setuptools-dynamic-license.patch gh#Lucretiel/autocommand#31 +- Build PEP517 + +------------------------------------------------------------------- +Fri Apr 21 12:22:25 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Tue Apr 18 23:24:23 UTC 2023 - Matej Cepl + +- Switch to single spec version build for PSP + +------------------------------------------------------------------- +Mon Jan 2 18:37:36 UTC 2023 - Dirk Müller + +- update to 2.2.2: + * fix reference to old readme + * switch to https in LICENSE + * fix out of date patterns in autocommand +- drop autocommand-fixtests.patch (upstream) + +------------------------------------------------------------------- +Wed Jul 13 14:36:43 UTC 2022 - Ben Greiner + +- initial specfile for v2.2.1 +- Add autocommand-fixtests.patch gh#Lucretiel/autocommand#20 +- Required by pip-run + diff --git a/python-autocommand.spec b/python-autocommand.spec new file mode 100644 index 0000000..97a6590 --- /dev/null +++ b/python-autocommand.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-autocommand +# +# Copyright (c) 2023 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-autocommand +Version: 2.2.2 +Release: 0 +Summary: A library to create a command-line program from a function +License: LGPL-3.0-only +URL: https://github.com/Lucretiel/autocommand +Source: https://files.pythonhosted.org/packages/source/a/autocommand/autocommand-%{version}.tar.gz +# PATCH-FIX-UPSTREAM setuptools-dynamic-license.patch gh#Lucretiel/autocommand#31 +Patch0: setuptools-dynamic-license.patch +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Autocommand turns a function into a command-line program. It converts the function's parameter +signature into command-line arguments, and automatically runs the function if the module was +called as __main__. In effect, it lets your create a smart main function. + +%prep +%autosetup -p1 -n autocommand-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/autocommand +%{python_sitelib}/autocommand-%{version}.dist-info + +%changelog diff --git a/setuptools-dynamic-license.patch b/setuptools-dynamic-license.patch new file mode 100644 index 0000000..ac32af4 --- /dev/null +++ b/setuptools-dynamic-license.patch @@ -0,0 +1,12 @@ +diff -ur autocommand-2.2.2.orig/pyproject.toml autocommand-2.2.2/pyproject.toml +--- autocommand-2.2.2.orig/pyproject.toml 2023-12-22 14:09:47.546319795 +0100 ++++ autocommand-2.2.2/pyproject.toml 2023-12-22 14:11:30.299252276 +0100 +@@ -18,6 +18,8 @@ + "Topic :: Software Development :: Libraries", + "Topic :: Software Development :: Libraries :: Python Modules", + ] ++dynamic = [ "license" ] ++ + + [project.urls] + "Homepage" = "https://github.com/Lucretiel/autocommand"