From 217d94d8a4ffb4a81dd95370c27beddd64986947583cd24c861f2aad643d331d Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 02:56:58 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-whichcraft?expand=0&rev=16 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + python-whichcraft.changes | 44 +++++++++++++++++++++++++++ python-whichcraft.spec | 64 +++++++++++++++++++++++++++++++++++++++ whichcraft-0.6.1.tar.gz | 3 ++ 5 files changed, 135 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-whichcraft.changes create mode 100644 python-whichcraft.spec create mode 100644 whichcraft-0.6.1.tar.gz 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/python-whichcraft.changes b/python-whichcraft.changes new file mode 100644 index 0000000..e11cb5f --- /dev/null +++ b/python-whichcraft.changes @@ -0,0 +1,44 @@ +------------------------------------------------------------------- +Fri Jun 13 02:44:26 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Wed May 10 08:44:44 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Mon Sep 9 15:17:03 UTC 2019 - Tomáš Chvátal + +- Update to 0.6.1: + * fix versioning issue + +------------------------------------------------------------------- +Mon Jul 22 11:40:28 UTC 2019 - Tomáš Chvátal + +- Update to 0.6.0: + * no upstream changelog + +------------------------------------------------------------------- +Fri Mar 29 11:29:07 UTC 2019 - pgajdos@suse.com + +- version update to 0.5.2 + * Use black for code formatting + * Add 3.7 support thanks to @rooterkyberian + +------------------------------------------------------------------- +Tue Dec 4 12:56:02 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Sun Mar 4 10:46:17 UTC 2018 - jengelh@inai.de + +- Compact description. + +------------------------------------------------------------------- +Mon Sep 11 18:58:13 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-whichcraft.spec b/python-whichcraft.spec new file mode 100644 index 0000000..82caaa7 --- /dev/null +++ b/python-whichcraft.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-whichcraft +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-whichcraft +Version: 0.6.1 +Release: 0 +Summary: Cross-python shutil.which functionality +License: BSD-3-Clause +URL: https://github.com/pydanny/whichcraft +Source: https://files.pythonhosted.org/packages/source/w/whichcraft/whichcraft-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +This is a shim for the "shutil.which" function designed to work +across multiple versions of Python and inside of windows, and +originally done for Cookiecutter. The code for Python 2.x is based on +Python 3 code that was extracted from source. + +%prep +%setup -q -n whichcraft-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc AUTHORS.rst HISTORY.rst README.rst +%{python_sitelib}/whichcraft.py +%pycache_only %{python_sitelib}/__pycache__/whichcraft.*.pyc +%{python_sitelib}/whichcraft-%{version}.dist-info + +%changelog diff --git a/whichcraft-0.6.1.tar.gz b/whichcraft-0.6.1.tar.gz new file mode 100644 index 0000000..b677c9f --- /dev/null +++ b/whichcraft-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:acdbb91b63d6a15efbd6430d1d7b2d36e44a71697e93e19b7ded477afd9fce87 +size 6909