Skip to content

Commit 9f6e580

Browse files
authored
Merge pull request #199 from bpandola/update-supported-python-versions
Update Supported Python Versions
2 parents 2e281b9 + 8668e46 commit 9f6e580

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
max-parallel: 1
1111
matrix:
12-
python-version: ["3.7", "3.8", "3.9", "3.10"]
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1313

1414
steps:
1515
- uses: actions/checkout@v1

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Supported versions
1717
- Starting version ``1.11.0``, versions older than python ``3.6.0`` will not be supported anymore. This late version was released by the end 2016.
1818
For those that are still using python 2.7, it won't be supported by the end of 2020 and all library shall stop supporting it.
1919
- Starting version ``1.25.0``, versions older than python ``3.7.0`` will not be supported anymore.
20+
- Starting version ``1.36.0``, versions older than python ``3.8.0`` will not be supported anymore.
2021

2122
See `official documentation`_.
2223

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
black==22.12.0
22
flake8==5.0.4
3+
setuptools; python_version >= '3.12'

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,17 @@ def run(self):
6969
description="A client library for CloudFoundry",
7070
long_description=open("README.rst").read(),
7171
url="http://github.com/antechrestos/cf-python-client",
72+
python_requires=">=3.8",
7273
classifiers=[
7374
"Programming Language :: Python",
7475
"Natural Language :: English",
7576
"Operating System :: OS Independent",
7677
"Programming Language :: Python :: 3",
77-
"Programming Language :: Python :: 3.7",
7878
"Programming Language :: Python :: 3.8",
7979
"Programming Language :: Python :: 3.9",
8080
"Programming Language :: Python :: 3.10",
81+
"Programming Language :: Python :: 3.11",
82+
"Programming Language :: Python :: 3.12",
8183
"Topic :: Communications",
8284
],
8385
entry_points={

test/operations/push/test_push.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_split_route_without_path(self):
4141

4242
def test_to_host_should_remove_unwanted_characters(self):
4343
host = PushOperation._to_host("idzone-3.0.7-rec-tb1_bobby")
44-
self.assertEquals("idzone-307-rec-tb1-bobby", host)
44+
self.assertEqual("idzone-307-rec-tb1-bobby", host)
4545

4646
@patch.object(
4747
sys,

test/v3/test_apps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_restart(self):
8181

8282
app = self.client.v3.apps.restart("app_id")
8383
self.assertIsInstance(app, JsonObject)
84-
self.assertEquals("my_app", app["name"])
84+
self.assertEqual("my_app", app["name"])
8585

8686
def test_remove(self):
8787
self.client.delete.return_value = self.mock_response("/v3/apps/app_id", HTTPStatus.NO_CONTENT, None)
@@ -94,15 +94,15 @@ def test_get_env(self):
9494
)
9595
env = self.client.v3.apps.get_env("app_id")
9696
self.assertIsInstance(env, JsonObject)
97-
self.assertEquals(env["application_env_json"]["VCAP_APPLICATION"]["limits"]["fds"], 16384)
97+
self.assertEqual(env["application_env_json"]["VCAP_APPLICATION"]["limits"]["fds"], 16384)
9898

9999
def test_get_routes(self):
100100
self.client.get.return_value = self.mock_response(
101101
"/v3/apps/app_id/routes", HTTPStatus.OK, None, "v3", "apps", "GET_{id}_routes_response.json"
102102
)
103103
routes = self.client.v3.apps.get_routes("app_id")
104104
self.assertIsInstance(routes, JsonObject)
105-
self.assertEquals(routes["resources"][0]["destinations"][0]["guid"], "385bf117-17f5-4689-8c5c-08c6cc821fed")
105+
self.assertEqual(routes["resources"][0]["destinations"][0]["guid"], "385bf117-17f5-4689-8c5c-08c6cc821fed")
106106

107107
def test_get_include_space_and_org(self):
108108
self.client.get.return_value = self.mock_response(

0 commit comments

Comments
 (0)