Skip to content

Commit 02ca942

Browse files
committed
Add python 3.13 in python-inspector
Reference: #196 Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 98f4b02 commit 02ca942

28 files changed

+5035
-2469
lines changed

src/python_inspector/utils_pypi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
TRACE_ULTRA_DEEP = False
103103

104104
# Supported environments
105-
PYTHON_VERSIONS = "27", "36", "37", "38", "39", "310", "311", "312"
105+
PYTHON_VERSIONS = "27", "36", "37", "38", "39", "310", "311", "312", "313"
106106

107107
PYTHON_DOT_VERSIONS_BY_VER = {
108108
"27": "2.7",
@@ -113,6 +113,7 @@
113113
"310": "3.10",
114114
"311": "3.11",
115115
"312": "3.12",
116+
"313": "3.13",
116117
}
117118

118119
valid_python_versions = list(PYTHON_DOT_VERSIONS_BY_VER.keys())
@@ -135,6 +136,7 @@ def get_python_dot_version(version):
135136
"310": ["cp310", "cp310m", "abi3"],
136137
"311": ["cp311", "cp311m", "abi3"],
137138
"312": ["cp312", "cp312m", "abi3"],
139+
"313": ["cp313", "cp313m", "abi3"],
138140
}
139141

140142
PLATFORMS_BY_OS = {

tests/data/azure-devops.req-310-expected.json

Lines changed: 383 additions & 349 deletions
Large diffs are not rendered by default.

tests/data/azure-devops.req-312-expected.json

Lines changed: 383 additions & 349 deletions
Large diffs are not rendered by default.

tests/data/azure-devops.req-313-expected.json

Lines changed: 2629 additions & 0 deletions
Large diffs are not rendered by default.

tests/data/azure-devops.req-38-expected.json

Lines changed: 381 additions & 345 deletions
Large diffs are not rendered by default.

tests/data/default-url-expected.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"headers": {
33
"tool_name": "python-inspector",
4-
"tool_homepageurl": "https://github.com/nexB/python-inspector",
4+
"tool_homepageurl": "https://github.com/aboutcode-org/python-inspector",
55
"tool_version": "0.12.0",
66
"options": [
77
"--json <file>",
@@ -10,7 +10,7 @@
1010
"--specifier zipp==3.8.0",
1111
"--use-pypi-json-api"
1212
],
13-
"notice": "Dependency tree generated with python-inspector.\npython-inspector is a free software tool from nexB Inc. and others.\nVisit https://github.com/nexB/python-inspector/ for support and download.",
13+
"notice": "Dependency tree generated with python-inspector.\npython-inspector is a free software tool from nexB Inc. and others.\nVisit https://github.com/aboutcode-org/python-inspector/ for support and download.",
1414
"warnings": [],
1515
"errors": []
1616
},

tests/data/environment-marker-test-requirements.txt-expected.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"headers": {
33
"tool_name": "python-inspector",
4-
"tool_homepageurl": "https://github.com/nexB/python-inspector",
4+
"tool_homepageurl": "https://github.com/aboutcode-org/python-inspector",
55
"tool_version": "0.12.0",
66
"options": [
77
"--json-pdt <file>",
88
"--operating-system linux",
99
"--python-version 37",
1010
"--requirement tests/data/environment-marker-test-requirements.txt"
1111
],
12-
"notice": "Dependency tree generated with python-inspector.\npython-inspector is a free software tool from nexB Inc. and others.\nVisit https://github.com/nexB/python-inspector/ for support and download.",
12+
"notice": "Dependency tree generated with python-inspector.\npython-inspector is a free software tool from nexB Inc. and others.\nVisit https://github.com/aboutcode-org/python-inspector/ for support and download.",
1313
"warnings": [],
1414
"errors": []
1515
},

tests/data/example-requirements-ignore-errors-expected.json

Lines changed: 133 additions & 137 deletions
Large diffs are not rendered by default.

tests/data/frozen-requirements.txt-expected.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"headers": {
33
"tool_name": "python-inspector",
4-
"tool_homepageurl": "https://github.com/nexB/python-inspector",
4+
"tool_homepageurl": "https://github.com/aboutcode-org/python-inspector",
55
"tool_version": "0.12.0",
66
"options": [
77
"--json-pdt <file>",
88
"--operating-system linux",
99
"--python-version 38",
1010
"--requirement tests/data/frozen-requirements.txt"
1111
],
12-
"notice": "Dependency tree generated with python-inspector.\npython-inspector is a free software tool from nexB Inc. and others.\nVisit https://github.com/nexB/python-inspector/ for support and download.",
12+
"notice": "Dependency tree generated with python-inspector.\npython-inspector is a free software tool from nexB Inc. and others.\nVisit https://github.com/aboutcode-org/python-inspector/ for support and download.",
1313
"warnings": [],
1414
"errors": []
1515
},
@@ -5991,12 +5991,12 @@
59915991
"type": "pypi",
59925992
"namespace": null,
59935993
"name": "pip",
5994-
"version": "24.0",
5994+
"version": "25.0.1",
59955995
"qualifiers": {},
59965996
"subpath": null,
59975997
"primary_language": "Python",
5998-
"description": "The PyPA recommended tool for installing Python packages.\npip - The Python Package Installer\n==================================\n\n.. image:: https://img.shields.io/pypi/v/pip.svg\n :target: https://pypi.org/project/pip/\n :alt: PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/pip\n :target: https://pypi.org/project/pip\n :alt: PyPI - Python Version\n\n.. image:: https://readthedocs.org/projects/pip/badge/?version=latest\n :target: https://pip.pypa.io/en/latest\n :alt: Documentation\n\npip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes.\n\nPlease take a look at our documentation for how to install and use pip:\n\n* `Installation`_\n* `Usage`_\n\nWe release updates regularly, with a new version every 3 months. Find more details in our documentation:\n\n* `Release notes`_\n* `Release process`_\n\nIf you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms:\n\n* `Issue tracking`_\n* `Discourse channel`_\n* `User IRC`_\n\nIf you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms:\n\n* `GitHub page`_\n* `Development documentation`_\n* `Development IRC`_\n\nCode of Conduct\n---------------\n\nEveryone interacting in the pip project's codebases, issue trackers, chat\nrooms, and mailing lists is expected to follow the `PSF Code of Conduct`_.\n\n.. _package installer: https://packaging.python.org/guides/tool-recommendations/\n.. _Python Package Index: https://pypi.org\n.. _Installation: https://pip.pypa.io/en/stable/installation/\n.. _Usage: https://pip.pypa.io/en/stable/\n.. _Release notes: https://pip.pypa.io/en/stable/news.html\n.. _Release process: https://pip.pypa.io/en/latest/development/release-process/\n.. _GitHub page: https://github.com/pypa/pip\n.. _Development documentation: https://pip.pypa.io/en/latest/development\n.. _Issue tracking: https://github.com/pypa/pip/issues\n.. _Discourse channel: https://discuss.python.org/c/packaging\n.. _User IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa\n.. _Development IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa-dev\n.. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md",
5999-
"release_date": "2024-02-03T09:53:09",
5998+
"description": "The PyPA recommended tool for installing Python packages.\npip - The Python Package Installer\n==================================\n\n.. |pypi-version| image:: https://img.shields.io/pypi/v/pip.svg\n :target: https://pypi.org/project/pip/\n :alt: PyPI\n\n.. |python-versions| image:: https://img.shields.io/pypi/pyversions/pip\n :target: https://pypi.org/project/pip\n :alt: PyPI - Python Version\n\n.. |docs-badge| image:: https://readthedocs.org/projects/pip/badge/?version=latest\n :target: https://pip.pypa.io/en/latest\n :alt: Documentation\n\n|pypi-version| |python-versions| |docs-badge|\n\npip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes.\n\nPlease take a look at our documentation for how to install and use pip:\n\n* `Installation`_\n* `Usage`_\n\nWe release updates regularly, with a new version every 3 months. Find more details in our documentation:\n\n* `Release notes`_\n* `Release process`_\n\nIf you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms:\n\n* `Issue tracking`_\n* `Discourse channel`_\n* `User IRC`_\n\nIf you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms:\n\n* `GitHub page`_\n* `Development documentation`_\n* `Development IRC`_\n\nCode of Conduct\n---------------\n\nEveryone interacting in the pip project's codebases, issue trackers, chat\nrooms, and mailing lists is expected to follow the `PSF Code of Conduct`_.\n\n.. _package installer: https://packaging.python.org/guides/tool-recommendations/\n.. _Python Package Index: https://pypi.org\n.. _Installation: https://pip.pypa.io/en/stable/installation/\n.. _Usage: https://pip.pypa.io/en/stable/\n.. _Release notes: https://pip.pypa.io/en/stable/news.html\n.. _Release process: https://pip.pypa.io/en/latest/development/release-process/\n.. _GitHub page: https://github.com/pypa/pip\n.. _Development documentation: https://pip.pypa.io/en/latest/development\n.. _Issue tracking: https://github.com/pypa/pip/issues\n.. _Discourse channel: https://discuss.python.org/c/packaging\n.. _User IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa\n.. _Development IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa-dev\n.. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md",
5999+
"release_date": "2025-02-09T17:14:01",
60006000
"parties": [
60016001
{
60026002
"type": "person",
@@ -6015,19 +6015,19 @@
60156015
"Programming Language :: Python :: 3.10",
60166016
"Programming Language :: Python :: 3.11",
60176017
"Programming Language :: Python :: 3.12",
6018-
"Programming Language :: Python :: 3.7",
6018+
"Programming Language :: Python :: 3.13",
60196019
"Programming Language :: Python :: 3.8",
60206020
"Programming Language :: Python :: 3.9",
60216021
"Programming Language :: Python :: Implementation :: CPython",
60226022
"Programming Language :: Python :: Implementation :: PyPy",
60236023
"Topic :: Software Development :: Build Tools"
60246024
],
6025-
"homepage_url": "",
6026-
"download_url": "https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl",
6027-
"size": 2110226,
6025+
"homepage_url": null,
6026+
"download_url": "https://files.pythonhosted.org/packages/c9/bc/b7db44f5f39f9d0494071bddae6880eb645970366d0a200022a1a93d57f5/pip-25.0.1-py3-none-any.whl",
6027+
"size": 1841526,
60286028
"sha1": null,
6029-
"md5": "74e3c5e4082113b1239ca0e9abfd1e82",
6030-
"sha256": "ba0d021a166865d2265246961bec0152ff124de910c5cc39f1156ce3fa7c69dc",
6029+
"md5": "99f43f22d5321305507b804a2be662c0",
6030+
"sha256": "c46efd13b6aa8279f33f2864459c8ce587ea6a1a59ee20de055868d8f7688f7f",
60316031
"sha512": null,
60326032
"bug_tracking_url": null,
60336033
"code_view_url": "https://github.com/pypa/pip",
@@ -6047,20 +6047,20 @@
60476047
"dependencies": [],
60486048
"repository_homepage_url": null,
60496049
"repository_download_url": null,
6050-
"api_data_url": "https://pypi.org/pypi/pip/24.0/json",
6050+
"api_data_url": "https://pypi.org/pypi/pip/25.0.1/json",
60516051
"datasource_id": null,
6052-
"purl": "pkg:pypi/pip@24.0"
6052+
"purl": "pkg:pypi/pip@25.0.1"
60536053
},
60546054
{
60556055
"type": "pypi",
60566056
"namespace": null,
60576057
"name": "pip",
6058-
"version": "24.0",
6058+
"version": "25.0.1",
60596059
"qualifiers": {},
60606060
"subpath": null,
60616061
"primary_language": "Python",
6062-
"description": "The PyPA recommended tool for installing Python packages.\npip - The Python Package Installer\n==================================\n\n.. image:: https://img.shields.io/pypi/v/pip.svg\n :target: https://pypi.org/project/pip/\n :alt: PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/pip\n :target: https://pypi.org/project/pip\n :alt: PyPI - Python Version\n\n.. image:: https://readthedocs.org/projects/pip/badge/?version=latest\n :target: https://pip.pypa.io/en/latest\n :alt: Documentation\n\npip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes.\n\nPlease take a look at our documentation for how to install and use pip:\n\n* `Installation`_\n* `Usage`_\n\nWe release updates regularly, with a new version every 3 months. Find more details in our documentation:\n\n* `Release notes`_\n* `Release process`_\n\nIf you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms:\n\n* `Issue tracking`_\n* `Discourse channel`_\n* `User IRC`_\n\nIf you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms:\n\n* `GitHub page`_\n* `Development documentation`_\n* `Development IRC`_\n\nCode of Conduct\n---------------\n\nEveryone interacting in the pip project's codebases, issue trackers, chat\nrooms, and mailing lists is expected to follow the `PSF Code of Conduct`_.\n\n.. _package installer: https://packaging.python.org/guides/tool-recommendations/\n.. _Python Package Index: https://pypi.org\n.. _Installation: https://pip.pypa.io/en/stable/installation/\n.. _Usage: https://pip.pypa.io/en/stable/\n.. _Release notes: https://pip.pypa.io/en/stable/news.html\n.. _Release process: https://pip.pypa.io/en/latest/development/release-process/\n.. _GitHub page: https://github.com/pypa/pip\n.. _Development documentation: https://pip.pypa.io/en/latest/development\n.. _Issue tracking: https://github.com/pypa/pip/issues\n.. _Discourse channel: https://discuss.python.org/c/packaging\n.. _User IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa\n.. _Development IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa-dev\n.. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md",
6063-
"release_date": "2024-02-03T09:53:18",
6062+
"description": "The PyPA recommended tool for installing Python packages.\npip - The Python Package Installer\n==================================\n\n.. |pypi-version| image:: https://img.shields.io/pypi/v/pip.svg\n :target: https://pypi.org/project/pip/\n :alt: PyPI\n\n.. |python-versions| image:: https://img.shields.io/pypi/pyversions/pip\n :target: https://pypi.org/project/pip\n :alt: PyPI - Python Version\n\n.. |docs-badge| image:: https://readthedocs.org/projects/pip/badge/?version=latest\n :target: https://pip.pypa.io/en/latest\n :alt: Documentation\n\n|pypi-version| |python-versions| |docs-badge|\n\npip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes.\n\nPlease take a look at our documentation for how to install and use pip:\n\n* `Installation`_\n* `Usage`_\n\nWe release updates regularly, with a new version every 3 months. Find more details in our documentation:\n\n* `Release notes`_\n* `Release process`_\n\nIf you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms:\n\n* `Issue tracking`_\n* `Discourse channel`_\n* `User IRC`_\n\nIf you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms:\n\n* `GitHub page`_\n* `Development documentation`_\n* `Development IRC`_\n\nCode of Conduct\n---------------\n\nEveryone interacting in the pip project's codebases, issue trackers, chat\nrooms, and mailing lists is expected to follow the `PSF Code of Conduct`_.\n\n.. _package installer: https://packaging.python.org/guides/tool-recommendations/\n.. _Python Package Index: https://pypi.org\n.. _Installation: https://pip.pypa.io/en/stable/installation/\n.. _Usage: https://pip.pypa.io/en/stable/\n.. _Release notes: https://pip.pypa.io/en/stable/news.html\n.. _Release process: https://pip.pypa.io/en/latest/development/release-process/\n.. _GitHub page: https://github.com/pypa/pip\n.. _Development documentation: https://pip.pypa.io/en/latest/development\n.. _Issue tracking: https://github.com/pypa/pip/issues\n.. _Discourse channel: https://discuss.python.org/c/packaging\n.. _User IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa\n.. _Development IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa-dev\n.. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md",
6063+
"release_date": "2025-02-09T17:14:04",
60646064
"parties": [
60656065
{
60666066
"type": "person",
@@ -6079,19 +6079,19 @@
60796079
"Programming Language :: Python :: 3.10",
60806080
"Programming Language :: Python :: 3.11",
60816081
"Programming Language :: Python :: 3.12",
6082-
"Programming Language :: Python :: 3.7",
6082+
"Programming Language :: Python :: 3.13",
60836083
"Programming Language :: Python :: 3.8",
60846084
"Programming Language :: Python :: 3.9",
60856085
"Programming Language :: Python :: Implementation :: CPython",
60866086
"Programming Language :: Python :: Implementation :: PyPy",
60876087
"Topic :: Software Development :: Build Tools"
60886088
],
6089-
"homepage_url": "",
6090-
"download_url": "https://files.pythonhosted.org/packages/94/59/6638090c25e9bc4ce0c42817b5a234e183872a1129735a9330c472cc2056/pip-24.0.tar.gz",
6091-
"size": 2132709,
6089+
"homepage_url": null,
6090+
"download_url": "https://files.pythonhosted.org/packages/70/53/b309b4a497b09655cb7e07088966881a57d082f48ac3cb54ea729fd2c6cf/pip-25.0.1.tar.gz",
6091+
"size": 1950850,
60926092
"sha1": null,
6093-
"md5": "1331aabb4d1a2677f493effeebda3605",
6094-
"sha256": "ea9bd1a847e8c5774a5777bb398c19e80bcd4e2aa16a4b301b718fe6f593aba2",
6093+
"md5": "1bf81564bf9738efbe48439c230f25bf",
6094+
"sha256": "88f96547ea48b940a3a385494e181e29fb8637898f88d88737c5049780f196ea",
60956095
"sha512": null,
60966096
"bug_tracking_url": null,
60976097
"code_view_url": "https://github.com/pypa/pip",
@@ -6111,9 +6111,9 @@
61116111
"dependencies": [],
61126112
"repository_homepage_url": null,
61136113
"repository_download_url": null,
6114-
"api_data_url": "https://pypi.org/pypi/pip/24.0/json",
6114+
"api_data_url": "https://pypi.org/pypi/pip/25.0.1/json",
61156115
"datasource_id": null,
6116-
"purl": "pkg:pypi/pip@24.0"
6116+
"purl": "pkg:pypi/pip@25.0.1"
61176117
},
61186118
{
61196119
"type": "pypi",
@@ -10802,7 +10802,7 @@
1080210802
{
1080310803
"key": "pip",
1080410804
"package_name": "pip",
10805-
"installed_version": "24.0",
10805+
"installed_version": "25.0.1",
1080610806
"dependencies": []
1080710807
}
1080810808
]

0 commit comments

Comments
 (0)