Enable isort linting rules (#267)
See https://docs.astral.sh/ruff/rules/#isort-i.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import re
|
||||
import xml.dom.minidom
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetches Amazon Neptune versions from its RSS feed on docs.aws.amazon.com."""
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import re
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
|
||||
from common import dates, endoflife
|
||||
from common.git import Git
|
||||
|
||||
"""Fetches Apache HTTP Server versions and release date from its git repository
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import logging
|
||||
import re
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetches and parses version and release date information from Apple's support website for macOS,
|
||||
iOS, iPadOS, and watchOS. While all URLs are fetched once for performance reasons, the actual
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import datetime
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
|
||||
from common import dates, endoflife
|
||||
from requests_html import HTMLSession
|
||||
|
||||
"""Fetches Artifactory versions from https://jfrog.com, using requests_html because JavaScript is
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import datetime
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import endoflife
|
||||
from common import endoflife, http
|
||||
|
||||
"""Fetches AWS lambda runtimes from https://docs.aws.amazon.com.
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import sys
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetches versions from repositories managed with cgit, such as the Linux kernel repository.
|
||||
Ideally we would want to use the git repository directly, but cgit-managed repositories don't support partial clone."""
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import re
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from datetime import datetime
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetches versions from Adobe ColdFusion release notes on helpx.adobe.com.
|
||||
|
||||
x.y.0 release dates are unfortunately not available in the release notes and have to updated them manually each time a
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import frontmatter
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
from datetime import datetime
|
||||
from glob import glob
|
||||
|
||||
import frontmatter
|
||||
from liquid import Template
|
||||
|
||||
logging.basicConfig(format=logging.BASIC_FORMAT, level=logging.INFO)
|
||||
|
||||
# Handle versions having at least 2 digits (ex. 1.2) and at most 4 digits (ex. 1.2.3.4), with an optional leading "v".
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import logging
|
||||
from concurrent.futures import as_completed
|
||||
|
||||
from requests import Response
|
||||
from requests.adapters import HTTPAdapter
|
||||
from requests.exceptions import ChunkedEncodingError
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from common import dates, endoflife
|
||||
from requests_html import HTMLSession
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
|
||||
"""Fetches Confluence versions from www.atlassian.com.
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import re
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
MILESTONE_PATTERN = re.compile(r'COS \d+ LTS')
|
||||
VERSION_PATTERN = re.compile(r"^(cos-\d+-\d+-\d+-\d+)")
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import re
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from datetime import datetime
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetches versions from release notes of each minor version on docs.couchbase.com.
|
||||
|
||||
Dates are not available for all versions, so they must be set manually in some cases.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common.git import Git
|
||||
from subprocess import run
|
||||
|
||||
from common import dates, endoflife
|
||||
from common.git import Git
|
||||
|
||||
"""Fetch Debian versions by parsing news in www.debian.org source repository."""
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import sys
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
METHOD = 'distrowatch'
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import sys
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import http
|
||||
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetches releases from the Docker Hub API.
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetches EKS versions from AWS docs.
|
||||
Now that AWS no longer publishes docs on GitHub, we use the Web Archive to still get the older versions."""
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import re
|
||||
import urllib.parse
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetch Firefox versions with their dates from https://www.mozilla.org/.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
|
||||
from common import dates, endoflife
|
||||
from common.git import Git
|
||||
|
||||
"""Fetches versions from tags in a git repository. This replace the old update.rb script."""
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import json
|
||||
import logging
|
||||
import sys
|
||||
import subprocess
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
import sys
|
||||
|
||||
from common import dates, endoflife
|
||||
|
||||
"""Fetches versions from GitHub releases using the GraphQL API and the GitHub CLI.
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import re
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
# https://regex101.com/r/zPxBqT/1
|
||||
VERSION_PATTERN = re.compile(r"\d.\d+\.\d+-gke\.\d+")
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
product = endoflife.Product("graalvm")
|
||||
print(f"::group::{product.name}")
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import re
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import endoflife
|
||||
from datetime import datetime
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import endoflife, http
|
||||
|
||||
CYCLE_PATTERN = re.compile(r"^(\d+\.\d+)/$")
|
||||
DATE_AND_VERSION_PATTERN = re.compile(r"^(\d{4})/(\d{2})/(\d{2})\s+:\s+(\d+\.\d+\.\d.?)$") # https://regex101.com/r/1JCnFC/1
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
URLS = [
|
||||
"https://web.archive.org/web/20210123024247/https://www.ibm.com/support/pages/aix-support-lifecycle-information",
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from common import dates, endoflife
|
||||
from requests_html import HTMLSession
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
|
||||
"""Fetches Jira versions from www.atlassian.com.
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import re
|
||||
import xml.dom.minidom
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetch Looker versions from the Google Cloud release notes RSS feed.
|
||||
"""
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import datetime
|
||||
import sys
|
||||
from common import http
|
||||
from common import endoflife
|
||||
|
||||
from common import endoflife, http
|
||||
|
||||
METHOD = "maven"
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import sys
|
||||
from common import dates
|
||||
from common import http
|
||||
from common import endoflife
|
||||
|
||||
from common import dates, endoflife, http
|
||||
|
||||
METHOD = "npm"
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import http
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetch Nutanix products versions from https://portal.nutanix.com/api/v1."""
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from common import dates, endoflife
|
||||
from requests_html import HTMLSession
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
|
||||
"""Fetch Java versions from https://www.java.com/releases/.
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import re
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import http
|
||||
from common import dates, endoflife, http
|
||||
|
||||
IDENTIFIERS_BY_PRODUCT = {
|
||||
"pan-os": "pan-os-panorama",
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
MAIN_URL = "https://www.php.net/releases/index.php?json&max=-1"
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetches versions from Plesk's change log.
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import sys
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
|
||||
from common import dates, endoflife, http
|
||||
|
||||
METHOD = "pypi"
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import re
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetches Amazon RDS versions from the version management pages on AWS docs.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import re
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
|
||||
from common import dates, endoflife
|
||||
from common.git import Git
|
||||
|
||||
"""Fetches Red Hat OpenShift versions from the documentation's git repository"""
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import re
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import http
|
||||
from common import dates, endoflife, http
|
||||
|
||||
"""Fetches Satellite versions from access.redhat.com.
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import re
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import http
|
||||
from common import dates, endoflife, http
|
||||
|
||||
# https://regex101.com/r/877ibq/1
|
||||
VERSION_PATTERN = re.compile(r"RHEL (?P<major>\d)(\. ?(?P<minor>\d+))?(( Update (?P<minor2>\d))| GA)?")
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
product = endoflife.Product("rockylinux")
|
||||
print(f"::group::{product.name}")
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import re
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import http
|
||||
from common import dates, endoflife, http
|
||||
|
||||
# https://regex101.com/r/c1ribd/1
|
||||
VERSION_PATTERN = re.compile(r"^ROS (?P<name>(\w| )+)")
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import logging
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import http
|
||||
from common import dates, endoflife, http
|
||||
|
||||
product = endoflife.Product("sles")
|
||||
print(f"::group::{product.name}")
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import re
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
VERSION_DATE_PATTERN = re.compile(r"Splunk Enterprise (?P<version>\d+\.\d+(?:\.\d+)*) was (?:first )?released on (?P<date>\w+\s\d\d?,\s\d{4})\.", re.MULTILINE)
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import http
|
||||
from common import dates, endoflife, http
|
||||
|
||||
product = endoflife.Product("typo3")
|
||||
print(f"::group::{product.name}")
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from bs4 import BeautifulSoup
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import http
|
||||
from common import dates, endoflife, http
|
||||
|
||||
# Fetches the Unity LTS releases from the Unity website. Non-LTS releases are not listed there,
|
||||
# so this automation is only partial.
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import mwparserfromhell
|
||||
import re
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import http
|
||||
|
||||
import mwparserfromhell
|
||||
from common import dates, endoflife, http
|
||||
|
||||
DATE_PATTERN = re.compile(r"\d{4}-\d{2}-\d{2}")
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from bs4 import BeautifulSoup
|
||||
from common import http
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
from common import dates, endoflife, http
|
||||
|
||||
# There is no build history for versions 2015 and below.
|
||||
# This is not a big deal because there was no version for those release in a very long time.
|
||||
|
||||
Reference in New Issue
Block a user