From 8a95d3d2d05ffbe0b06706f1aadcb15871434e84 Mon Sep 17 00:00:00 2001 From: Trenton Young Date: Sun, 16 Jun 2024 21:38:04 -0700 Subject: [PATCH 1/3] Found that missing line :facepalm: --- .github/workflows/todoon-issues-test.yml | 2 +- pyproject.toml | 3 +-- todo_or_not/__init__.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/todoon-issues-test.yml b/.github/workflows/todoon-issues-test.yml index 4f1e7eb..5e558d4 100644 --- a/.github/workflows/todoon-issues-test.yml +++ b/.github/workflows/todoon-issues-test.yml @@ -15,7 +15,7 @@ jobs: - name: Install UNSTABLE TODO-or-not from test.PyPi run: | python -m pip install --upgrade pip - python -m pip install -i https://test.pypi.org/simple/ todo-or-not - name: Generate GH Token for todoon app + python -m pip install -i https://test.pypi.org/simple/ todo-or-not - name: Generate GH Token for todoon app id: generate-token uses: actions/create-github-app-token@v1 diff --git a/pyproject.toml b/pyproject.toml index 27b0465..6efe01c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,6 @@ [tool.poetry] name = "todo-or-not" -version = "0.13.9" -description = "todoon integrates the TODOs in your codebase with your GitHub repository" +version = "0.13.10"description = "todoon integrates the TODOs in your codebase with your GitHub repository" authors = ["TrentonYo "] license = "GPL-3.0-only" readme = "README.md" diff --git a/todo_or_not/__init__.py b/todo_or_not/__init__.py index 9ff6896..497ff3a 100644 --- a/todo_or_not/__init__.py +++ b/todo_or_not/__init__.py @@ -7,7 +7,7 @@ # ##################################################### -__version__ = "0.13.9" +__version__ = "0.13.10" iso_string = "2024-06-16" version_date = datetime.date.fromisoformat(iso_string) From 8a2cc5e5d8f6b6df4a57c9a79b84ccb564b226f9 Mon Sep 17 00:00:00 2001 From: Trenton Young Date: Sun, 16 Jun 2024 21:45:51 -0700 Subject: [PATCH 2/3] Manually installing requirements for test env, hopefully overcoming test pypi limitations --- .github/workflows/todoon-issues-test.yml | 6 +++++- pyproject.toml | 3 ++- todo_or_not/__init__.py | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/todoon-issues-test.yml b/.github/workflows/todoon-issues-test.yml index 5e558d4..f7bf17b 100644 --- a/.github/workflows/todoon-issues-test.yml +++ b/.github/workflows/todoon-issues-test.yml @@ -15,7 +15,11 @@ jobs: - name: Install UNSTABLE TODO-or-not from test.PyPi run: | python -m pip install --upgrade pip - python -m pip install -i https://test.pypi.org/simple/ todo-or-not + python -m pip install typer==0.12.3 + python -m pip install typing-extensions==4.10.0 + python -m pip install tqdm==4.66.4 + python -m pip install ply==3.11 + python -m pip install -i https://test.pypi.org/simple/ todo-or-not --no-deps - name: Generate GH Token for todoon app id: generate-token uses: actions/create-github-app-token@v1 diff --git a/pyproject.toml b/pyproject.toml index 6efe01c..189c5d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,7 @@ [tool.poetry] name = "todo-or-not" -version = "0.13.10"description = "todoon integrates the TODOs in your codebase with your GitHub repository" +version = "0.13.11" +description = "todoon integrates the TODOs in your codebase with your GitHub repository" authors = ["TrentonYo "] license = "GPL-3.0-only" readme = "README.md" diff --git a/todo_or_not/__init__.py b/todo_or_not/__init__.py index 497ff3a..51b895e 100644 --- a/todo_or_not/__init__.py +++ b/todo_or_not/__init__.py @@ -1,5 +1,5 @@ import datetime - + ##################################################### # VITAL: SEE /scripts/_update_versions.py !!! # @@ -7,7 +7,7 @@ # ##################################################### -__version__ = "0.13.10" +__version__ = "0.13.11" iso_string = "2024-06-16" version_date = datetime.date.fromisoformat(iso_string) From 136eaf46f1a581cd606c9a7f7062b53995582e3c Mon Sep 17 00:00:00 2001 From: Trenton Young Date: Sun, 16 Jun 2024 21:49:45 -0700 Subject: [PATCH 3/3] Never actually exported to the github env file, fixed that --- pyproject.toml | 2 +- todo_or_not/__init__.py | 4 ++-- todo_or_not/todo_check.py | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 189c5d0..df17b2c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "todo-or-not" -version = "0.13.11" +version = "0.13.12" description = "todoon integrates the TODOs in your codebase with your GitHub repository" authors = ["TrentonYo "] license = "GPL-3.0-only" diff --git a/todo_or_not/__init__.py b/todo_or_not/__init__.py index 51b895e..1b8a6bd 100644 --- a/todo_or_not/__init__.py +++ b/todo_or_not/__init__.py @@ -1,5 +1,5 @@ import datetime - + ##################################################### # VITAL: SEE /scripts/_update_versions.py !!! # @@ -7,7 +7,7 @@ # ##################################################### -__version__ = "0.13.11" +__version__ = "0.13.12" iso_string = "2024-06-16" version_date = datetime.date.fromisoformat(iso_string) diff --git a/todo_or_not/todo_check.py b/todo_or_not/todo_check.py index 03886d6..b572e70 100644 --- a/todo_or_not/todo_check.py +++ b/todo_or_not/todo_check.py @@ -647,15 +647,15 @@ def todoon( number_of_closed_issues ) - os.system(f'TODOON_STATUS={"finished"} >> $GITHUB_ENV') - os.system(f'TODOON_PROGRESS={"100.0"} >> $GITHUB_ENV') - os.system(f'TODOON_FILES_SCANNED={str(number_of_files_scanned)} >> $GITHUB_ENV') - os.system(f'TODOON_TODOS_FOUND={str(number_of_todo)} >> $GITHUB_ENV') - os.system(f'TODOON_FIXMES_FOUND={str(number_of_fixme)} >> $GITHUB_ENV') - os.system(f'TODOON_ENCODING_ERRORS={str(number_of_encoding_failures)} >> $GITHUB_ENV') - os.system(f'TODOON_ISSUES_GENERATED={str(number_of_issues)} >> $GITHUB_ENV') - os.system(f'TODOON_DUPLICATE_ISSUES_AVOIDED={str(number_of_duplicate_issues_avoided)} >> $GITHUB_ENV') - os.system(f'TODOON_DUPLICATE_CLOSED_ISSUES={str(number_of_closed_issues)} >> $GITHUB_ENV') + os.system(f'echo TODOON_STATUS={"finished"} >> $GITHUB_ENV') + os.system(f'echo TODOON_PROGRESS={"100.0"} >> $GITHUB_ENV') + os.system(f'echo TODOON_FILES_SCANNED={str(number_of_files_scanned)} >> $GITHUB_ENV') + os.system(f'echo TODOON_TODOS_FOUND={str(number_of_todo)} >> $GITHUB_ENV') + os.system(f'echo TODOON_FIXMES_FOUND={str(number_of_fixme)} >> $GITHUB_ENV') + os.system(f'echo TODOON_ENCODING_ERRORS={str(number_of_encoding_failures)} >> $GITHUB_ENV') + os.system(f'echo TODOON_ISSUES_GENERATED={str(number_of_issues)} >> $GITHUB_ENV') + os.system(f'echo TODOON_DUPLICATE_ISSUES_AVOIDED={str(number_of_duplicate_issues_avoided)} >> $GITHUB_ENV') + os.system(f'echo TODOON_DUPLICATE_CLOSED_ISSUES={str(number_of_closed_issues)} >> $GITHUB_ENV') util.print_wrap(log_level=log_level, msg_level=util.LOG_LEVEL_SUMMARY_ONLY, msg=summary, file=sys.stderr)