Disallow crawling 3.9 docs#332
Conversation
|
Well spotted. I was going to suggest adding this to the checklist at https://peps.python.org/pep-0101/#moving-to-end-of-life so we don't forget next time, but in the interest of saving me work in the 2030s, can we generate it from https://peps.python.org/api/release-cycle.json ? |
I tried to mock that in the test ;-) |
| Disallow: /3.9/ | ||
| {% for version in versions -%} | ||
| {% if version.status == "EOL" -%} | ||
| Disallow: /{{ version.name }}/ |
There was a problem hiding this comment.
Will this include all of /2/ and /2.0/ - /3.10/?
Will it add any others?
https://peps.python.org/api/release-cycle.json only goes back to 2.6.
https://peps.python.org/api/python-releases.json has more but is more plumbing. We could hardcode the oldest ones, and the newer ones will be updated automatically.
There was a problem hiding this comment.
I opted to hardcode the old ones, with that, it adds one line:
+ Disallow: /3.9/
No description provided.