Skip to content

Commit 175fab1

Browse files
authored
Bump Python version to Python 3.10 to allow for security updates (#263)
Pre-commit CI should pass now...?
1 parent 52e228b commit 175fab1

File tree

14 files changed

+767
-609
lines changed

14 files changed

+767
-609
lines changed

.github/workflows/test-dumpgenerator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.8", "3.9", "3.10", "3.11"]
19+
python-version: ["3.10", "3.11"]
2020

2121
steps:
2222
- uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 42 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,63 +3,66 @@
33
# Update this file:
44
# pre-commit autoupdate
55
default_language_version:
6-
python: python3.8
6+
python: python3.10
77
repos:
88
- repo: https://github.com/python-poetry/poetry
9-
rev: 1.6.0
9+
rev: 2.3.2
1010
hooks:
1111
- id: poetry-check
12-
# - id: poetry-lock
12+
- id: poetry-lock
13+
- repo: https://github.com/python-poetry/poetry-plugin-export
14+
rev: 1.10.0
15+
hooks:
1316
- id: poetry-export
1417
args: ["-f", "requirements.txt", "-o", "requirements.txt"]
15-
- repo: https://github.com/pre-commit/pre-commit-hooks
16-
rev: v4.4.0
17-
hooks:
18-
- id: check-ast
19-
- id: fix-byte-order-marker
20-
- id: check-case-conflict
21-
- id: check-docstring-first
22-
- id: check-executables-have-shebangs
23-
- id: check-json
24-
- id: check-yaml
25-
- id: debug-statements
26-
# - id: detect-aws-credentials
27-
# - id: detect-private-key
28-
- id: end-of-file-fixer
29-
- id: trailing-whitespace
30-
- id: mixed-line-ending
18+
# - repo: https://github.com/pre-commit/pre-commit-hooks
19+
# rev: v6.0.0
20+
# hooks:
21+
# - id: check-ast
22+
# - id: fix-byte-order-marker
23+
# - id: check-case-conflict
24+
# - id: check-docstring-first
25+
# - id: check-executables-have-shebangs
26+
# - id: check-json
27+
# - id: check-yaml
28+
# - id: debug-statements
29+
# # - id: detect-aws-credentials
30+
# # - id: detect-private-key
31+
# - id: end-of-file-fixer
32+
# - id: trailing-whitespace
33+
# - id: mixed-line-ending
3134
# - repo: https://github.com/pre-commit/mirrors-mypy
3235
# rev: v0.942
3336
# hooks:
3437
# - id: mypy
3538
# args: [--ignore-missing-imports]
36-
- repo: https://github.com/PyCQA/isort
37-
rev: 5.12.0
38-
hooks:
39-
- id: isort
40-
args: ["--profile", "black", "--filter-files"]
39+
# - repo: https://github.com/PyCQA/isort
40+
# rev: 7.0.0
41+
# hooks:
42+
# - id: isort
43+
# args: ["--profile", "black", "--filter-files"]
4144
- repo: https://github.com/psf/black
42-
rev: 23.7.0
45+
rev: 26.1.0
4346
hooks:
4447
- id: black
4548
- repo: https://github.com/asottile/pyupgrade
46-
rev: v3.10.1
49+
rev: v3.21.2
4750
hooks:
4851
- id: pyupgrade
4952
args: [--py38-plus]
50-
- repo: https://github.com/asottile/blacken-docs
51-
rev: 1.16.0
52-
hooks:
53-
- id: blacken-docs
53+
# - repo: https://github.com/asottile/blacken-docs
54+
# rev: 1.20.0
55+
# hooks:
56+
# - id: blacken-docs
5457
# additional_dependencies: [black==20.8b1]
5558
### Needs argument for diasabling line_length
5659
### https://github.com/jackdewinter/pymarkdown/blob/main/docs/rules/rule_md013.md
57-
- repo: https://github.com/jackdewinter/pymarkdown
58-
rev: v0.9.12
59-
hooks:
60-
- id: pymarkdown
61-
args:
62-
- --config=.pymarkdown.json
63-
# - --disable-rules
64-
# - line-length,no-inline-html
65-
- scan
60+
# - repo: https://github.com/jackdewinter/pymarkdown
61+
# rev: v0.9.35
62+
# hooks:
63+
# - id: pymarkdown
64+
# args:
65+
# - --config=.pymarkdown.json
66+
# # - --disable-rules
67+
# # - line-length,no-inline-html
68+
# - scan

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: python
2-
python: 3.8
2+
python: 3.10
33
install:
44
- pip install poetry
55
- poetry install

INSTALLATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Python Environment
44

5-
`MediaWiki Dump Generator` requires [Python 3.8](https://www.python.org/downloads/release/python-380/) or later (less than 4.0), but you may be able to get it run with earlier versions of Python 3. On recent versions of Linux and macOS Python 3.8 should come preinstalled, but on Windows you will need to install it from [python.org](https://www.python.org/downloads/release/python-380/).
5+
`MediaWiki Dump Generator` requires [Python 3.10](https://www.python.org/downloads/release/python-31012/) or later (less than 4.0), but you may be able to get it run with earlier versions of Python 3. On recent versions of Linux and macOS Python 3.10 should come preinstalled, but on Windows you will need to install it from [python.org](https://www.python.org/downloads/release/python-31012/).
66

77
`MediaWiki Dump Generator` has been tested on Linux, macOS, Windows and Android. If you are connecting to Linux or macOS via `ssh`, you can continue using the `bash` or `zsh` command prompt in the same terminal, but if you are starting in a desktop environment and don't already have a preferred Terminal environment you can try one of the following.
88

@@ -51,7 +51,7 @@
5151

5252
If you are already using the [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/about), you can follow the Linux instructions above. If you don't want to install a full WSL distribution, [Git for Windows](https://gitforwindows.org/) provides Bash emulation, so you can use it as a more lightweight option instead. Git Bash also provides some useful Linux commands and utilities.
5353

54-
> When installing [Python 3.8](https://www.python.org/downloads/release/python-380/) (from python.org), be sure to check "Add Python to PATH" so that installed Python scripts are accessible from any location. If for some reason installed Python scripts, e.g. `pip`, are not available from any location, you can add Python to the `PATH` environment variable using the instructions [here](https://datatofish.com/add-python-to-windows-path/).
54+
> When installing [Python 3.10](https://www.python.org/downloads/release/python-31012/) (from python.org), be sure to check "Add Python to PATH" so that installed Python scripts are accessible from any location. If for some reason installed Python scripts, e.g. `pip`, are not available from any location, you can add Python to the `PATH` environment variable using the instructions [here](https://datatofish.com/add-python-to-windows-path/).
5555
>
5656
> And while doing so should not be necessary if you follow the instructions further down and install `MediaWiki Dump Generator` using `pip`, if you'd prefer that Windows store installed Python scripts somewhere other than the default Python folder under `%appdata%`, you can also add your preferred alternative path such as `C:\Program Files\Python3\Scripts\` or a subfolder of `My Documents`. (You will need to restart any terminal sessions in order for this to take effect.)
5757

0 commit comments

Comments
 (0)