Skip to content

Commit e963775

Browse files
authored
Merge pull request github#10553 from github/8032-python-2-deprecation
Minor updates to reflect recommendations for Python support
2 parents 87cc048 + 8920d73 commit e963775

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

docs/codeql/codeql-cli/creating-codeql-databases.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ Python
132132

133133
When creating databases for Python you must ensure:
134134

135-
- You have the all of the required versions of Python installed.
135+
- You have Python 3 installed and available to the CodeQL extractor.
136+
- You have the version of Python used by your code installed.
136137
- You have access to the `pip <https://pypi.org/project/pip/>`__
137138
packaging management system and can install any
138139
packages that the codebase depends on.

docs/codeql/support/reusables/versions-compilers.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
Eclipse compiler for Java (ECJ) [5]_",``.java``
2323
JavaScript,ECMAScript 2022 or lower,Not applicable,"``.js``, ``.jsx``, ``.mjs``, ``.es``, ``.es6``, ``.htm``, ``.html``, ``.xhtm``, ``.xhtml``, ``.vue``, ``.hbs``, ``.ejs``, ``.njk``, ``.json``, ``.yaml``, ``.yml``, ``.raml``, ``.xml`` [6]_"
24-
Python,"2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10",Not applicable,``.py``
25-
Ruby [7]_,"up to 3.0.2",Not applicable,"``.rb``, ``.erb``, ``.gemspec``, ``Gemfile``"
26-
TypeScript [8]_,"2.6-4.8",Standard TypeScript compiler,"``.ts``, ``.tsx``, ``.mts``, ``.cts``"
24+
Python [7]_,"2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10",Not applicable,``.py``
25+
Ruby [8]_,"up to 3.0.2",Not applicable,"``.rb``, ``.erb``, ``.gemspec``, ``Gemfile``"
26+
TypeScript [9]_,"2.6-4.8",Standard TypeScript compiler,"``.ts``, ``.tsx``, ``.mts``, ``.cts``"
2727

2828
.. container:: footnote-group
2929

@@ -33,5 +33,6 @@
3333
.. [4] Builds that execute on Java 7 to 19 can be analyzed. The analysis understands Java 19 standard language features.
3434
.. [5] ECJ is supported when the build invokes it via the Maven Compiler plugin or the Takari Lifecycle plugin.
3535
.. [6] JSX and Flow code, YAML, JSON, HTML, and XML files may also be analyzed with JavaScript files.
36-
.. [7] Requires glibc 2.17.
37-
.. [8] TypeScript analysis is performed by running the JavaScript extractor with TypeScript enabled. This is the default for LGTM.
36+
.. [7] The extractor requires Python 3 to run. To analyze Python 2.7 you should install both versions of Python.
37+
.. [8] Requires glibc 2.17.
38+
.. [9] TypeScript analysis is performed by running the JavaScript extractor with TypeScript enabled. This is the default for LGTM.

0 commit comments

Comments
 (0)