15
0
forked from pool/python-blurb

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blurb?expand=0&rev=14
This commit is contained in:
2025-06-17 08:09:36 +00:00
committed by Git OBS Bridge
commit 8cc0176b27
7 changed files with 177 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
blurb-1.1.0.tar.gz Normal file
View File

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

3
blurb-1.3.0.tar.gz Normal file
View File

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

3
blurb-2.0.0.tar.gz Normal file
View File

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

70
python-blurb.changes Normal file
View File

@@ -0,0 +1,70 @@
-------------------------------------------------------------------
Tue Jun 17 08:09:17 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Jan 27 13:55:01 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Update to 2.0.0
* Move blurb test subcommand into test suite by @hugovk in #37
* Add support for Python 3.14 by @ezio-melotti in #40
* Validate gh-issue is int before checking range, and that gh-issue or bpo exists by @hugovk in #35
* Replace safe_mkdir(path) with os.makedirs(path, exist_ok=True) by @hugovk in #38
* Test version handling functions by @hugovk in #36
* Test textwrap_body, current_date and sortable_datetime by @hugovk in #42
* CI: Lint and test via uv by @hugovk in #32
-------------------------------------------------------------------
Wed Dec 11 10:16:15 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.3.0
* Add support for Python 3.13
* Drop support for Python 3.8
* Generate digital attestations for PyPI (PEP 740)
* Allow running blurb test from blurb-* directories
* Add `version` subcommand
* Generate `__version__` at build to avoid slow `importlib.metadata` import
- from version 1.2.1
* Fix `python3 -m blurb`.
* Undocument removed `blurb split`.
- from version 1.2.0
* Replace spaces with underscores in news directory.
* Drop support for Python 3.7.
* Remove `blurb split` command.
* Replace `gh-issue-NNNN:` with `gh-NNNN:` in the output.
* Accept GitHub issues numbered only 32426 or above.
* Improve error checking when parsing a Blurb.
* Loosen README check for CPython forks.
* Move code from `python/core-workflow` to own `python/blurb` repo.
* Deploy to PyPI via Trusted Publishers.
- Adjust file paths for sed invocation in %setup section
- Replace manual testsuite invocation with just %pytest
- Update BuildRequires from pyproject.toml
- Update file patterns in %files section
-------------------------------------------------------------------
Thu May 4 22:12:11 UTC 2023 - Dirk Müller <dmueller@suse.com>
- build for python3 module on SLE15
-------------------------------------------------------------------
Fri May 20 15:26:45 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Update to 1.1.0:
- Support GitHub Issues in addition to b.p.o
(bugs.python.org). If "gh-issue" is in the metadata, then the
filename will contain "gh-issue-<number>" instead of "bpo-".
-------------------------------------------------------------------
Tue May 18 07:07:22 UTC 2021 - pgajdos@suse.com
- version update to 1.0.8
* no upstream changelog (see github log)
- test package via %pytest macro
-------------------------------------------------------------------
Thu Apr 16 07:39:12 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Initial build
+ Version 1.0.7

74
python-blurb.spec Normal file
View File

@@ -0,0 +1,74 @@
#
# spec file for package python-blurb
#
# Copyright (c) 2025 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/
#
%define skip_python2 1
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-blurb
Version: 2.0.0
Release: 0
Summary: Command-line tool to manage CPython Misc/NEWS.d entries
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/python/core-workflow/tree/master/blurb
Source: https://files.pythonhosted.org/packages/source/b/blurb/blurb-%{version}.tar.gz
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyfakefs}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module time-machine}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
BuildArch: noarch
%python_subpackages
%description
Command-line tool to manage CPython Misc/NEWS.d entries.
%prep
%autosetup -p1 -n blurb-%{version}
sed -i '1{\,^#!%{_bindir}/env python,d}' src/blurb/blurb.py
chmod -x src/blurb/blurb.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/blurb
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%pre
%python_libalternatives_reset_alternative blurb
%files %{python_files}
%doc README.md
%license LICENSE.txt
%python_alternative %{_bindir}/blurb
%{python_sitelib}/blurb
%{python_sitelib}/blurb-%{version}*-info
%changelog