Skip to content

Commit 89a4954

Browse files
committed
fix(jira): change search_issues() to extended_search_issues(), drop py3.9
- also change dep for jira>=3.10.5 - drop python 3.9, bump jira>=3.10.0 Fixes #1124 Fixes: #1124
1 parent 07d1d7e commit 89a4954

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/bugwarrior.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
timeout-minutes: 5
1111
strategy:
1212
matrix:
13-
python-version: [3.9, "3.10", 3.11]
13+
python-version: ["3.10", 3.11]
1414
jira-version: [1.0.10, 2.0.0]
1515
steps:
1616
- name: Checkout code
@@ -46,7 +46,7 @@ jobs:
4646
# Fragile way to only run codecov once.
4747
# See https://github.com/codecov/codecov-action/issues/40.
4848
if: |
49-
matrix.python-version == 3.9 &&
49+
matrix.python-version == 3.10 &&
5050
matrix.jira-version == '2.0.0'
5151
bugwarrior-multiarch-test:
5252
runs-on: ubuntu-latest

bugwarrior/services/jira.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def annotations(self, issue, issue_obj):
434434
)
435435

436436
def issues(self):
437-
cases = self.jira.search_issues(self.query, maxResults=False)
437+
cases = self.jira.extended_search_issues(self.query, maxResults=False)
438438

439439
for case in cases:
440440
issue = self.get_issue_for_record(

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "bugwarrior"
33
version = "2.0.0-alpha"
44
description = "a command line utility for updating your local taskwarrior database from your forge issue trackers"
55
readme = "bugwarrior/README.rst"
6-
requires-python = ">3.9,<4"
6+
requires-python = ">=3.10,<4"
77
license = "GPL-3.0-or-later"
88
license-files = ["LICENSE.txt"]
99
keywords=["task", "taskwarrior", "todo", "github"]
@@ -33,7 +33,7 @@ bts = ["python-debianbts>=2.6.1"]
3333
bugzilla = ["python-bugzilla>=2.0.0"]
3434
gmail = ["google-api-python-client", "google-auth-oauthlib"]
3535
ini2toml = ["ini2toml[full]"]
36-
jira = ["jira>=0.22"]
36+
jira = ["jira>=3.10.0"]
3737
kanboard = ["kanboard"]
3838
keyring = ["keyring"]
3939
phabricator = ["phabricator"]

tests/test_jira.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class FakeJiraClient:
1515
def __init__(self, arbitrary_record):
1616
self.arbitrary_record = arbitrary_record
1717

18-
def search_issues(self, *args, **kwargs):
18+
def extended_search_issues(self, *args, **kwargs):
1919
Case = namedtuple('Case', ['raw', 'key'])
2020
return [Case(self.arbitrary_record, self.arbitrary_record['key'])]
2121

0 commit comments

Comments
 (0)