From 4bb1bd03599634478bb204f0359fcd17cd24df88b60cb244314c0bf7a97c7747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 13 Jun 2025 12:34:49 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcver?expand=0&rev=6 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + LICENSE | 21 +++++++++++++++ python-vcver.changes | 20 ++++++++++++++ python-vcver.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++ vcver-0.2.12.tar.gz | 3 +++ 6 files changed, 131 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 python-vcver.changes create mode 100644 python-vcver.spec create mode 100644 vcver-0.2.12.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/LICENSE b/LICENSE new file mode 100644 index 0000000..c3352fb --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016 Yusuke Tsutsumi + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/python-vcver.changes b/python-vcver.changes new file mode 100644 index 0000000..c6433a3 --- /dev/null +++ b/python-vcver.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Fri Jun 13 12:34:32 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Wed Oct 12 18:20:32 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.2.12 + no upstream changelog + +------------------------------------------------------------------- +Tue Apr 14 06:53:10 UTC 2020 - Tomáš Chvátal + +- Enable testsuite + +------------------------------------------------------------------- +Mon Apr 13 15:47:26 UTC 2020 - Antonio Larrosa + +- Initial release of python-vcver 0.2.11 diff --git a/python-vcver.spec b/python-vcver.spec new file mode 100644 index 0000000..ff3a39f --- /dev/null +++ b/python-vcver.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-vcver +# +# 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-vcver +Version: 0.2.12 +Release: 0 +Summary: Provide package versions with version control data +License: MIT +URL: https://github.com/toumorokoshi/vcver-python +Source: https://files.pythonhosted.org/packages/source/v/vcver/vcver-%{version}.tar.gz +Source99: https://raw.githubusercontent.com/toumorokoshi/vcver-python/master/LICENSE +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-packaging +BuildArch: noarch +%python_subpackages + +%description +Python module to provide package versions with version control data. + +%prep +%setup -q -n vcver-%{version} +cp %{SOURCE99} . + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_happy_case wants to be run from git repo, which we obviously don't have +# test_child_directory_detected_as_git_repo same as the test_happy_case +%pytest -k 'not test_happy_case and not test_child_directory_detected_as_git_repo' + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/vcver +%{python_sitelib}/vcver-%{version}*-info + +%changelog diff --git a/vcver-0.2.12.tar.gz b/vcver-0.2.12.tar.gz new file mode 100644 index 0000000..e0230b9 --- /dev/null +++ b/vcver-0.2.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ff8181d87bd943c8e0dc939acf6a1358aa68eb4e2db537591982452a3005553 +size 13124