From 24529cb319b4698481ef1d4c7280e77e444aa820bfb66ef186c3fa314d1cb178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 12 Oct 2020 07:15:32 +0000 Subject: [PATCH] Accepting request 841070 from home:jayvdb:py-submit Used often in setup_requires, so is needed by metaextract/py2pack fail OBS-URL: https://build.opensuse.org/request/show/841070 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools-version-command?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + python-setuptools-version-command.changes | 9 ++++ python-setuptools-version-command.spec | 60 +++++++++++++++++++++++ setuptools-version-command-2.2.tar.gz | 3 ++ 5 files changed, 96 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-2.2.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..82d2896 --- /dev/null +++ b/python-setuptools-version-command.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +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..a6ef435 --- /dev/null +++ b/python-setuptools-version-command.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-setuptools-version-command +# +# Copyright (c) 2020 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-setuptools-version-command +Version: 2.2 +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 setuptools} +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 +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc AUTHORS README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog diff --git a/setuptools-version-command-2.2.tar.gz b/setuptools-version-command-2.2.tar.gz new file mode 100644 index 0000000..59b50ee --- /dev/null +++ b/setuptools-version-command-2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27ad3ccbf1804d6d4fb66e3b6167506eff12d6cb60b6d60489369258dd6068c7 +size 57799