From 7ee4cf6567683985ba246c9b667acca1b80bb1dd8ab09b1723b1080825f3c80a Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 8 Oct 2024 07:56:17 +0000 Subject: [PATCH] - Force $LANG env to UTF-8 to fix tests for Leap 16.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autopage?expand=0&rev=17 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + autopage-0.5.2.tar.gz | 3 ++ python-autopage.changes | 71 +++++++++++++++++++++++++++++++++++++++++ python-autopage.spec | 67 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 165 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 autopage-0.5.2.tar.gz create mode 100644 python-autopage.changes create mode 100644 python-autopage.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/autopage-0.5.2.tar.gz b/autopage-0.5.2.tar.gz new file mode 100644 index 0000000..7a37738 --- /dev/null +++ b/autopage-0.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:826996d74c5aa9f4b6916195547312ac6384bac3810b8517063f293248257b72 +size 33031 diff --git a/python-autopage.changes b/python-autopage.changes new file mode 100644 index 0000000..31d4004 --- /dev/null +++ b/python-autopage.changes @@ -0,0 +1,71 @@ +------------------------------------------------------------------- +Tue Oct 8 07:22:31 UTC 2024 - Daniel Garcia + +- Force $LANG env to UTF-8 to fix tests for Leap 16.0 + +------------------------------------------------------------------- +Mon Feb 5 04:53:08 UTC 2024 - Steve Kowalik + +- Drop patch support-python-311.patch, no longer required. + +------------------------------------------------------------------- +Fri Nov 10 13:14:47 UTC 2023 - Dirk Müller + +- update to 0.5.2: + * Always return an integer error code from exit_code() + * Fix line buffering detection for TTYs on Illumos/Solaris + * Numerous improvements to the integration tests: + - Work correctly with less v633 + - Fix flaky tests + - Improve behaviour and debugging when tests fail + - Allow test runners to capture stdout of all child processes + * Update test dependencies to account for recent releases of + fixtures + * Test using a more recent version of mypy + * Run tests on Python 3.11 and 3.12 + main + +------------------------------------------------------------------- +Wed Jan 11 05:45:45 UTC 2023 - Steve Kowalik + +- Add patch support-python-311.patch: + * Support Python 3.11 changes. + +------------------------------------------------------------------- +Mon Nov 21 12:23:06 UTC 2022 - Daniel Garcia + +- Do not distribute tests with the package +- Build using %pyproject macros +- Remove python_module macro definition +- More specific python_sitelib in %files +- Remove duplicate files with %fdupes + +------------------------------------------------------------------- +Thu Aug 4 09:29:45 UTC 2022 - Otto Hollmann + +- Update to 0.5.1: + * integration tests: Increase timeout for subprocess to exit + +------------------------------------------------------------------- +Wed Feb 23 15:24:07 UTC 2022 - Dirk Müller + +- skip end-to-end test, they hang in OBS + +------------------------------------------------------------------- +Tue Feb 22 10:10:04 UTC 2022 - Dirk Müller + +- update to 0.5.0: + * Testing on Python 3.10. + * More (optional) strategies for selecting the pager command to use. + * Fully-automated integration testing. + * Support for type checking by consumers using PEP561. + +------------------------------------------------------------------- +Mon Nov 8 20:01:21 UTC 2021 - Dirk Müller + +- skip python2 build, it doesn't work anymore + +------------------------------------------------------------------- +Tue Oct 26 20:10:01 UTC 2021 - Dirk Müller + +- Initial package (0.4.0) diff --git a/python-autopage.spec b/python-autopage.spec new file mode 100644 index 0000000..797f248 --- /dev/null +++ b/python-autopage.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-autopage +# +# 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/ +# + + +Name: python-autopage +Version: 0.5.2 +Release: 0 +Summary: A library to provide automatic paging for console output +License: Apache-2.0 +URL: https://github.com/zaneb/autopage +Source: https://files.pythonhosted.org/packages/source/a/autopage/autopage-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module fixtures} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Autopage is a Python library to +automatically display terminal output from a program +in a pager (like `less`) + +%prep +%autosetup -p1 -n autopage-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +# Do not distribute tests with the package +%python_expand rm -rf %{buildroot}%{$python_sitelib}/autopage/tests + +%check +unset LESS +export LANG=en_US.UTF-8 +rm -v autopage/tests/test_end_to_end.py +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/autopage +%{python_sitelib}/autopage-%{version}.dist-info + +%changelog