Compare commits

..

No commits in common. "rawhide" and "f39" have entirely different histories.

5 changed files with 47 additions and 33 deletions

2
.gitignore vendored
View file

@ -8,5 +8,3 @@
/vit-2.3.0.tar.gz
/vit-2.3.1.tar.gz
/vit-2.3.2.tar.gz
/vit-2.3.3.tar.gz
/vit-2.3.4.tar.gz

41
346.patch Normal file
View file

@ -0,0 +1,41 @@
From 3fe8781f8423d6cd266af1c9a3f86ab9441e1f19 Mon Sep 17 00:00:00 2001
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
Date: Sun, 17 Sep 2023 15:38:18 +0100
Subject: [PATCH] fix(py3.12): `SafeConfigParser` -> `ConfigParser`
`SafeConfigParser` was deprecated in 3.2 and has been removed.
Reference:
https://docs.python.org/3.12/whatsnew/3.12.html#configparser
---
vit/config_parser.py | 2 +-
vit/keybinding_parser.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vit/config_parser.py b/vit/config_parser.py
index dcc3afc..6e05969 100644
--- a/vit/config_parser.py
+++ b/vit/config_parser.py
@@ -100,7 +100,7 @@
class ConfigParser:
def __init__(self, loader):
self.loader = loader
- self.config = configparser.SafeConfigParser()
+ self.config = configparser.ConfigParser()
self.config.optionxform = str
self.user_config_dir = self.loader.user_config_dir
self.user_config_filepath = '%s/%s' % (self.user_config_dir, VIT_CONFIG_FILE)
diff --git a/vit/keybinding_parser.py b/vit/keybinding_parser.py
index a0c36d0..7a0c857 100644
--- a/vit/keybinding_parser.py
+++ b/vit/keybinding_parser.py
@@ -31,7 +31,7 @@ def __init__(self, loader, config, action_registry):
self.actions = self.action_registry.get_actions()
self.noop_action_name = self.action_registry.make_action_name(self.action_registry.noop_action_name)
self.default_keybinding_name = self.config.get('vit', 'default_keybindings')
- self.default_keybindings = configparser.SafeConfigParser()
+ self.default_keybindings = configparser.ConfigParser()
self.default_keybindings.optionxform=str
self.sections = DEFAULT_KEYBINDINGS_SECTIONS
self.keybindings = {}

View file

@ -1,3 +0,0 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.15.1.post1.dev4+g9380a86a0.

View file

@ -1 +1 @@
SHA512 (vit-2.3.4.tar.gz) = 76682a39dad16f2921f16066d1ab0e4f7253b545a78bf357716895e1118f8dfba8dfad7d125f33f952f754238afe3fee54f76375d18e80a6b9b8e7c0fba05325
SHA512 (vit-2.3.2.tar.gz) = 029311eb0ae67b8bd0b6e41715c85a1883d6d11218f45f7637e3f6f049c6eb022858adc3c72455c3bd1d9de39638926026b8849b9ed7e0b04406362fda836817

View file

@ -1,12 +1,11 @@
Name: vit
%global forgeurl https://github.com/scottkosty/%{name}
Version: 2.3.4
Version: 2.3.2
Release: %autorelease
Summary: Visual Interactive Taskwarrior full-screen terminal interface
%forgemeta
# spdx
License: MIT
URL: %forgeurl
Source0: %forgesource
@ -14,11 +13,8 @@ Source0: %forgesource
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: help2man
# use the newest task release
BuildRequires: (task >= 3 or task2)
# either of these will do, depends on the user
Requires: (task >= 3 or task2)
BuildRequires: task
Requires: task
%{?python_provide:%python_provide python3-vit}
@ -54,7 +50,7 @@ find vit/ -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {}
%pyproject_save_files vit
# Install bashcompletion
install -m 0644 -p -D -T scripts/bash/%{name}.bash_completion $RPM_BUILD_ROOT/%{bash_completions_dir}/vit
install -m 0644 -p -D -t $RPM_BUILD_ROOT/%{_datadir}/bash-completion/completions/vit/ scripts/bash/%{name}.bash_completion
# generate man pages
for binary in "vit"
@ -67,29 +63,11 @@ done
%check
LC_ALL=C PYTHONPATH=. %{__python3} -m unittest
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
%pretrans -p <lua>
path = "%{bash_completions_dir}/vit"
st = posix.stat(path)
if st and st.type == "directory" then
status = os.rename(path, path .. ".rpmmoved")
if not status then
suffix = 0
while not status do
suffix = suffix + 1
status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
end
os.rename(path, path .. ".rpmmoved")
end
end
%files -f %{pyproject_files}
%doc README.md CUSTOMIZE.md COLOR.md DEVELOPMENT.md UPGRADE.md
%{_bindir}/%{name}
%{bash_completions_dir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
%{_mandir}/man1/vit*
%ghost %{bash_completions_dir}/%{name}.rpmmoved
%changelog
%autochangelog