From af2e4c62c059c0c33c842829a8be2b362d9dc9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Tue, 6 Aug 2024 11:03:34 +0200 Subject: [PATCH] Drop the python-hatch-vcs dependency --- 0001-Drop-depedency-on-hatch-vcs.patch | 54 ++++++++++++++++++++++++++ python-prettytable.spec | 6 ++- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 0001-Drop-depedency-on-hatch-vcs.patch diff --git a/0001-Drop-depedency-on-hatch-vcs.patch b/0001-Drop-depedency-on-hatch-vcs.patch new file mode 100644 index 0000000..b54c808 --- /dev/null +++ b/0001-Drop-depedency-on-hatch-vcs.patch @@ -0,0 +1,54 @@ +From c34f3d01eb258ca6f97fc72d7bf8162aa40b4cab Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Budai?= +Date: Tue, 6 Aug 2024 11:00:39 +0200 +Subject: [PATCH] Drop depedency on hatch-vcs + +We want to remove it from EL10, we don't need automatic versions there. +--- + pyproject.toml | 12 +----------- + 1 file changed, 1 insertion(+), 11 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 410c5de..d7c3cb0 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,12 +1,12 @@ + [build-system] + build-backend = "hatchling.build" + requires = [ +- "hatch-vcs", + "hatchling", + ] + + [project] + name = "prettytable" ++version = "3.6.0" + description = "A simple Python library for easily displaying tabular data in a visually appealing ASCII table format" + readme = "README.md" + license = {text = "BSD (3 clause)"} +@@ -17,9 +17,6 @@ dependencies = [ + 'importlib-metadata; python_version < "3.8"', + "wcwidth", + ] +-dynamic = [ +- "version", +-] + classifiers = [ + "License :: OSI Approved :: BSD License", + "Programming Language :: Python", +@@ -46,12 +43,5 @@ tests = [ + Homepage = "https://github.com/jazzband/prettytable" + Source = "https://github.com/jazzband/prettytable" + +- +-[tool.hatch] +-version.source = "vcs" +- +-[tool.hatch.version.raw-options] +-local_scheme = "no-local-version" +- + [tool.isort] + profile = "black" +-- +2.45.2 + diff --git a/python-prettytable.spec b/python-prettytable.spec index f6a8347..c32361e 100644 --- a/python-prettytable.spec +++ b/python-prettytable.spec @@ -8,6 +8,7 @@ Summary: Python library to display tabular data in tables License: BSD-3-Clause URL: https://github.com/jazzband/prettytable Source0: %{pypi_source} +Patch0: 0001-Drop-depedency-on-hatch-vcs.patch BuildArch: noarch @@ -40,7 +41,7 @@ selection of which columns are to be printed, independent alignment of columns a row range. %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 sed -i -e '/^*!\//, 1d' src/prettytable/*.py %generate_buildrequires @@ -60,6 +61,9 @@ sed -i -e '/^*!\//, 1d' src/prettytable/*.py %doc README.md CHANGELOG.md %changelog +* Tue Aug 06 2024 Ondřej Budai - 3.6.0-9 +- Drop the python-hatch-vcs dependency + * Sat Mar 04 2023 Mikel Olasagasti Uranga - 3.6.0-1 - Update to upstream 3.6.0