8000 Start collecting data for next EOL Python 3.9 · hugovk/drop-python@ea50263 · GitHub
[go: up one dir, main page]

Skip to content

Commit ea50263

Browse files
committed
Start collecting data for next EOL Python 3.9
1 parent daecf51 commit ea50263

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ wget https://endoflife.date/api/python.json -O python-eol.json
2323
export OPENSSL_CONF=/dev/null
2424

2525
# Generate the files
26-
python3 generate.py --version 2.{0,1,2,3,4,5,6,7} 3.{0,1,2,3,4,5,6,7,8}
26+
python3 generate.py --version 2.{0,1,2,3,4,5,6,7} 3.{0,1,2,3,4,5,6,7,8,9}
2727

2828
# Create index.html files from the template
29-
python3 template.py --version 2.{0,1,2,3,4,5,6,7} 3.{0,1,2,3,4,5,6,7,8}
29+
python3 template.py --version 2.{0,1,2,3,4,5,6,7} 3.{0,1,2,3,4,5,6,7,8,9}
3030

3131
# Make output directory, don't fail if it exists
3232
mkdir -p build
3333

3434
# Copy to output directory
35-
cp -R {2.{0,1,2,3,4,5,6,7},3.{0,1,2,3,4,5,6,7,8},all.html,index.html,results.json,style.css,wheel.css} build
35+
cp -R {2.{0,1,2,3,4,5,6,7},3.{0,1,2,3,4,5,6,7,8,9},all.html,index.html,results.json,style.css,wheel.css} build
3636

3737
# Remove templated index.html files
38-
rm {2.{0,1,2,3,4,5,6,7},3.{0,1,2,3,4,5,6,7,8}}/index.html
38+
rm {2.{0,1,2,3,4,5,6,7},3.{0,1,2,3,4,5,6,7,8,9}}/index.html

template.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@
105105
<li><a href="https://docs.python.org/3/whatsnew/3.9.html">And more!</a></li>
106106
""" # noqa: E501
107107
},
108+
"3.9": {
109+
"reasons": """
110+
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-310">use <code>match</code> statement and write union types as <code>X | Y</code></a></li>
111+
<li><a href="https://docs.python.org/3/whatsnew/3.9.html">And more!</a></li>
112+
""" # noqa: E501
113+
},
108114
}
109115

110116
REASONS = """

0 commit comments

Comments
 (0)
0