SHA256
1
0
forked from pool/python-pbr

- update to 6.1.0:

* Add openstack-tox-py312 as non-voting job
  * Add SetupTools to our functional testing venvs
  * Use SetupTools' vendored distutils in tests
  * Also run coverage tests serially
  * Omnibus PBR CI fixups
  * Serialize tests
  * Fix tempest-full job
  * Use summary for the package summary
  * Test on py310 and py311
- Use stestr rather than pytest to run the testsuite.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pbr?expand=0&rev=162
This commit is contained in:
Dirk Mueller 2024-08-31 11:50:25 +00:00 committed by Git OBS Bridge
commit bafe828fd1
7 changed files with 1169 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

3
pbr-6.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d1377122a5a00e2f940ee482999518efe16d745d423a670c27773dfbc3c9a7d9
size 123150

BIN
pbr-6.1.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

1020
python-pbr.changes Normal file

File diff suppressed because it is too large Load Diff

116
python-pbr.spec Normal file
View File

@ -0,0 +1,116 @@
#
# spec file for package python-pbr
#
# Copyright (c) 2024 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/
#
%{?sle15_python_module_pythons}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-pbr%{psuffix}
Version: 6.1.0
Release: 0
Summary: Python Build Reasonableness
License: Apache-2.0
URL: https://docs.openstack.org/pbr/latest/
Source: https://files.pythonhosted.org/packages/source/p/pbr/pbr-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools >= 64.0.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: git-core
Obsoletes: python-pbr-doc
BuildArch: noarch
%if %{with test}
# Package originates from OpenStack and depends on other OpenStack packages for testing.
# These are only available for the primary python3 interpreter in TW, but optional.
# --> Only test in default python3 flavor. gh#openSUSE/python-rpm-macros#66
# Python 2 packages on Leap are too outdated to test, either (stestr, subunit).
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module build}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module fixtures >= 3.0.0}
BuildRequires: %{python_module pbr = %{version}}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six >= 1.12.0}
BuildRequires: %{python_module stestr}
BuildRequires: %{python_module testresources >= 2.0.0}
BuildRequires: %{python_module testscenarios >= 0.4}
BuildRequires: %{python_module testtools >= 2.2.0}
BuildRequires: %{python_module virtualenv >= 20.0.3}
BuildRequires: %{python_module wheel >= 0.32.0}
BuildRequires: git-core
BuildRequires: gpg2
%endif
%python_subpackages
%description
PBR is a library to automatically do a bunch of standard
things you want in your setup.py without you having to repeat
them every time. It will set versions, process requirements
files and generate AUTHORS and ChangeLog file all from git
information.
%prep
%autosetup -p1 -n pbr-%{version}
sed -i '/coverage/d;/hacking/d' test-requirements.txt
%build
%pyproject_wheel
%if %{with test}
%check
export OS_TEST_TIMEOUT=60
exclude="parse_requirements|requirement_parsing|pep_517_support|"
exclude+="write_git_changelog|build_doc|cmd_builder_override|"
exclude+="extras_parsing|project_url_parsing|keywords_parsing"
stestr run -E "($exclude)"
%endif
%if !%{with test}
%install
%pyproject_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/pbr/tests
%python_clone -a %{buildroot}%{_bindir}/pbr
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative pbr
%postun
%python_uninstall_alternative pbr
%files %{python_files}
%license LICENSE
%doc AUTHORS ChangeLog CONTRIBUTING.rst README.rst
%python_alternative %{_bindir}/pbr
%{python_sitelib}/pbr
%{python_sitelib}/pbr-%{version}.dist-info
%endif
%changelog