forked from pool/python-tableprint
- Add patch remove-future-requirement.patch, remove requirement of future.
- Switch to autosetup and pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tableprint?expand=0&rev=9
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 8 03:52:38 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch remove-future-requirement.patch, remove requirement of future.
|
||||||
|
- Switch to autosetup and pyproject macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 20 13:25:13 UTC 2022 - pgajdos@suse.com
|
Thu Oct 20 13:25:13 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-tableprint
|
# spec file for package python-tableprint
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,25 +17,23 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
|
||||||
%define skip_python36 1
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-tableprint
|
Name: python-tableprint
|
||||||
Version: 0.9.1
|
Version: 0.9.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pretty console printing of tabular data
|
Summary: Pretty console printing of tabular data
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/nirum/tableprint
|
URL: https://github.com/nirum/tableprint
|
||||||
Source: https://github.com/nirum/tableprint/archive/v%{version}.tar.gz#/tableprint-%{version}.tar.gz
|
Source: https://github.com/nirum/tableprint/archive/v%{version}.tar.gz#/tableprint-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module future}
|
# PATCH-FIX-UPSTREAM gh#nirum/tableprint#24
|
||||||
|
Patch0: remove-future-requirement.patch
|
||||||
BuildRequires: %{python_module pandas}
|
BuildRequires: %{python_module pandas}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wcwidth}
|
BuildRequires: %{python_module wcwidth}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-future
|
|
||||||
Requires: python-wcwidth
|
Requires: python-wcwidth
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -47,13 +45,13 @@ Unlike other modules, you can print single rows of data at a time
|
|||||||
(useful for printing ongoing computation results).
|
(useful for printing ongoing computation results).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n tableprint-%{version}
|
%autosetup -p1 -n tableprint-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -63,6 +61,6 @@ Unlike other modules, you can print single rows of data at a time
|
|||||||
%license License.md
|
%license License.md
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitelib}/tableprint
|
%{python_sitelib}/tableprint
|
||||||
%{python_sitelib}/tableprint*egg-info
|
%{python_sitelib}/tableprint-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
39
remove-future-requirement.patch
Normal file
39
remove-future-requirement.patch
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
From f546dbab758defb2eb9bd8fc2184ee8a260d705b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Steve Kowalik <steven@wedontsleep.org>
|
||||||
|
Date: Fri, 8 Sep 2023 13:49:33 +1000
|
||||||
|
Subject: [PATCH] Remove future from install_requires
|
||||||
|
|
||||||
|
The future module is not used, so remove it from install_requires. I've
|
||||||
|
also cleaned up the readme, dropping it and six.
|
||||||
|
---
|
||||||
|
README.md | 3 +--
|
||||||
|
setup.py | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/README.md b/README.md
|
||||||
|
index 42f6191..abad06d 100644
|
||||||
|
--- a/README.md
|
||||||
|
+++ b/README.md
|
||||||
|
@@ -67,8 +67,7 @@ Hosted at Read The Docs: [tableprint.readthedocs.org](http://tableprint.readthed
|
||||||
|
## 📦 Dependencies
|
||||||
|
|
||||||
|
- Python 3.6+
|
||||||
|
-- [future](https://pypi.org/project/future/)
|
||||||
|
-- [six](https://pypi.org/project/six/)
|
||||||
|
+- [wcwidth](https://pypi.org/project/wcwidth/)
|
||||||
|
|
||||||
|
## :heart: Contributors
|
||||||
|
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index a533f99..814d138 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -56,7 +56,7 @@
|
||||||
|
# project is installed. For an analysis of "install_requires" vs pip's
|
||||||
|
# requirements files see:
|
||||||
|
# https://packaging.python.org/en/latest/requirements.html
|
||||||
|
- install_requires=['future', 'wcwidth'],
|
||||||
|
+ install_requires=['wcwidth'],
|
||||||
|
|
||||||
|
# List additional groups of dependencies here (e.g. development dependencies).
|
||||||
|
# You can install these using the following syntax, for example:
|
Reference in New Issue
Block a user