commit df42f5280fa451ba29078e3d85601030b2a737c3e702af0586e936162f27931f Author: Nico Krapp Date: Fri May 16 13:36:06 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-columnize?expand=0&rev=9 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/columnize-0.3.11.tar.gz b/columnize-0.3.11.tar.gz new file mode 100644 index 0000000..4fe57fc --- /dev/null +++ b/columnize-0.3.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a631b863b310a6c1457629b7bf32a3777ea5a407f8985311ce8c24c31d1d8bb2 +size 18776 diff --git a/python-columnize.changes b/python-columnize.changes new file mode 100644 index 0000000..2b4473a --- /dev/null +++ b/python-columnize.changes @@ -0,0 +1,55 @@ +------------------------------------------------------------------- +Fri May 16 10:02:04 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Sat Mar 12 09:14:09 UTC 2022 - Matej Cepl + +- Update to 0.3.11: + - store source-code module in a directory + - black files + - use pytest + - use __version__ for version number + - start using github workflows + - Bundle tests into tarball +- Remove upstreamed patches: + - drop-nose-requirement.patch + - python-columnize-no-mock.patch + - test_columnize.py + +------------------------------------------------------------------- +Tue Mar 8 10:13:54 UTC 2022 - Matej Cepl + +- Rearrange and reapply patches. + +------------------------------------------------------------------- +Tue Mar 8 06:50:19 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build +- added patches + fix https://github.com/rocky/pycolumnize/issues/28 + + python-columnize-no-mock.patch + +------------------------------------------------------------------- +Sat Feb 5 17:08:57 UTC 2022 - Atri Bhattacharya + +- Include test file missed from being included in source tarball + and enable tests using pytest; additional BuildRequires for + tests: python-pytest, python-mock. + +------------------------------------------------------------------- +Sun Jan 30 00:42:44 UTC 2022 - Atri Bhattacharya + +- Update to version 0.3.10: + * Make compatible with Python version 2.4..3.8 now. + * Use TideLift security and make compliant. +- Add drop-nose-requirement.patch -- Drop requirement on outdated + nose; we do not run tests anyway. +- Update License to MIT in keeping with upstream. +- More fine-grained file list. + +------------------------------------------------------------------- +Sun Jan 12 06:05:54 AM UTC 2020 - John Vandenberg + +- Initial spec for v0.3.9 diff --git a/python-columnize.spec b/python-columnize.spec new file mode 100644 index 0000000..97f5779 --- /dev/null +++ b/python-columnize.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-columnize +# +# 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 columnize +Name: python-columnize +Version: 0.3.11 +Release: 0 +Summary: Format a simple (i.e. not nested) list into aligned columns +License: MIT +Group: Development/Languages/Python +URL: https://github.com/rocky/pycolumnize +Source0: https://files.pythonhosted.org/packages/source/c/columnize/columnize-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION For tests +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Format a simple (i.e. not nested) list into aligned columns. + +%prep +%autosetup -p1 -n columnize-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc NEWS.md README.rst +%license LICENSE +%{python_sitelib}/%{modname} +%{python_sitelib}/%{modname}-%{version}*-info/ + +%changelog