15
0
Files
python-versioneer/python-versioneer.spec
Markéta Machová af3a317c66 Accepting request 1009858 from home:yarunachalam:branches:devel:languages:python
- Update to version 0.24 
  * MNT: Relicense to Unlicense by @effigies in #317
  * ENH: in verbose mode do not hide stderr of git rev-parse by @yarikoptic in #318
  * DOC: clarify upgrading to 0.23 doesn't require special actions by @sappelhoff in #321
  * ENH: Prepare for py2exe dropping distutils support by @effigies in #319
  * ENH: Allow versioneer to be used as a module in PEP-518 mode by @effigies in #294

OBS-URL: https://build.opensuse.org/request/show/1009858
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-versioneer?expand=0&rev=9
2022-10-11 18:05:34 +00:00

70 lines
2.1 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#
# spec file for package python-versioneer
#
# Copyright (c) 2022 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-versioneer
Version: 0.26
Release: 0
Summary: VCS-based management of project version strings
License: SUSE-Public-Domain
Group: Development/Languages/Python
URL: https://github.com/warner/python-versioneer
Source: https://files.pythonhosted.org/packages/source/v/versioneer/versioneer-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testsuite}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
Versioneer is a tool to automatically update version strings (in
setup.py and the conventional from PROJECT import _version pattern)
by asking the version control system about the current tree.
%prep
%setup -q -n versioneer-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/versioneer
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest -v test/test_file.py
%post
%python_install_alternative versioneer
%postun
%python_uninstall_alternative versioneer
%files %{python_files}
%defattr(-,root,root,-)
%doc README.md
%{python_sitelib}/*
%python_alternative %{_bindir}/versioneer
%changelog