python-inspector 0.14.3__tar.gz → 0.15.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. {python_inspector-0.14.3 → python_inspector-0.15.0}/.readthedocs.yml +1 -1
  2. {python_inspector-0.14.3 → python_inspector-0.15.0}/AUTHORS.rst +1 -0
  3. {python_inspector-0.14.3 → python_inspector-0.15.0}/CHANGELOG.rst +12 -0
  4. {python_inspector-0.14.3 → python_inspector-0.15.0}/PKG-INFO +3 -3
  5. {python_inspector-0.14.3 → python_inspector-0.15.0}/azure-pipelines.yml +10 -26
  6. {python_inspector-0.14.3 → python_inspector-0.15.0}/configure +1 -1
  7. {python_inspector-0.14.3 → python_inspector-0.15.0}/configure.bat +2 -2
  8. {python_inspector-0.14.3 → python_inspector-0.15.0}/docs/source/dependencies-design.rst +2 -2
  9. {python_inspector-0.14.3 → python_inspector-0.15.0}/docs/source/test-protocol.rst +13 -13
  10. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/ci/azure-container-deb.yml +1 -1
  11. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/ci/azure-container-rpm.yml +1 -1
  12. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/utils_thirdparty.py +32 -33
  13. {python_inspector-0.14.3 → python_inspector-0.15.0}/pyproject.toml +1 -1
  14. {python_inspector-0.14.3 → python_inspector-0.15.0}/requirements-dev.txt +2 -2
  15. {python_inspector-0.14.3 → python_inspector-0.15.0}/requirements.txt +2 -2
  16. {python_inspector-0.14.3 → python_inspector-0.15.0}/setup.cfg +3 -3
  17. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/_packagedcode/pypi.py +4 -2
  18. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/_packagedcode/pypi_setup_py.py +2 -2
  19. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/resolution.py +3 -1
  20. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/resolve_cli.py +1 -1
  21. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/setup_py_live_eval.py +1 -0
  22. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/utils_pypi.py +12 -2
  23. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector.egg-info/PKG-INFO +3 -3
  24. python_inspector-0.15.0/src/python_inspector.egg-info/SOURCES.txt +107 -0
  25. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector.egg-info/requires.txt +1 -1
  26. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_api.py +1 -1
  27. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_cli.py +31 -1
  28. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_resolution.py +8 -0
  29. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_utils_pypi.py +1 -10
  30. python_inspector-0.14.3/.gitattributes +0 -3
  31. python_inspector-0.14.3/.github/workflows/docs-ci.yml +0 -32
  32. python_inspector-0.14.3/.github/workflows/pypi-release.yml +0 -86
  33. python_inspector-0.14.3/resolve_cli.python +0 -403
  34. python_inspector-0.14.3/src/python_inspector.egg-info/SOURCES.txt +0 -199
  35. python_inspector-0.14.3/tests/conftest.py +0 -14
  36. python_inspector-0.14.3/tests/data/azure-devops.req-310-expected.json +0 -1410
  37. python_inspector-0.14.3/tests/data/azure-devops.req-312-expected.json +0 -1410
  38. python_inspector-0.14.3/tests/data/azure-devops.req-313-expected.json +0 -1410
  39. python_inspector-0.14.3/tests/data/azure-devops.req-38-expected.json +0 -1420
  40. python_inspector-0.14.3/tests/data/azure-devops.req.txt +0 -3
  41. python_inspector-0.14.3/tests/data/default-url-expected.json +0 -26
  42. python_inspector-0.14.3/tests/data/environment-marker-test-requirements.txt +0 -7
  43. python_inspector-0.14.3/tests/data/environment-marker-test-requirements.txt-expected.json +0 -636
  44. python_inspector-0.14.3/tests/data/error-requirements.txt +0 -2
  45. python_inspector-0.14.3/tests/data/example-requirements-ignore-errors-expected.json +0 -674
  46. python_inspector-0.14.3/tests/data/fetch_links_test.html +0 -4
  47. python_inspector-0.14.3/tests/data/frozen-requirements.txt +0 -68
  48. python_inspector-0.14.3/tests/data/frozen-requirements.txt-expected.json +0 -6697
  49. python_inspector-0.14.3/tests/data/insecure-setup/rdflib/__init__.py +0 -215
  50. python_inspector-0.14.3/tests/data/insecure-setup/setup.py +0 -98
  51. python_inspector-0.14.3/tests/data/insecure-setup/setup.py-expected.json +0 -326
  52. python_inspector-0.14.3/tests/data/insecure-setup-2/setup.py +0 -39
  53. python_inspector-0.14.3/tests/data/insecure-setup-2/setup.py-expected.json +0 -4935
  54. python_inspector-0.14.3/tests/data/insecure-setup-2/testpkh/__init__.py +0 -2
  55. python_inspector-0.14.3/tests/data/no-install-requires-expected.json +0 -92
  56. python_inspector-0.14.3/tests/data/other_req.txt +0 -8
  57. python_inspector-0.14.3/tests/data/parse-reqs-with-setup_requires-and-python-requires.json +0 -129
  58. python_inspector-0.14.3/tests/data/parse-reqs.json +0 -209
  59. python_inspector-0.14.3/tests/data/partial-setup.py +0 -12
  60. python_inspector-0.14.3/tests/data/pdt-requirements.txt +0 -6
  61. python_inspector-0.14.3/tests/data/pdt-requirements.txt-expected.json +0 -615
  62. python_inspector-0.14.3/tests/data/pinned-pdt-requirements.txt +0 -30
  63. python_inspector-0.14.3/tests/data/pinned-pdt-requirements.txt-expected.json +0 -3103
  64. python_inspector-0.14.3/tests/data/pinned-requirements.txt +0 -30
  65. python_inspector-0.14.3/tests/data/pinned-requirements.txt-expected.json +0 -3010
  66. python_inspector-0.14.3/tests/data/prefer-source-expected.json +0 -80
  67. python_inspector-0.14.3/tests/data/psycopg2-links-expected.json +0 -2046
  68. python_inspector-0.14.3/tests/data/psycopg2.html +0 -523
  69. python_inspector-0.14.3/tests/data/recursive_requirements/com.txt +0 -1
  70. python_inspector-0.14.3/tests/data/recursive_requirements/r.txt +0 -5
  71. python_inspector-0.14.3/tests/data/relative-links-expected.json +0 -6
  72. python_inspector-0.14.3/tests/data/req.txt +0 -9
  73. python_inspector-0.14.3/tests/data/requirements-test.txt +0 -5
  74. python_inspector-0.14.3/tests/data/requirements.devel.txt +0 -8
  75. python_inspector-0.14.3/tests/data/resolved_deps/autobahn-310-expected.json +0 -57
  76. python_inspector-0.14.3/tests/data/resolved_deps/flask-310-expected.json +0 -45
  77. python_inspector-0.14.3/tests/data/resolved_deps/flask-310-win-expected.json +0 -52
  78. python_inspector-0.14.3/tests/data/resolved_deps/flask-36-expected.json +0 -70
  79. python_inspector-0.14.3/tests/data/resolved_deps/flask-39-expected.json +0 -58
  80. python_inspector-0.14.3/tests/data/resolved_deps/torch-312-expected.json +0 -11
  81. python_inspector-0.14.3/tests/data/secure-setup/setup-emptyrequires.py +0 -41
  82. python_inspector-0.14.3/tests/data/secure-setup/setup-norequires.py +0 -40
  83. python_inspector-0.14.3/tests/data/secure-setup/setup-requires.py +0 -41
  84. python_inspector-0.14.3/tests/data/setup/no-direct-dependencies-setup.py +0 -44
  85. python_inspector-0.14.3/tests/data/setup/no-direct-dependencies-setup.py-expected.json +0 -87
  86. python_inspector-0.14.3/tests/data/setup/simple-setup.py +0 -31
  87. python_inspector-0.14.3/tests/data/setup/simple-setup.py-expected.json +0 -225
  88. python_inspector-0.14.3/tests/data/setup/spdx-setup.py +0 -48
  89. python_inspector-0.14.3/tests/data/setup/spdx-setup.py-expected.json +0 -453
  90. python_inspector-0.14.3/tests/data/setup-distutils-asnames.txt +0 -40
  91. python_inspector-0.14.3/tests/data/setup-distutils-qualifiedfct.txt +0 -40
  92. python_inspector-0.14.3/tests/data/setup-distutils.txt +0 -40
  93. python_inspector-0.14.3/tests/data/setup-qualifiedfct.txt +0 -77
  94. python_inspector-0.14.3/tests/data/setup.cfg +0 -24
  95. python_inspector-0.14.3/tests/data/setup.txt +0 -77
  96. python_inspector-0.14.3/tests/data/setup_if_main.py +0 -29
  97. python_inspector-0.14.3/tests/data/setup_with_setup_requires_and_python_requires.cfg +0 -159
  98. python_inspector-0.14.3/tests/data/single-url-env-var-except-simple-expected.json +0 -577
  99. python_inspector-0.14.3/tests/data/single-url-env-var-expected.json +0 -79
  100. python_inspector-0.14.3/tests/data/single-url-except-simple-expected.json +0 -522
  101. python_inspector-0.14.3/tests/data/single-url-expected.json +0 -79
  102. python_inspector-0.14.3/tests/data/test-api-expected.json +0 -386
  103. python_inspector-0.14.3/tests/data/test-api-pdt-expected.json +0 -398
  104. python_inspector-0.14.3/tests/data/test-api-with-lief-python-312.json +0 -67
  105. python_inspector-0.14.3/tests/data/test-api-with-partial-setup-py.json +0 -136
  106. python_inspector-0.14.3/tests/data/test-api-with-prefer-source.json +0 -386
  107. python_inspector-0.14.3/tests/data/test-api-with-python-311.json +0 -386
  108. python_inspector-0.14.3/tests/data/test-api-with-recursive-requirement-file.json +0 -450
  109. python_inspector-0.14.3/tests/data/test-api-with-requirement-file.json +0 -6344
  110. python_inspector-0.14.3/tests/data/test-commented.netrc +0 -2
  111. python_inspector-0.14.3/tests/data/test-default.netrc +0 -2
  112. python_inspector-0.14.3/tests/data/test.netrc +0 -2
  113. python_inspector-0.14.3/tests/data/tilde_req-expected-env.json +0 -79
  114. python_inspector-0.14.3/tests/data/tilde_req-expected-max-rounds.json +0 -79
  115. python_inspector-0.14.3/tests/data/tilde_req-expected-netrc.json +0 -79
  116. python_inspector-0.14.3/tests/data/tilde_req-expected.json +0 -79
  117. python_inspector-0.14.3/tests/test_setup_py_live_eval.py.ABOUT +0 -8
  118. python_inspector-0.14.3/tests/test_setup_py_live_eval.py.LICENSE +0 -34
  119. python_inspector-0.14.3/tests/test_setup_py_live_eval_cli.py.ABOUT +0 -8
  120. python_inspector-0.14.3/tests/test_setup_py_live_eval_cli.py.LICENSE +0 -34
  121. python_inspector-0.14.3/tests/test_utils_pip_compatibility_tags.py.ABOUT +0 -14
  122. python_inspector-0.14.3/tests/test_utils_pypi_supported_tags.py.ABOUT +0 -17
  123. {python_inspector-0.14.3 → python_inspector-0.15.0}/.gitignore +0 -0
  124. {python_inspector-0.14.3 → python_inspector-0.15.0}/CODE_OF_CONDUCT.rst +0 -0
  125. {python_inspector-0.14.3 → python_inspector-0.15.0}/MANIFEST.in +0 -0
  126. {python_inspector-0.14.3 → python_inspector-0.15.0}/Makefile +0 -0
  127. {python_inspector-0.14.3 → python_inspector-0.15.0}/NOTICE +0 -0
  128. {python_inspector-0.14.3 → python_inspector-0.15.0}/README.rst +0 -0
  129. {python_inspector-0.14.3 → python_inspector-0.15.0}/apache-2.0.LICENSE +0 -0
  130. {python_inspector-0.14.3 → python_inspector-0.15.0}/docs/Makefile +0 -0
  131. {python_inspector-0.14.3 → python_inspector-0.15.0}/docs/make.bat +0 -0
  132. {python_inspector-0.14.3 → python_inspector-0.15.0}/docs/source/_static/theme_overrides.css +0 -0
  133. {python_inspector-0.14.3 → python_inspector-0.15.0}/docs/source/conf.py +0 -0
  134. {python_inspector-0.14.3 → python_inspector-0.15.0}/docs/source/contribute/contrib_doc.rst +0 -0
  135. {python_inspector-0.14.3 → python_inspector-0.15.0}/docs/source/index.rst +0 -0
  136. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/ci/azure-posix.yml +0 -0
  137. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/ci/azure-win.yml +0 -0
  138. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/ci/install_sudo.sh +0 -0
  139. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/ci/macports-ci +0 -0
  140. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/ci/macports-ci.ABOUT +0 -0
  141. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/ci/mit.LICENSE +0 -0
  142. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/README.rst +0 -0
  143. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/check_thirdparty.py +0 -0
  144. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/fetch_thirdparty.py +0 -0
  145. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/gen_pypi_simple.py +0 -0
  146. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/gen_pypi_simple.py.ABOUT +0 -0
  147. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/gen_pypi_simple.py.NOTICE +0 -0
  148. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/gen_requirements.py +0 -0
  149. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/gen_requirements_dev.py +0 -0
  150. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/requirements.txt +0 -0
  151. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/test_utils_pip_compatibility_tags.py +0 -0
  152. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/test_utils_pip_compatibility_tags.py.ABOUT +0 -0
  153. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/test_utils_pypi_supported_tags.py +0 -0
  154. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/test_utils_pypi_supported_tags.py.ABOUT +0 -0
  155. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/update_skeleton.py +0 -0
  156. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/utils_dejacode.py +0 -0
  157. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/utils_pip_compatibility_tags.py +0 -0
  158. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/utils_pip_compatibility_tags.py.ABOUT +0 -0
  159. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/utils_pypi_supported_tags.py +0 -0
  160. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/utils_pypi_supported_tags.py.ABOUT +0 -0
  161. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/utils_requirements.py +0 -0
  162. {python_inspector-0.14.3 → python_inspector-0.15.0}/etc/scripts/utils_thirdparty.py.ABOUT +0 -0
  163. {python_inspector-0.14.3 → python_inspector-0.15.0}/requirements_builder.ABOUT +0 -0
  164. {python_inspector-0.14.3 → python_inspector-0.15.0}/setup.py +0 -0
  165. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/_packagedcode/__init__.py +0 -0
  166. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/_packagedcode/models.py +0 -0
  167. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/_packagedcode/pypi.py.ABOUT +0 -0
  168. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/_packagedcode/pypi.py.NOTICE +0 -0
  169. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/_packagedcode/pypi_setup_py.py.ABOUT +0 -0
  170. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/_packagedcode/pypi_setup_py.py.LICENSE +0 -0
  171. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/_packagedcode/utils.py +0 -0
  172. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/__init__.py +0 -0
  173. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/api.py +0 -0
  174. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/cli_utils.py +0 -0
  175. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/dependencies.py +0 -0
  176. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/error.py +0 -0
  177. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/lockfile.py +0 -0
  178. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/package_data.py +0 -0
  179. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/resolution.py.ABOUT +0 -0
  180. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/resolution.py.LICENSE +0 -0
  181. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/settings.py +0 -0
  182. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/setup_py_live_eval.py.ABOUT +0 -0
  183. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/setup_py_live_eval.py.LICENSE +0 -0
  184. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/utils.py +0 -0
  185. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/utils_pip_compatibility_tags.py +0 -0
  186. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/utils_pip_compatibility_tags.py.ABOUT +0 -0
  187. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/utils_pypi.py.ABOUT +0 -0
  188. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/utils_pypi_supported_tags.py +0 -0
  189. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector/utils_pypi_supported_tags.py.ABOUT +0 -0
  190. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector.egg-info/dependency_links.txt +0 -0
  191. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector.egg-info/entry_points.txt +0 -0
  192. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector.egg-info/not-zip-safe +0 -0
  193. {python_inspector-0.14.3 → python_inspector-0.15.0}/src/python_inspector.egg-info/top_level.txt +0 -0
  194. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_packagecode_pypi.py +0 -0
  195. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_pypi.py +0 -0
  196. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_requirement_parsing.py +0 -0
  197. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_setup_py_live_eval.py +0 -0
  198. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_setup_py_parsing.py +0 -0
  199. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_utils.py +0 -0
  200. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_utils_pip_compatibility_tags.py +0 -0
  201. {python_inspector-0.14.3 → python_inspector-0.15.0}/tests/test_utils_pypi_supported_tags.py +0 -0
@@ -9,7 +9,7 @@ version: 2
9
9
  build:
10
10
  os: ubuntu-22.04
11
11
  tools:
12
- python: "3.11"
12
+ python: "3.13"
13
13
 
14
14
  # Build PDF & ePub
15
15
  formats:
@@ -1,3 +1,4 @@
1
1
  The following organizations or individuals have contributed to this repo:
2
2
 
3
3
  - nexB Inc.
4
+ - Robert Bosch GmbH
@@ -1,6 +1,18 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ v0.15.0
5
+ -----------
6
+
7
+ - Drop support for python3.9 and add support for python3.14
8
+ - Ensure that cached file is not empty before use https://github.com/aboutcode-org/python-inspector/pull/251
9
+ - Filter out empty values from install_requires https://github.com/aboutcode-org/python-inspector/pull/250
10
+
11
+ v0.14.4
12
+ -----------
13
+
14
+ - Cleanup requirement string to avoid packvers parsing issues https://github.com/aboutcode-org/python-inspector/pull/244
15
+ - Fix resolution issues for pre-release versions https://github.com/aboutcode-org/python-inspector/pull/248
4
16
 
5
17
  v0.14.3
6
18
  -----------
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-inspector
3
- Version: 0.14.3
3
+ Version: 0.15.0
4
4
  Summary: python-inspector is is a collection of utilities to collect PyPI package metadata and resolve packages dependencies.
5
5
  Home-page: https://github.com/aboutcode-org/python-inspector
6
6
  Author: nexB. Inc. and others
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3 :: Only
14
14
  Classifier: Topic :: Software Development
15
15
  Classifier: Topic :: Utilities
16
- Requires-Python: >=3.9
16
+ Requires-Python: >=3.10
17
17
  Description-Content-Type: text/x-rst
18
18
  License-File: apache-2.0.LICENSE
19
19
  License-File: NOTICE
@@ -49,7 +49,7 @@ Requires-Dist: twine; extra == "dev"
49
49
  Requires-Dist: ruff; extra == "dev"
50
50
  Requires-Dist: pytest-rerunfailures; extra == "dev"
51
51
  Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
52
- Requires-Dist: Sphinx>=5.0.2; extra == "dev"
52
+ Requires-Dist: Sphinx>=6.2.0; extra == "dev"
53
53
  Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "dev"
54
54
  Requires-Dist: sphinx-reredirects>=0.1.2; extra == "dev"
55
55
  Requires-Dist: doc8>=0.11.2; extra == "dev"
@@ -11,7 +11,7 @@ jobs:
11
11
  parameters:
12
12
  job_name: run_code_checks
13
13
  image_name: ubuntu-24.04
14
- python_versions: ['3.12']
14
+ python_versions: ['3.14']
15
15
  test_suites:
16
16
  all: make check
17
17
 
@@ -19,7 +19,7 @@ jobs:
19
19
  parameters:
20
20
  job_name: online_ubuntu24_cpython
21
21
  image_name: ubuntu-24.04
22
- python_versions: ['3.10']
22
+ python_versions: ['3.14']
23
23
  test_suites:
24
24
  all: venv/bin/pytest -n 2 -vvs -m "online"
25
25
 
@@ -27,7 +27,7 @@ jobs:
27
27
  parameters:
28
28
  job_name: online_win2022_cpython
29
29
  image_name: windows-2022
30
- python_versions: ['3.10']
30
+ python_versions: ['3.14']
31
31
  test_suites:
32
32
  all: venv\Scripts\pytest -n 2 -vvs -m "online"
33
33
 
@@ -35,7 +35,7 @@ jobs:
35
35
  parameters:
36
36
  job_name: online_macos14_cpython
37
37
  image_name: macOS-14
38
- python_versions: ['3.10']
38
+ python_versions: ['3.14']
39
39
  test_suites:
40
40
  all: venv/bin/pytest -n 2 -vvs -m "online"
41
41
 
@@ -43,7 +43,7 @@ jobs:
43
43
  parameters:
44
44
  job_name: ubuntu22_cpython
45
45
  image_name: ubuntu-22.04
46
- python_versions: ['3.9', '3.10', '3.11', '3.12']
46
+ python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
47
47
  test_suites:
48
48
  all: venv/bin/pytest -n 2 -vvs -m "not online"
49
49
 
@@ -51,15 +51,7 @@ jobs:
51
51
  parameters:
52
52
  job_name: ubuntu24_cpython
53
53
  image_name: ubuntu-24.04
54
- python_versions: ['3.9', '3.10', '3.11', '3.12']
55
- test_suites:
56
- all: venv/bin/pytest -n 2 -vvs -m "not online"
57
-
58
- - template: etc/ci/azure-posix.yml
59
- parameters:
60
- job_name: macos13_cpython
61
- image_name: macOS-13
62
- python_versions: ['3.9', '3.10', '3.11', '3.12']
54
+ python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
63
55
  test_suites:
64
56
  all: venv/bin/pytest -n 2 -vvs -m "not online"
65
57
 
@@ -67,7 +59,7 @@ jobs:
67
59
  parameters:
68
60
  job_name: macos14_cpython
69
61
  image_name: macOS-14
70
- python_versions: ['3.9', '3.10', '3.11', '3.12']
62
+ python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
71
63
  test_suites:
72
64
  all: venv/bin/pytest -n 2 -vvs -m "not online"
73
65
 
@@ -75,23 +67,15 @@ jobs:
75
67
  parameters:
76
68
  job_name: macos15_cpython
77
69
  image_name: macOS-15
78
- python_versions: ['3.9', '3.10', '3.11', '3.12']
70
+ python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
79
71
  test_suites:
80
72
  all: venv/bin/pytest -n 2 -vvs -m "not online"
81
73
 
82
- - template: etc/ci/azure-win.yml
83
- parameters:
84
- job_name: win2019_cpython
85
- image_name: windows-2019
86
- python_versions: ['3.9', '3.10', '3.11', '3.12']
87
- test_suites:
88
- all: venv\Scripts\pytest -n 2 -vvs -m "not online"
89
-
90
74
  - template: etc/ci/azure-win.yml
91
75
  parameters:
92
76
  job_name: win2022_cpython
93
77
  image_name: windows-2022
94
- python_versions: ['3.9', '3.10', '3.11', '3.12']
78
+ python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
95
79
  test_suites:
96
80
  all: venv\Scripts\pytest -n 2 -vvs -m "not online"
97
81
 
@@ -99,6 +83,6 @@ jobs:
99
83
  parameters:
100
84
  job_name: win2025_cpython
101
85
  image_name: windows-2025
102
- python_versions: ['3.9', '3.10', '3.11', '3.12']
86
+ python_versions: ['3.10', '3.11', '3.12', '3.13', '3.14']
103
87
  test_suites:
104
88
  all: venv\Scripts\pytest -n 2 -vvs -m "not online"
@@ -110,7 +110,7 @@ create_virtualenv() {
110
110
  fi
111
111
 
112
112
  $PYTHON_EXECUTABLE "$VIRTUALENV_PYZ" \
113
- --wheel embed --pip embed --setuptools embed \
113
+ --pip embed --setuptools embed \
114
114
  --seeder pip \
115
115
  --never-download \
116
116
  --no-periodic-update \
@@ -110,7 +110,7 @@ if not exist "%CFG_BIN_DIR%\python.exe" (
110
110
 
111
111
  if exist "%CFG_ROOT_DIR%\etc\thirdparty\virtualenv.pyz" (
112
112
  %PYTHON_EXECUTABLE% "%CFG_ROOT_DIR%\etc\thirdparty\virtualenv.pyz" ^
113
- --wheel embed --pip embed --setuptools embed ^
113
+ --pip embed --setuptools embed ^
114
114
  --seeder pip ^
115
115
  --never-download ^
116
116
  --no-periodic-update ^
@@ -126,7 +126,7 @@ if not exist "%CFG_BIN_DIR%\python.exe" (
126
126
  )
127
127
  )
128
128
  %PYTHON_EXECUTABLE% "%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\virtualenv.pyz" ^
129
- --wheel embed --pip embed --setuptools embed ^
129
+ --pip embed --setuptools embed ^
130
130
  --seeder pip ^
131
131
  --never-download ^
132
132
  --no-periodic-update ^
@@ -67,7 +67,7 @@ Solution
67
67
 
68
68
  One approach to resolve this issue is to attempt to resolve the
69
69
  dependencies using all the current Python versions (e.g., from 3.6 to
70
- 3.10) and stop when one resolution is completed. This can work in
70
+ 3.14) and stop when one resolution is completed. This can work in
71
71
  practice, but it results in a complex setup typically using multiple
72
72
  Docker images for each of the supported Python versions. It would also
73
73
  fail to build native dependencies unless the required toolchain is also
@@ -80,7 +80,7 @@ invoking pip as a subprocess. This will eventually request resolution of
80
80
  dependencies for a base Python version that is not the current Python
81
81
  version. For example, it will be possible to resolve dependencies for
82
82
  Python 3.8, even though the current Python version running the tool may
83
- be 3.9. The actual Python version running the tool may be different from
83
+ be 3.10. The actual Python version running the tool may be different from
84
84
  the version used to support the dependency resolution.
85
85
 
86
86
  The designed solution will be a new Python package and command line tool
@@ -13,7 +13,7 @@ You need to:
13
13
 
14
14
  - have access to some Python codebase to use as a test bed.
15
15
  - have a working installation of python-inspector
16
- - have a working installation of scancode-toolkit v31.x (inlucing RCs) or higher
16
+ - have a working installation of scancode-toolkit v32.x (inlucing RCs) or higher
17
17
 
18
18
 
19
19
  Test protocol
@@ -77,9 +77,9 @@ In this step, you will resolve the dependencies using python-inspector python-in
77
77
  command for each of the requirements files identified in Step 1 using the
78
78
  Python version identified in Step 2. Run this command for each requirements
79
79
  file, using each time a different output file name. We assume here Python
80
- version 3.8 (note the absence of dot when passed as a command line option::
80
+ version 3.10 (note the absence of dot when passed as a command line option::
81
81
 
82
- python-inspector --python-version 38 --requirement <path/to/requirements.txt> \
82
+ python-inspector --python-version 310 --requirement <path/to/requirements.txt> \
83
83
  --json <path/to/resolved-requirements.txt.json> \
84
84
  --netrc <path/to/.netrc>
85
85
 
@@ -150,7 +150,7 @@ Setup
150
150
 
151
151
 
152
152
  We use this repo https://github.com/tjcsl/ion as a sample codebase.
153
- And the reference Python version is 3.8::
153
+ And the reference Python version is 3.10::
154
154
 
155
155
  mkdir -p ~/tmp/pyinsp-example/
156
156
  cd ~/tmp/pyinsp-example/
@@ -159,24 +159,24 @@ And the reference Python version is 3.8::
159
159
 
160
160
  Another example could be https://github.com/digitalocean/sample-django
161
161
 
162
- We use the latest main branch from python-inspector and scancode-toolkit 31.0.0rc2
163
- installed on Linux with Python 3.8 using the release tarball from:
164
- https://github.com/aboutcode-org/scancode-toolkit/releases/tag/v31.0.0rc2
162
+ We use the latest main branch from python-inspector and scancode-toolkit 32.4.1
163
+ installed on Linux with Python 3.10 using the release tarball from:
164
+ https://github.com/aboutcode-org/scancode-toolkit/releases/tag/v32.4.1
165
165
 
166
166
  ScanCode setup::
167
167
 
168
168
  mkdir -p ~/tmp/pyinsp-example/tools
169
169
  cd ~/tmp/pyinsp-example/tools
170
- wget https://github.com/aboutcode-org/scancode-toolkit/releases/download/v31.0.0rc2/scancode-toolkit-31.0.0rc2_py38-linux.tar.xz
171
- tar -xf scancode-toolkit-31.0.0rc2_py38-linux.tar.xz
172
- cd scancode-toolkit-31.0.0rc2/
170
+ wget https://github.com/aboutcode-org/scancode-toolkit/releases/download/v32.4.1/scancode-toolkit-32.4.1_py38-linux.tar.xz
171
+ tar -xf scancode-toolkit-32.4.1_py38-linux.tar.xz
172
+ cd scancode-toolkit-32.4.1/
173
173
  ./scancode --help
174
174
 
175
175
  python-inspector setup::
176
176
 
177
177
  cd ~/tmp/pyinsp-example/tools
178
178
  git clone https://github.com/aboutcode-org/python-inspector
179
- python3.8 -m venv venv
179
+ python3.10 -m venv venv
180
180
  source venv/bin/activate
181
181
  pip install --upgrade pip setuptools wheel
182
182
  cd python-inspector
@@ -207,7 +207,7 @@ Step 2: Build your code
207
207
  We perform a simple "editable" build in place::
208
208
 
209
209
  cd ~/tmp/pyinsp-example/codebase/ion
210
- python3.8 -m venv venv
210
+ python3.10 -m venv venv
211
211
  source venv/bin/activate
212
212
  pip install --upgrade pip setuptools wheel
213
213
  pip install --editable .
@@ -219,7 +219,7 @@ Step 3: Collect built code details
219
219
 
220
220
  We extract in place::
221
221
 
222
- cd ~/tmp/pyinsp-example/tools/scancode-toolkit-31.0.0rc2/
222
+ cd ~/tmp/pyinsp-example/tools/scancode-toolkit-32.4.1/
223
223
  ./extractcode --shallow ~/tmp/pyinsp-example/codebase/ion
224
224
 
225
225
  And collect built details::
@@ -21,7 +21,7 @@ jobs:
21
21
  - job: ${{ parameters.job_name }}
22
22
 
23
23
  pool:
24
- vmImage: 'ubuntu-16.04'
24
+ vmImage: 'ubuntu-22.04'
25
25
 
26
26
  container:
27
27
  image: ${{ parameters.container }}
@@ -1,6 +1,6 @@
1
1
  parameters:
2
2
  job_name: ''
3
- image_name: 'ubuntu-16.04'
3
+ image_name: 'ubuntu-22.04'
4
4
  container: ''
5
5
  python_path: ''
6
6
  python_version: ''
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
2
3
  #
3
4
  # Copyright (c) nexB Inc. and others. All rights reserved.
4
5
  # ScanCode is a trademark of nexB Inc.
@@ -24,13 +25,14 @@ import license_expression
24
25
  import packageurl
25
26
  import requests
26
27
  import saneyaml
27
- import utils_pip_compatibility_tags
28
28
  from commoncode import fileutils
29
29
  from commoncode.hash import multi_checksums
30
30
  from commoncode.text import python_safe_name
31
31
  from packvers import tags as packaging_tags
32
32
  from packvers import version as packaging_version
33
33
 
34
+ import utils_pip_compatibility_tags
35
+
34
36
  """
35
37
  Utilities to manage Python thirparty libraries source, binaries and metadata in
36
38
  local directories and remote repositories.
@@ -91,8 +93,7 @@ Wheel downloader
91
93
 
92
94
  - parse requirement file
93
95
  - create a TODO queue of requirements to process
94
- - done: create an empty map of processed binary requirements as
95
- {package name: (list of versions/tags}
96
+ - done: create an empty map of processed binary requirements as {package name: (list of versions/tags}
96
97
 
97
98
 
98
99
  - while we have package reqs in TODO queue, process one requirement:
@@ -114,13 +115,14 @@ TRACE_DEEP = False
114
115
  TRACE_ULTRA_DEEP = False
115
116
 
116
117
  # Supported environments
117
- PYTHON_VERSIONS = "37", "38", "39", "310"
118
+ PYTHON_VERSIONS = "310", "311", "312", "313", "314"
118
119
 
119
120
  PYTHON_DOT_VERSIONS_BY_VER = {
120
- "37": "3.7",
121
- "38": "3.8",
122
- "39": "3.9",
123
121
  "310": "3.10",
122
+ "311": "3.11",
123
+ "312": "3.12",
124
+ "313": "3.13",
125
+ "314": "3.14",
124
126
  }
125
127
 
126
128
 
@@ -132,10 +134,11 @@ def get_python_dot_version(version):
132
134
 
133
135
 
134
136
  ABIS_BY_PYTHON_VERSION = {
135
- "37": ["cp37", "cp37m", "abi3"],
136
- "38": ["cp38", "cp38m", "abi3"],
137
- "39": ["cp39", "cp39m", "abi3"],
138
137
  "310": ["cp310", "cp310m", "abi3"],
138
+ "311": ["cp311", "cp311m", "abi3"],
139
+ "312": ["cp312", "cp312m", "abi3"],
140
+ "313": ["cp313", "cp313m", "abi3"],
141
+ "314": ["cp314", "cp314m", "abi3"],
139
142
  }
140
143
 
141
144
  PLATFORMS_BY_OS = {
@@ -553,8 +556,7 @@ class Distribution(NameVer):
553
556
  Download this distribution into `dest_dir` directory.
554
557
  Return the fetched filename.
555
558
  """
556
- if not self.filename:
557
- raise ValueError(f"self.filename has no value but is required: {self.filename!r}")
559
+ assert self.filename
558
560
  if TRACE_DEEP:
559
561
  print(
560
562
  f"Fetching distribution of {self.name}=={self.version}:",
@@ -822,9 +824,9 @@ class Distribution(NameVer):
822
824
  """
823
825
  urls = LinksRepository.from_url(use_cached_index=use_cached_index).links
824
826
  errors = []
825
- extra_lic_names = [lic.get("file") for lic in self.extra_data.get("licenses", {})]
827
+ extra_lic_names = [l.get("file") for l in self.extra_data.get("licenses", {})]
826
828
  extra_lic_names += [self.extra_data.get("license_file")]
827
- extra_lic_names = [eln for eln in extra_lic_names if eln]
829
+ extra_lic_names = [ln for ln in extra_lic_names if ln]
828
830
  lic_names = [f"{key}.LICENSE" for key in self.get_license_keys()]
829
831
  for filename in lic_names + extra_lic_names:
830
832
  floc = os.path.join(dest_dir, filename)
@@ -844,7 +846,7 @@ class Distribution(NameVer):
844
846
  if TRACE:
845
847
  print(f"Fetched license from remote: {lic_url}")
846
848
 
847
- except Exception:
849
+ except:
848
850
  try:
849
851
  # try licensedb second
850
852
  lic_url = f"{LICENSEDB_API_URL}/{filename}"
@@ -857,9 +859,8 @@ class Distribution(NameVer):
857
859
  if TRACE:
858
860
  print(f"Fetched license from licensedb: {lic_url}")
859
861
 
860
- except Exception:
861
- msg = f"No text for license {filename} in expression "
862
- f"{self.license_expression!r} from {self}"
862
+ except:
863
+ msg = f'No text for license {filename} in expression "{self.license_expression}" from {self}'
863
864
  print(msg)
864
865
  errors.append(msg)
865
866
 
@@ -999,7 +1000,7 @@ def get_license_link_for_filename(filename, urls):
999
1000
  exception if no link is found or if there are more than one link for that
1000
1001
  file name.
1001
1002
  """
1002
- path_or_url = [url for url in urls if url.endswith(f"/{filename}")]
1003
+ path_or_url = [l for l in urls if l.endswith(f"/{filename}")]
1003
1004
  if not path_or_url:
1004
1005
  raise Exception(f"Missing link to file: {filename}")
1005
1006
  if not len(path_or_url) == 1:
@@ -1288,7 +1289,7 @@ class Wheel(Distribution):
1288
1289
  def is_pure_wheel(filename):
1289
1290
  try:
1290
1291
  return Wheel.from_filename(filename).is_pure()
1291
- except Exception:
1292
+ except:
1292
1293
  return False
1293
1294
 
1294
1295
 
@@ -1484,7 +1485,8 @@ class PypiPackage(NameVer):
1484
1485
  """
1485
1486
  if self.sdist:
1486
1487
  yield self.sdist
1487
- yield from self.wheels
1488
+ for wheel in self.wheels:
1489
+ yield wheel
1488
1490
 
1489
1491
  def get_url_for_filename(self, filename):
1490
1492
  """
@@ -1613,8 +1615,7 @@ class PypiSimpleRepository:
1613
1615
  type=dict,
1614
1616
  default=attr.Factory(lambda: defaultdict(dict)),
1615
1617
  metadata=dict(
1616
- help="Mapping of {name: {version: PypiPackage, version: PypiPackage, etc} "
1617
- "available in this repo"
1618
+ help="Mapping of {name: {version: PypiPackage, version: PypiPackage, etc} available in this repo"
1618
1619
  ),
1619
1620
  )
1620
1621
 
@@ -1628,8 +1629,7 @@ class PypiSimpleRepository:
1628
1629
  type=bool,
1629
1630
  default=False,
1630
1631
  metadata=dict(
1631
- help="If True, use any existing on-disk cached PyPI index files. "
1632
- "Otherwise, fetch and cache."
1632
+ help="If True, use any existing on-disk cached PyPI index files. Otherwise, fetch and cache."
1633
1633
  ),
1634
1634
  )
1635
1635
 
@@ -1638,8 +1638,7 @@ class PypiSimpleRepository:
1638
1638
  Return a mapping of all available PypiPackage version for this package name.
1639
1639
  The mapping may be empty. It is ordered by version from oldest to newest
1640
1640
  """
1641
- if not name:
1642
- raise ValueError(f"name is required: {name!r}")
1641
+ assert name
1643
1642
  normalized_name = NameVer.normalize_name(name)
1644
1643
  versions = self.packages[normalized_name]
1645
1644
  if not versions and normalized_name not in self.fetched_package_normalized_names:
@@ -1694,7 +1693,7 @@ class PypiSimpleRepository:
1694
1693
  )
1695
1694
  links = collect_urls(text)
1696
1695
  # TODO: keep sha256
1697
- links = [link.partition("#sha256=") for link in links]
1696
+ links = [l.partition("#sha256=") for l in links]
1698
1697
  links = [url for url, _, _sha256 in links]
1699
1698
  return links
1700
1699
 
@@ -1915,7 +1914,7 @@ def get_remote_file_content(
1915
1914
  # several redirects and that we can ignore content there. A HEAD request may
1916
1915
  # not get us this last header
1917
1916
  print(f" DOWNLOADING: {url}")
1918
- with requests.get(url, allow_redirects=True, stream=True, headers=headers) as response: # noqa: S113
1917
+ with requests.get(url, allow_redirects=True, stream=True, headers=headers) as response:
1919
1918
  status = response.status_code
1920
1919
  if status != requests.codes.ok: # NOQA
1921
1920
  if status == 429 and _delay < 20:
@@ -2134,7 +2133,7 @@ def call(args, verbose=TRACE):
2134
2133
  """
2135
2134
  if TRACE_DEEP:
2136
2135
  print("Calling:", " ".join(args))
2137
- with subprocess.Popen( # noqa: S603
2136
+ with subprocess.Popen(
2138
2137
  args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8"
2139
2138
  ) as process:
2140
2139
  stdouts = []
@@ -2199,7 +2198,7 @@ def download_wheels_with_pip(
2199
2198
  cli_args.extend(["--requirement", req_file])
2200
2199
 
2201
2200
  if TRACE:
2202
- print("Downloading wheels using command:", " ".join(cli_args))
2201
+ print(f"Downloading wheels using command:", " ".join(cli_args))
2203
2202
 
2204
2203
  existing = set(os.listdir(dest_dir))
2205
2204
  error = False
@@ -2232,7 +2231,7 @@ def download_wheels_with_pip(
2232
2231
 
2233
2232
  def check_about(dest_dir=THIRDPARTY_DIR):
2234
2233
  try:
2235
- subprocess.check_output(f"venv/bin/about check {dest_dir}".split()) # noqa: S603
2234
+ subprocess.check_output(f"venv/bin/about check {dest_dir}".split())
2236
2235
  except subprocess.CalledProcessError as cpe:
2237
2236
  print()
2238
2237
  print("Invalid ABOUT files:")
@@ -2283,5 +2282,5 @@ def get_license_expression(declared_licenses):
2283
2282
  return get_only_expression_from_extracted_license(declared_licenses)
2284
2283
  except ImportError:
2285
2284
  # Scancode is not installed, clean and join all the licenses
2286
- lics = [python_safe_name(lic).lower() for lic in declared_licenses]
2285
+ lics = [python_safe_name(l).lower() for l in declared_licenses]
2287
2286
  return " AND ".join(lics).lower()
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["setuptools >= 50", "wheel", "setuptools_scm[toml] >= 6"]
2
+ requires = ["setuptools >= 50", "wheel"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [tool.setuptools_scm]
@@ -12,7 +12,7 @@ importlib-resources==5.4.0
12
12
  iniconfig==1.1.1
13
13
  isort==5.10.1
14
14
  jeepney==0.7.1
15
- jinja2==3.0.3
15
+ jinja2==3.1.0
16
16
  keyring==23.4.1
17
17
  license-expression==30.0.0
18
18
  markupsafe==2.0.1
@@ -25,7 +25,7 @@ pluggy==1.6.0
25
25
  py==1.11.0
26
26
  pycodestyle==2.8.0
27
27
  pycparser==2.21
28
- pygments==2.12.0
28
+ pygments==2.13.0
29
29
  pytest==8.4.0
30
30
  pytest-xdist==3.7.0
31
31
  pytest-forked==1.6.0
@@ -9,14 +9,14 @@ dparse2==0.7.0
9
9
  fasteners==0.17.3
10
10
  idna==3.3
11
11
  importlib-metadata==4.12.0
12
- intbitset==3.1.0
12
+ intbitset==4.0.0
13
13
  packageurl-python==0.10.0
14
14
  packaging==24.2
15
15
  packvers==21.5
16
16
  pip-requirements-parser==32.0.1
17
17
  pkginfo2==30.0.0
18
18
  pydantic_settings == 2.8.1
19
- pydantic == 2.11.2
19
+ pydantic == 2.12.3
20
20
  pyparsing==3.0.9
21
21
  PyYAML==6.0
22
22
  requests==2.28.1
@@ -1,6 +1,7 @@
1
1
  [metadata]
2
2
  name = python-inspector
3
3
  license = Apache-2.0
4
+ version = 0.15.0
4
5
  description = python-inspector is is a collection of utilities to collect PyPI package metadata and resolve packages dependencies.
5
6
  long_description = file:README.rst
6
7
  long_description_content_type = text/x-rst
@@ -38,13 +39,12 @@ license_files =
38
39
  README.rst
39
40
 
40
41
  [options]
41
- python_requires = >=3.9
42
+ python_requires = >=3.10
42
43
  package_dir =
43
44
  =src
44
45
  packages = find:
45
46
  include_package_data = true
46
47
  zip_safe = false
47
- setup_requires = setuptools_scm[toml] >= 4
48
48
  install_requires =
49
49
  attrs >= 18.1, !=20.1.0
50
50
  click > 7.0
@@ -83,7 +83,7 @@ dev =
83
83
  ruff
84
84
  pytest-rerunfailures
85
85
  pytest-asyncio >= 0.21
86
- Sphinx>=5.0.2
86
+ Sphinx>=6.2.0
87
87
  sphinx-rtd-theme>=1.0.0
88
88
  sphinx-reredirects >= 0.1.2
89
89
  doc8>=0.11.2
@@ -534,7 +534,7 @@ class PypiWheelHandler(BasePypiHandler):
534
534
  for metapath in path.iterdir():
535
535
  if not metapath.name.endswith('METADATA'):
536
536
  continue
537
-
537
+
538
538
  yield parse_metadata(
539
539
  location=metapath,
540
540
  datasource_id=cls.datasource_id,
@@ -945,6 +945,8 @@ def get_requirements_txt_dependencies(location, include_nested=False):
945
945
 
946
946
  purl = purl and purl.to_string() or None
947
947
 
948
+ hash_options = req.hash_options or []
949
+ req.hash_options = []
948
950
  requirement = req.dumps()
949
951
 
950
952
  if location.endswith(
@@ -973,7 +975,7 @@ def get_requirements_txt_dependencies(location, include_nested=False):
973
975
  extra_data=dict(
974
976
  is_editable=req.is_editable,
975
977
  link=req.link and req.link.url or None,
976
- hash_options=req.hash_options or [],
978
+ hash_options=hash_options,
977
979
  is_constraint=req.is_constraint,
978
980
  is_archive=req.is_archive,
979
981
  is_wheel=req.is_wheel,
@@ -123,10 +123,10 @@ def node_to_value(node, body):
123
123
  if isinstance(node, ast.Constant):
124
124
  return node.value
125
125
 
126
- if isinstance(node, ast.Str):
126
+ if isinstance(node, ast.Constant) and isinstance(node.value, str):
127
127
  return node.s
128
128
 
129
- if isinstance(node, ast.Num):
129
+ if isinstance(node, ast.Constant) and isinstance(node.value, int):
130
130
  return node.n
131
131
 
132
132
  if isinstance(node, (ast.List, ast.Tuple, ast.Set,)):
@@ -172,7 +172,9 @@ def is_valid_version(
172
172
  """
173
173
  if parsed_version in bad_versions:
174
174
  return False
175
- if any(parsed_version not in r.specifier for r in requirements[identifier]):
175
+ if any(
176
+ not r.specifier.contains(parsed_version, prereleases=True) for r in requirements[identifier]
177
+ ):
176
178
  if all(not r.specifier for r in requirements[identifier]):
177
179
  return True
178
180
  return False
@@ -21,7 +21,7 @@ from python_inspector.utils import write_output_in_file
21
21
 
22
22
  TRACE = False
23
23
 
24
- __version__ = "0.14.3"
24
+ __version__ = "0.14.4"
25
25
 
26
26
  DEFAULT_PYTHON_VERSION = settings.DEFAULT_PYTHON_VERSION
27
27
  PYPI_SIMPLE_URL = settings.PYPI_SIMPLE_URL