forked from pool/python-setuptools_scm
Accepting request 769019 from home:mcalabkova:branches:devel:languages:python
- update to 3.4.3 * ensure the git file finder closes file descriptor after reading archive * correctly transfer tag regex in the Configuration constructor * correctly set up the default version scheme for pyproject usage. * add support for projects built under setuptools declarative config * ensure the git file finder closes filedescriptors even when errors happen * clean out env vars from the git hook system to ensure correct function from within OBS-URL: https://build.opensuse.org/request/show/769019 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools_scm?expand=0&rev=57
This commit is contained in:
committed by
Git OBS Bridge
parent
278eb16148
commit
62a89aa5d3
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-setuptools_scm
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -26,7 +26,7 @@
|
||||
%bcond_with test
|
||||
%endif
|
||||
Name: python-setuptools_scm%{psuffix}
|
||||
Version: 3.3.3
|
||||
Version: 3.4.3
|
||||
Release: 0
|
||||
Summary: Python setuptools handler for SCM tags
|
||||
License: MIT
|
||||
@@ -37,13 +37,17 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
Suggests: python-toml
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
# Testing requirements
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools >= 42}
|
||||
BuildRequires: %{python_module setuptools_scm = %{version}}
|
||||
BuildRequires: %{python_module toml}
|
||||
BuildRequires: git-core
|
||||
BuildRequires: mercurial
|
||||
%endif
|
||||
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
|
||||
Recommends: git-core
|
||||
@@ -69,7 +73,8 @@ in SCM metadata. It also handles file finders for the supperted SCMs.
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%pytest -k 'not (test_mercurial or hg)'
|
||||
# both tests in test_integration.py encounter https://github.com/pypa/setuptools_scm/issues/386 (at least on Python 2)
|
||||
%pytest -k 'not test_integration'
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
|
Reference in New Issue
Block a user