Repository: hassaku63/pbl (language: python)

Issue:
Drop support for python version that is over end-of-life date
Drops End-of-Life annouced versions as of May 2021.

https://endoflife.date/python

It will drops;

- 2.x
- 3.1.x
- 3.2.x
- 3.3.x
- 3.4.x
- 3.5.x


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/jobs.yml b/.github/workflows/jobs.yml
index 0f24d32..29eb0ed 100644
--- a/.github/workflows/jobs.yml
+++ b/.github/workflows/jobs.yml
@@ -12,7 +12,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: [3.5, 3.6, 3.7, 3.8]
+        python-version: [3.6, 3.7, 3.8, 3.9]
     steps:
       # See: https://github.com/actions/checkout
       - name: Checkout
diff --git a/VERSION b/VERSION
index 341cf11..9325c3c 100644
--- a/VERSION
+++ b/VERSION
@@ -1,1 +1,1 @@
-0.2.0
\ No newline at end of file
+0.3.0
\ No newline at end of file
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 27acd3f..d96c163 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -2,5 +2,5 @@
 flake8==3.9.0
 tox==3.5.2
 nose==1.3.7
-httpretty==0.9.5
+httpretty==1.0.*
 coverage==4.5.1
\ No newline at end of file
diff --git a/requirements.txt b/requirements.txt
index b308807..3721565 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,2 +1,2 @@
 requests==2.20.0
-PyYAML==5.1
\ No newline at end of file
+PyYAML>=5.1
\ No newline at end of file
diff --git a/setup.py b/setup.py
index 13ff245..6f37050 100644
--- a/setup.py
+++ b/setup.py
@@ -28,16 +28,24 @@
     classifiers=[
         'Development Status :: 4 - Beta',
         'Programming Language :: Python',
+        'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9',
         'Natural Language :: Japanese'
     ],
     keywords='nulab backlog',
     url='https://github.com/hassaku63/pbl',
     scripts=[],
     packages=find_packages(exclude=['tests*']),
+    python_requires=">=3.6",
     tests_require=[
-        "httpretty==0.9.5",
+        "httpretty>=0.9.7",
         "tox==3.5.2",
         "nose==1.3.7",
         "coverage==4.5.1"
-    ]
+    ],
+    project_urls={
+        'Source': 'https://github.com/hassaku63/pbl',
+    }
 )
diff --git a/tox.ini b/tox.ini
index a43153a..5a22b9e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = py35, py36, py37, py38, flake8
+envlist = py36, py37, py38, py39, flake8
 
 skipsdist = True
 


Test patch:
diff --git a/tests/test_git.py b/tests/test_git.py
index 9aee353..a14c18a 100644
--- a/tests/test_git.py
+++ b/tests/test_git.py
@@ -9,7 +9,7 @@
 API_ENDPOINT = "https://{space}.backlog.jp/api/v2/{uri}"
 
 
-class TestProject(unittest.TestCase):
+class TestGit(unittest.TestCase):
     def setUp(self):
         self.conf = load_conf("./conf.default.yml")["backlog"]
         self.api = BacklogAPI(self.conf["space"], self.conf["api_key"])
@@ -60,7 +60,6 @@ def test_list_git_repositories(self):
             httpretty.GET,
             API_ENDPOINT.format(space=self.space, uri=_uri),
             body=json.dumps(expects),
-            match_querystring=True,
             status=200
         )
 
@@ -138,7 +137,6 @@ def test_list_pull_requests(self):
             httpretty.GET,
             API_ENDPOINT.format(space=self.space, uri=_uri),
             body=json.dumps(expects),
-            match_querystring=True,
             status=200
         )
 
@@ -330,7 +328,6 @@ def test_add_pull_request(self):
             httpretty.POST,
             API_ENDPOINT.format(space=self.space, uri=_uri),
             body=json.dumps(expects),
-            # match_querystring=True,
             status=200
         )
 
@@ -393,7 +390,6 @@ def test_add_pull_request_comment(self):
             httpretty.POST,
             API_ENDPOINT.format(space=self.space, uri=_uri),
             body=json.dumps(expects),
-            # match_querystring=True,
             status=200
         )
 
diff --git a/tests/test_project.py b/tests/test_project.py
index debb2f8..91a1f91 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -38,7 +38,6 @@ def test_list(self):
             httpretty.GET,
             API_ENDPOINT.format(space=self.space, uri=_uri),
             body=json.dumps(expects),
-            match_querystring=True,
             status=200
         )
 
diff --git a/tests/test_user.py b/tests/test_user.py
index c13ea77..dd11251 100644
--- a/tests/test_user.py
+++ b/tests/test_user.py
@@ -9,7 +9,7 @@
 API_ENDPOINT = "https://{space}.backlog.jp/api/v2/{uri}"
 
 
-class TestProject(unittest.TestCase):
+class TestUser(unittest.TestCase):
     def setUp(self):
         self.conf = load_conf("./conf.default.yml")["backlog"]
         self.api = BacklogAPI(self.conf["space"], self.conf["api_key"])
@@ -35,7 +35,6 @@ def test_list(self):
             httpretty.GET,
             API_ENDPOINT.format(space=self.space, uri=_uri),
             body=json.dumps(expects),
-            match_querystring=True,
             status=200
         )
 
@@ -61,7 +60,6 @@ def test_get(self):
             httpretty.GET,
             API_ENDPOINT.format(space=self.space, uri=_uri),
             body=json.dumps(expects),
-            match_querystring=True,
             status=200
         )
 
@@ -91,7 +89,6 @@ def test_add(self):
             httpretty.POST,
             API_ENDPOINT.format(space=self.space, uri=_uri),
             body=json.dumps(expects),
-            match_querystring=True,
             status=201
         )
 
@@ -127,7 +124,6 @@ def test_update(self):
             httpretty.PATCH,
             API_ENDPOINT.format(space=self.space, uri=_uri),
             body=json.dumps(expects),
-            match_querystring=True,
             status=200
         )
 
@@ -159,7 +155,6 @@ def test_delete(self):
             httpretty.DELETE,
             API_ENDPOINT.format(space=self.space, uri=_uri),
             body=json.dumps(expects),
-            match_querystring=True,
             status=200
         )