Update to 8.0.4
- Fixes: rhbz#2241772 This release removed the redundant dependency declarations (virtualenv for testing and rich for building). However, a new test dependency on `build` was added. We don't really need `build` in RHEL (yet anyway), so we skip the newly added test there. Unfortunately, missing `build` requires sedding pytest configuration; there is a custom functionality in conftest.py which is supposed to report the versions of dependencies, and it blows up when some are missing.
This commit is contained in:
parent
ff9f64c2e6
commit
4a29e6f882
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
||||
/setuptools-scm-8.0.1.tar.gz
|
||||
/setuptools-scm-8.0.2.tar.gz
|
||||
/setuptools-scm-8.0.3.tar.gz
|
||||
/setuptools-scm-8.0.4.tar.gz
|
||||
|
@ -1,7 +1,7 @@
|
||||
%bcond tests 1
|
||||
|
||||
Name: python-setuptools_scm
|
||||
Version: 8.0.3
|
||||
Version: 8.0.4
|
||||
Release: %autorelease
|
||||
Summary: Blessed package to manage your versions by SCM tags
|
||||
|
||||
@ -22,7 +22,11 @@ BuildRequires: mercurial
|
||||
# Manually listed test dependencies from tox.ini, to avoid pulling tox into RHEL
|
||||
BuildRequires: python%{python3_pkgversion}dist(pytest)
|
||||
BuildRequires: python%{python3_pkgversion}dist(setuptools) >= 45
|
||||
# virtualenv omitted, see https://github.com/pypa/setuptools_scm/pull/940
|
||||
BuildRequires: python%{python3_pkgversion}dist(wheel)
|
||||
# build is used only for one test, we don't need it in RHEL just for that
|
||||
%if %{undefined rhel}
|
||||
BuildRequires: python%{python3_pkgversion}dist(build)
|
||||
%endif
|
||||
# rich omitted, pulled in only with the [rich] extra
|
||||
%endif
|
||||
|
||||
@ -45,16 +49,10 @@ It also handles file finders for the supported SCMs.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n setuptools-scm-%{version}
|
||||
# Upstream bogusly declares rich as a build-system dependency,
|
||||
# but the build works without it.
|
||||
# We remove it here to simplify the bootstrap loop
|
||||
# and to avoid the dependency in RHEL builds.
|
||||
# Upstream issue: https://github.com/pypa/setuptools_scm/issues/941
|
||||
# Upstream PR: https://github.com/pypa/setuptools_scm/pull/942
|
||||
# The PR does not apply cleanly to 8.0.3, so we sed it out instead.
|
||||
# The sed removes the first line with "rich" only:
|
||||
sed -i '0,/"rich"/{/"rich"/d}' pyproject.toml
|
||||
|
||||
%if %{defined rhel}
|
||||
# Don't blow up all of the tests by failing to report the installed version of build
|
||||
sed -i '0,/VERSION_PKGS/{s/, "build"//}' testing/conftest.py
|
||||
%endif
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
@ -72,8 +70,9 @@ sed -i '0,/"rich"/{/"rich"/d}' pyproject.toml
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
# Skipped test tries to download from the internet
|
||||
%pytest -v -k 'not test_pip_download'
|
||||
# test_pip_download tries to download from the internet
|
||||
# test_pyproject_missing_setup_hook_works requires build
|
||||
%pytest -v -k 'not test_pip_download%{?rhel: and not test_pyproject_missing_setup_hook_works}'
|
||||
%endif
|
||||
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (setuptools-scm-8.0.3.tar.gz) = 7002da1abdabbf617fb92b94aa04f6fe90aa5cbe26ae7ff8a9df0c53b35e8d13e6294ed38373d081ccafe375b376d52e72d5c7a031dbfb356aa0ee3221641096
|
||||
SHA512 (setuptools-scm-8.0.4.tar.gz) = 1b584f20dfad115f379a97de9e96bb3b36ab00986381748c2f395facd26ce01a6556ccfbabeb8f0cf9ce8720b26ce3a00040dba02cc689701ccf1d31f13277da
|
||||
|
Loading…
Reference in New Issue
Block a user