From 1e0d7fdd9f07a5ca70ae8d31728a4ec2f7a184172bb64b8d3474d2dff11d4566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 7 Feb 2025 12:50:11 +0000 Subject: [PATCH] - Update to 2.7.1 * pre-commit: Bump versions * Don't decode error response bodies - Switch package to modern Python Stack on SLE-15 * Use Python 3.11 on SLE-15 by default * Drop support for older Python versions - Switch build system from setuptools to pyproject.toml * Add python-pip and python-wheel to BuildRequires * Replace %python_build with %pyproject_wheel * Replace %python_install with %pyproject_install * Update name for dist directory in %files section OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-git-pw?expand=0&rev=25 --- .gitattributes | 23 +++++ .gitignore | 1 + git-pw-2.6.0.tar.gz | 3 + git_pw-2.7.0.tar.gz | 3 + git_pw-2.7.1.tar.gz | 3 + python-git-pw.changes | 191 ++++++++++++++++++++++++++++++++++++++++++ python-git-pw.spec | 86 +++++++++++++++++++ 7 files changed, 310 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 git-pw-2.6.0.tar.gz create mode 100644 git_pw-2.7.0.tar.gz create mode 100644 git_pw-2.7.1.tar.gz create mode 100644 python-git-pw.changes create mode 100644 python-git-pw.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/git-pw-2.6.0.tar.gz b/git-pw-2.6.0.tar.gz new file mode 100644 index 0000000..02ef21d --- /dev/null +++ b/git-pw-2.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e118e31bbe259ed9ae540d627cc563a6ece553d02aed11b1a92bbac408a0da0e +size 43835 diff --git a/git_pw-2.7.0.tar.gz b/git_pw-2.7.0.tar.gz new file mode 100644 index 0000000..8c18bb7 --- /dev/null +++ b/git_pw-2.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99cb0b4a603386127c8205358d9780428a0468f8b1cb73ace804a5a466a28ef4 +size 45461 diff --git a/git_pw-2.7.1.tar.gz b/git_pw-2.7.1.tar.gz new file mode 100644 index 0000000..3dded0e --- /dev/null +++ b/git_pw-2.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f69c57aafd13d21d6fa604dff680c4f9113a8f31bf3f65dd663bad0e1839b0e1 +size 45779 diff --git a/python-git-pw.changes b/python-git-pw.changes new file mode 100644 index 0000000..0a1dc5d --- /dev/null +++ b/python-git-pw.changes @@ -0,0 +1,191 @@ +------------------------------------------------------------------- +Fri Feb 7 12:00:54 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 2.7.1 + * pre-commit: Bump versions + * Don't decode error response bodies +- Switch package to modern Python Stack on SLE-15 + * Use Python 3.11 on SLE-15 by default + * Drop support for older Python versions +- Switch build system from setuptools to pyproject.toml + * Add python-pip and python-wheel to BuildRequires + * Replace %python_build with %pyproject_wheel + * Replace %python_install with %pyproject_install + * Update name for dist directory in %files section + +------------------------------------------------------------------- +Wed Nov 13 14:30:51 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 2.7.0 + * Python 3.13 is now officially supported and tested + * Python 3.8 is no longer supported +- Adjust upstream source name in spec file + +------------------------------------------------------------------- +Sat Jan 20 14:05:25 UTC 2024 - Dirk Müller + +- update to 2.6.0: + * Use older Python version for click-man + * Add support for Python 3.12, drop Python 3.7 + * Replace use of pkg\_resources + * Revert "docs: Switch to furo theme" + * Add pyproject.toml file + * docs: Switch to furo theme + * readthedocs: Also install git-pw + * readthedocs: Specify requirements + * Specify OS, tools + * Add readthedocs config file + +------------------------------------------------------------------- +Thu Dec 7 23:02:59 UTC 2023 - Dirk Müller + +- update to 2.5.0: + * Add release note for --since, --before opts + * patch, series: Add support for '--since' and '--before' + * utils: Correct type + * Fix black issues + * CI: Switch to pypa/gh-action-pypi-publish@release/v1 + +------------------------------------------------------------------- +Mon Apr 3 08:17:21 UTC 2023 - pgajdos@suse.com + +- python-six is not required + +------------------------------------------------------------------- +Wed Dec 14 08:47:02 UTC 2022 - Daniel Garcia + +- Remove python_module macro definition + +------------------------------------------------------------------- +Tue Dec 13 15:29:30 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 2.4.0 + * Replace implicit optional typedefs + +------------------------------------------------------------------- +Fri May 6 10:28:55 UTC 2022 - pgajdos@suse.com + +- version update to 2.3.0 + 2.3.0 + ----- + * Release 2.3.0 + * Drop Python 3.5, 3.6 support, add 3.10 + * Create git-blame-ignore-revs file + * Blackify code + * requirements: Uncap docs requirements + * CI: Add missing anchors + 2.2.3 + ----- + * Release 2.2.3 + * CI: Generate release + * rpm: Add README for RPM specs + * requirements: Uncap test requirements + * rpm: Yet more spec file changes + 2.2.2 + ----- + * Release 2.2.2 + * Add missing runtime dependencies + * rpm: Modify changelog + 2.2.1 + ----- + * Release 2.2.1 + * requirements: Remove all upper constraint caps + * rpm: Add pytest as dependency + 2.2.0 + ----- + * Release 2.2.0 + * rpm: Spec updates + * Replace mock with unittest.mock + * Add missing PyYAML type stubs package + * utils: Add support for 'yaml' formatter + * trivial: Style fixes + * README: Update docs for Patchwork 3.0 + * README: Use python3 variants of packages + * CI: Stop publishing to test.pypi.org + 2.1.2 + ----- + * Release 2.1.2 + * requirements: Add support for click 8.x + * tests: Unset PAGER env when testing fallback + * docs: Update doc name + * utils: Convert prints to logging calls + * utils: Log subprocess calls + 2.1.1 + ----- + * man: Update man pages + 2.1.0 + ----- + * Add release note for new 'bundle download' options + * Fix the setup.py warning + * Allow downloading of series patches to separate files + * utils: Remove unnecessary future import + * README: Re-add build status + * Remove references to Travis + * Switch to GitHub Actions + * tox: Add missing 'typing' stubs + * tox: Fix default Python versions + * Convert to Python 3-style type hints + * Add release note for read-only auth change + * Do not require authentication for GET requests +- python-mock is not required for build + +------------------------------------------------------------------- +Wed Jul 29 06:47:47 UTC 2020 - Steve Kowalik + +- Update to 2.0.0: + * Drop support for Python 2.7 + * trivial: Use names for options with multiple=True + * Add '--hash' option for 'git-pw patch list' + * rpm: Address review comments + * Add spec file + * Revert "docs: Increase support range for reno" + * travis: Add support for GitHub releases + * docs: Increase support range for reno + +------------------------------------------------------------------- +Wed Jun 24 04:27:25 UTC 2020 - Steve Kowalik + +- Update to 1.9.0: + * Adds support for Patchwork API v1.2 and introduces five new commands: + + bundle create + + bundle update + + bundle delete + + bundle add + + bundle remove + +------------------------------------------------------------------- +Tue Mar 31 16:43:11 UTC 2020 - Matej Cepl + +- Update to 1.8.1: fixing the bug we filed. + +------------------------------------------------------------------- +Tue Mar 31 14:54:17 UTC 2020 - Matej Cepl + +- Skip over failing UpdateTestCase.test_update_with_invalid_state test + (gh#getpatchwork/git-pw#53) +- Add Provides/Obsoletes to rename git-pw to python-git-pw package. +- Replace %python_only construct with proper alternatives. + +------------------------------------------------------------------- +Sun Mar 15 07:24:31 UTC 2020 - Tomáš Chvátal + +- Update to 1.8.0: + * no changelog +- Set out proper dependencies +- Fix build without python2 + +------------------------------------------------------------------- +Wed Nov 27 08:11:06 UTC 2019 - Johannes Thumshirn + +- Update to v1.7.0 + +------------------------------------------------------------------- +Sun Feb 10 10:11:46 UTC 2019 - John Vandenberg + +- Update to v1.5.1 + + Fix help text for --format to refer to pw.format + +------------------------------------------------------------------- +Wed Nov 28 10:10:51 UTC 2018 - jthumshirn@suse.com + +- Initial packaging for openSUSE diff --git a/python-git-pw.spec b/python-git-pw.spec new file mode 100644 index 0000000..3e1bd54 --- /dev/null +++ b/python-git-pw.spec @@ -0,0 +1,86 @@ +# +# spec file for package python-git-pw +# +# 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 modname git_pw +%{?sle15_python_module_pythons} +Name: python-git-pw +Version: 2.7.1 +Release: 0 +Summary: A tool for integrating Git with Patchwork +License: MIT +URL: https://github.com/getpatchwork/git-pw +Source: https://files.pythonhosted.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: %{python_module arrow >= 0.10} +BuildRequires: %{python_module click >= 6.0} +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pyaml >= 5.1} +BuildRequires: %{python_module pytest >= 3.0} +BuildRequires: %{python_module requests > 2.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module tabulate >= 0.8} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: git-core +BuildRequires: python-rpm-macros +Requires: git-core +Requires: python-arrow >= 0.10 +Requires: python-click >= 6.0 +Requires: python-pyaml >= 5.1 +Requires: python-requests > 2.0 +Requires: python-tabulate >= 0.8 +Provides: git-pw = %{version} +Obsoletes: git-pw < %{version} +Requires(post): update-alternatives +Requires(postun): update-alternatives +%python_subpackages + +%description +git-pw is a tool for integrating Git with Patchwork, the web-based patch +tracking system. + +%prep +%autosetup -p1 -n %{modname}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/git-pw +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LC_ALL=en_US.UTF-8 +%pytest + +%post +%python_install_alternative git-pw + +%postun +%python_uninstall_alternative git-pw + +%files %{python_files} +%license LICENSE +%doc README.rst +%python_alternative %{_bindir}/git-pw +%{python_sitelib}/git_pw +%{python_sitelib}/git_pw-%{version}.dist-info + +%changelog