From 5f92413e6e0f58223b29a254ca05e0bbb4c66230d4eb7345ca771a1ed72b1fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 28 Jan 2025 10:18:59 +0000 Subject: [PATCH] - 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blurb?expand=0&rev=12 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + blurb-1.1.0.tar.gz | 3 ++ blurb-1.3.0.tar.gz | 3 ++ blurb-2.0.0.tar.gz | 3 ++ python-blurb.changes | 65 +++++++++++++++++++++++++++++++++++++ python-blurb.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 174 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 blurb-1.1.0.tar.gz create mode 100644 blurb-1.3.0.tar.gz create mode 100644 blurb-2.0.0.tar.gz create mode 100644 python-blurb.changes create mode 100644 python-blurb.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/blurb-1.1.0.tar.gz b/blurb-1.1.0.tar.gz new file mode 100644 index 0000000..895a411 --- /dev/null +++ b/blurb-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34202b490738c8116066b1cb9bb3f007846710f067b8b023cff968abdf9accac +size 25064 diff --git a/blurb-1.3.0.tar.gz b/blurb-1.3.0.tar.gz new file mode 100644 index 0000000..6c3736b --- /dev/null +++ b/blurb-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6dbfa3ead81fbe42ca929dfc5efc539bb78f7daaff461b6c56a89c617c7bc439 +size 23864 diff --git a/blurb-2.0.0.tar.gz b/blurb-2.0.0.tar.gz new file mode 100644 index 0000000..83008dc --- /dev/null +++ b/blurb-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c78d8114294225a4f7a2eabba6e05d36a6a50e45ba9f5a41afabc198350038e0 +size 24666 diff --git a/python-blurb.changes b/python-blurb.changes new file mode 100644 index 0000000..6f53dda --- /dev/null +++ b/python-blurb.changes @@ -0,0 +1,65 @@ +------------------------------------------------------------------- +Mon Jan 27 13:55:01 UTC 2025 - Nico Krapp + +- 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 + +- 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 + +- build for python3 module on SLE15 + +------------------------------------------------------------------- +Fri May 20 15:26:45 UTC 2022 - Matej Cepl + +- 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-" 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 + +- Initial build + + Version 1.0.7 diff --git a/python-blurb.spec b/python-blurb.spec new file mode 100644 index 0000000..2d3e559 --- /dev/null +++ b/python-blurb.spec @@ -0,0 +1,76 @@ +# +# 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 +%{?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: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives +%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 + +%post +%python_install_alternative blurb + +%postun +%python_uninstall_alternative blurb + +%files %{python_files} +%doc README.md +%license LICENSE.txt +%python_alternative %{_bindir}/blurb +%{python_sitelib}/blurb +%{python_sitelib}/blurb-%{version}*-info + +%changelog