From 253c7c4f2b8e6f18244483eadcca9144f3796916 Mon Sep 17 00:00:00 2001 From: nanos Date: Sun, 6 Aug 2023 09:45:33 +0100 Subject: [PATCH] Revert "print current version on startup" (#70) This reverts commit 213ef57abe9c6f6c052306c776739c72a9301f19. --- find_posts.py | 12 +----------- requirements.txt | 2 -- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/find_posts.py b/find_posts.py index 0a8ad0b..8b9041b 100644 --- a/find_posts.py +++ b/find_posts.py @@ -12,7 +12,6 @@ import requests import time import argparse import uuid -import git import defusedxml.ElementTree as ET argparser=argparse.ArgumentParser() @@ -1247,16 +1246,7 @@ def set_server_apis(server): if __name__ == "__main__": start = datetime.now() - repo = git.Repo(os.getcwd()) - - tag = next((tag for tag in repo.tags if tag.commit == repo.head.commit), None) - - if(isinstance(tag, git.TagReference)) : - version = tag.name - else: - version = f"on commit {repo.head.commit.name_rev}" - - log(f"Starting FediFetcher {version}") + log(f"Starting FediFetcher") arguments = argparser.parse_args() diff --git a/requirements.txt b/requirements.txt index a938cc5..b58be84 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,6 @@ certifi==2022.12.7 charset-normalizer==3.0.1 docutils==0.19 -gitdb==4.0.10 -GitPython==3.1.31 idna==3.4 python-dateutil==2.8.2 requests==2.28.2