From 53014760e9132820ce5c8c554fb4272b350cda394955f911818e3401613a6f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 10:51:05 +0000 Subject: [PATCH 1/3] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools-version-command?expand=0&rev=5 --- .gitattributes | 23 +++++++++ .gitignore | 1 + python-setuptools-version-command.changes | 22 ++++++++ python-setuptools-version-command.spec | 63 +++++++++++++++++++++++ setuptools-version-command-99.9.tar.gz | 3 ++ 5 files changed, 112 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-setuptools-version-command.changes create mode 100644 python-setuptools-version-command.spec create mode 100644 setuptools-version-command-99.9.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-setuptools-version-command.changes b/python-setuptools-version-command.changes new file mode 100644 index 0000000..e9dfda2 --- /dev/null +++ b/python-setuptools-version-command.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +Thu Jun 12 10:49:16 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Fri Oct 7 15:29:06 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 99.9 + * Add deprecation warning to code + * Add deprecation notice to README + * Final bump of version + +------------------------------------------------------------------- +Sun Oct 11 06:38:02 UTC 2020 - John Vandenberg + +- Activate test suite + +------------------------------------------------------------------- +Tue Jan 7 10:49:46 AM UTC 2020 - John Vandenberg + +- Initial spec for v2.2 diff --git a/python-setuptools-version-command.spec b/python-setuptools-version-command.spec new file mode 100644 index 0000000..e9db694 --- /dev/null +++ b/python-setuptools-version-command.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-setuptools-version-command +# +# 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-setuptools-version-command +Version: 99.9 +Release: 0 +Summary: Adds a command to dynamically get the version from the VCS of choice +License: MIT +Group: Development/Languages/Python +URL: https://github.com/j0057/setuptools-version-command +Source: https://github.com/j0057/setuptools-version-command/archive/%{version}.tar.gz#/setuptools-version-command-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-setuptools +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Adds a command to dynamically get the version from the VCS of choice. + +%prep +%setup -q -n setuptools-version-command-%{version} +rm setup.cfg + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc AUTHORS README.rst +%license LICENSE +%{python_sitelib}/setuptools_version_command.py +%pycache_only %{python_sitelib}/__pycache__/setuptools_version_command* +%{python_sitelib}/setuptools[-_]version[-_]command-%{version}*-info + +%changelog diff --git a/setuptools-version-command-99.9.tar.gz b/setuptools-version-command-99.9.tar.gz new file mode 100644 index 0000000..3ccd254 --- /dev/null +++ b/setuptools-version-command-99.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c69710b5d1483710552c4af8ed76def09b60dcd34fc3680b2444eff465364ba +size 58546 From 631cbbb5da7546acc843690a163e7f6c646c85266bc445510edf2d02f3b2a9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 10:56:46 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools-version-command?expand=0&rev=6 --- python-setuptools-version-command.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-setuptools-version-command.spec b/python-setuptools-version-command.spec index e9db694..8be3f9e 100644 --- a/python-setuptools-version-command.spec +++ b/python-setuptools-version-command.spec @@ -58,6 +58,6 @@ rm setup.cfg %license LICENSE %{python_sitelib}/setuptools_version_command.py %pycache_only %{python_sitelib}/__pycache__/setuptools_version_command* -%{python_sitelib}/setuptools[-_]version[-_]command-%{version}*-info +#%{python_sitelib}/setuptools[-_]version[-_]command-%{version}*-info %changelog From 12a472ffc39b761773f105deb6c27b2e57c07f3870ca8714e14c272f8e1ef99b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 11:00:03 +0000 Subject: [PATCH 3/3] fix files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools-version-command?expand=0&rev=7 --- python-setuptools-version-command.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-setuptools-version-command.spec b/python-setuptools-version-command.spec index 8be3f9e..0576826 100644 --- a/python-setuptools-version-command.spec +++ b/python-setuptools-version-command.spec @@ -16,6 +16,7 @@ # +%define info_version 2.2 Name: python-setuptools-version-command Version: 99.9 Release: 0 @@ -58,6 +59,6 @@ rm setup.cfg %license LICENSE %{python_sitelib}/setuptools_version_command.py %pycache_only %{python_sitelib}/__pycache__/setuptools_version_command* -#%{python_sitelib}/setuptools[-_]version[-_]command-%{version}*-info +%{python_sitelib}/setuptools[-_]version[-_]command-%{info_version}*-info %changelog