14
0
forked from pool/python-vcver

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcver?expand=0&rev=6
This commit is contained in:
2025-06-13 12:34:49 +00:00
committed by Git OBS Bridge
commit 4bb1bd0359
6 changed files with 131 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

21
LICENSE Normal file
View File

@@ -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.

20
python-vcver.changes Normal file
View File

@@ -0,0 +1,20 @@
-------------------------------------------------------------------
Fri Jun 13 12:34:32 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Wed Oct 12 18:20:32 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 0.2.12
no upstream changelog
-------------------------------------------------------------------
Tue Apr 14 06:53:10 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Enable testsuite
-------------------------------------------------------------------
Mon Apr 13 15:47:26 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
- Initial release of python-vcver 0.2.11

63
python-vcver.spec Normal file
View File

@@ -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

3
vcver-0.2.12.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ff8181d87bd943c8e0dc939acf6a1358aa68eb4e2db537591982452a3005553
size 13124