Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python-setuptools_scm.git#2e1f3f183d9365a6a2e6943265f9a4cf767ffd0d
This commit is contained in:
DistroBaker 2021-02-05 03:43:24 +01:00
parent a34b81bbc1
commit 68400f1869
3 changed files with 43 additions and 44 deletions

19
.gitignore vendored
View File

@ -1,17 +1,2 @@
/setuptools_scm-1.8.0.tar.bz2
/setuptools_scm-1.9.0.tar.gz
/setuptools_scm-1.10.1.tar.bz2
/setuptools_scm-1.13.0.tar.gz
/setuptools_scm-1.15.0.tar.gz
/setuptools_scm-1.15.5.tar.gz
/setuptools_scm-1.15.6.tar.gz
/setuptools_scm-1.15.7.tar.gz
/setuptools_scm-2.1.0.tar.gz
/setuptools_scm-3.0.4.tar.gz
/setuptools_scm-3.1.0.tar.gz
/setuptools_scm-3.2.0.tar.gz
/setuptools_scm-3.3.0.tar.gz
/setuptools_scm-3.3.1.tar.gz
/setuptools_scm-3.3.3.tar.gz
/setuptools_scm-3.5.0.tar.gz
/setuptools_scm-4.1.2.tar.gz
/setuptools_scm-*.tar.gz
/setuptools_scm-*/

View File

@ -1,65 +1,79 @@
%bcond_without tests
%global srcname setuptools_scm
Name: python-%{srcname}
Version: 4.1.2
Release: 4%{?dist}
Name: python-setuptools_scm
Version: 5.0.1
Release: 1%{?dist}
Summary: Blessed package to manage your versions by SCM tags
License: MIT
URL: https://pypi.python.org/pypi/setuptools_scm
Source0: %pypi_source
Source0: %{pypi_source setuptools_scm}
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: pyproject-rpm-macros
%if %{with tests}
BuildRequires: git-core
BuildRequires: mercurial
%endif
%description
Setuptools_scm handles managing your python package versions in SCM metadata.
Setuptools_scm handles managing your Python package versions in SCM metadata.
It also handles file finders for the supported SCMs.
%package -n python%{python3_pkgversion}-%{srcname}
%package -n python%{python3_pkgversion}-setuptools_scm
Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%if %{with tests}
BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-six
BuildRequires: python%{python3_pkgversion}-toml
%endif
%description -n python%{python3_pkgversion}-%{srcname}
Setuptools_scm handles managing your python package versions in SCM metadata.
%description -n python%{python3_pkgversion}-setuptools_scm
Setuptools_scm handles managing your Python package versions in SCM metadata.
It also handles file finders for the supported SCMs.
%{?python_extras_subpkg:%{python_extras_subpkg -n python3-setuptools_scm -i %{python3_sitelib}/%{srcname}-*.egg-info toml}}
%pyproject_extras_subpkg -n python%{python3_pkgversion}-setuptools_scm toml
%prep
%autosetup -n %{srcname}-%{version}
%autosetup -p1 -n setuptools_scm-%{version}
# In case of a bootstrap loop between toml and setuptools_scm, do:
# rm pyproject.toml
# That way, toml is not fetched to parse the file.
# That only works assuming the backend in the file remains the default backend.
%generate_buildrequires
%pyproject_buildrequires %{?with_tests:-e %{toxenv}-test}
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%pyproject_save_files setuptools_scm
%if %{with tests}
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -k 'not test_pip_download'
%tox -- -- -v -k 'not test_pip_download'
%endif
%files -n python%{python3_pkgversion}-%{srcname}
%files -n python%{python3_pkgversion}-setuptools_scm -f %{pyproject_files}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-*.egg-info/
%changelog
* Fri Jan 29 2021 Miro Hrončok <mhroncok@redhat.com> - 5.0.1-1
- Update to 5.0.1
- Fixes: rhbz#1907070
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Dec 2 2020 Miro Hrončok <mhroncok@redhat.com> - 4.1.2-4
- BuildRequire six explicitly, for tests

View File

@ -1 +1 @@
SHA512 (setuptools_scm-4.1.2.tar.gz) = 3d9d1e0479f00f6159b57f9e5b24e34df035d2009ec50d3779c77b1246aabc6d816f2a2d3e6651791316009e39dfcc8a1b84b779077c39501b9de5740abe6af6
SHA512 (setuptools_scm-5.0.1.tar.gz) = 055403539a26caeb119f3d6623e7b32ef52ccc11a39757fdd9b265ba191265346be5a062a5926a381ba47bbd1a666ffa632653ee6055050689cc38fe0f90cd0f