Skip to content

Commit c428ddb

Browse files
authored
Add support for Python 3.11 (#611)
* Add support for Python 3.11 Signed-off-by: Thomas Druez <tdruez@nexb.com>
1 parent f630996 commit c428ddb

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
max-parallel: 4
3333
matrix:
34-
python-version: ["3.8", "3.9", "3.10"]
34+
python-version: ["3.8", "3.9", "3.10", "3.11"]
3535

3636
steps:
3737
- name: Checkout code

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Changelog
44
v33.0.0 (unreleased)
55
--------------------
66

7+
- Add support for Python 3.11
8+
79
- Populate ``documentDescribes`` field with Package and Dependency SPDX IDs in
810
SPDX BOM output.
911
https://github.com/nexB/scancode.io/issues/564

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Pre-installation Checklist
176176

177177
Before you install ScanCode.io, make sure you have the following prerequisites:
178178

179-
* **Python: versions 3.8 to 3.10** found at https://www.python.org/downloads/
179+
* **Python: versions 3.8 to 3.11** found at https://www.python.org/downloads/
180180
* **Git**: most recent release available at https://git-scm.com/
181181
* **PostgreSQL**: release 11 or later found at https://www.postgresql.org/ or
182182
https://postgresapp.com/ on macOS

scanpipe/tests/test_models.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,12 +1436,9 @@ def test_scanpipe_discovered_package_model_update_from_data(self):
14361436

14371437
def test_scanpipe_discovered_package_model_as_cyclonedx(self):
14381438
package = DiscoveredPackage.create_from_data(self.project1, package_data1)
1439-
expected_repr = (
1440-
"<Component group=None, name=adduser, version=3.118, type=library>"
1441-
)
14421439
cyclonedx_component = package.as_cyclonedx()
1443-
self.assertEqual(expected_repr, repr(cyclonedx_component))
14441440

1441+
self.assertEqual("library", cyclonedx_component.type)
14451442
self.assertEqual(package_data1["name"], cyclonedx_component.name)
14461443
self.assertEqual(package_data1["version"], cyclonedx_component.version)
14471444
purl = "pkg:deb/debian/adduser@3.118?arch=all"

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ classifiers =
1717
Programming Language :: Python :: 3.8
1818
Programming Language :: Python :: 3.9
1919
Programming Language :: Python :: 3.10
20+
Programming Language :: Python :: 3.11
2021
Topic :: Utilities
2122
keywords =
2223
open source

0 commit comments

Comments
 (0)