[ros] Remove auto method (#484)

All Ros 1 version are now EOL.
This commit is contained in:
Marc Wrobel
2025-08-03 00:05:03 +02:00
committed by GitHub
parent 0ce799c2e8
commit 3da8561d4b
2 changed files with 0 additions and 86 deletions

View File

@@ -1,57 +0,0 @@
{
"releases": {},
"versions": {
"noetic": {
"name": "noetic",
"date": "2020-05-23"
},
"melodic": {
"name": "melodic",
"date": "2018-05-23"
},
"lunar": {
"name": "lunar",
"date": "2017-05-23"
},
"kinetic": {
"name": "kinetic",
"date": "2016-05-23"
},
"jade": {
"name": "jade",
"date": "2015-05-23"
},
"indigo": {
"name": "indigo",
"date": "2014-07-22"
},
"hydro": {
"name": "hydro",
"date": "2013-09-04"
},
"groovy": {
"name": "groovy",
"date": "2012-12-31"
},
"fuerte": {
"name": "fuerte",
"date": "2012-04-23"
},
"electric": {
"name": "electric",
"date": "2011-08-30"
},
"diamondback": {
"name": "diamondback",
"date": "2011-03-02"
},
"cturtle": {
"name": "cturtle",
"date": "2010-08-02"
},
"boxturtle": {
"name": "boxturtle",
"date": "2010-03-02"
}
}
}

View File

@@ -1,29 +0,0 @@
import logging
from common import dates, http
from common.releasedata import ProductData, config_from_argv
config = config_from_argv()
with ProductData(config.product) as product_data:
html = http.fetch_html(config.url)
for tr in html.findAll("tr"):
td_list = tr.findAll("td")
if len(td_list) == 0:
continue
version_str = td_list[0].get_text().strip()
version_match = config.first_match(version_str)
if not version_match:
logging.warning(f"Skipping version '{version_str}': does not match the expected pattern")
continue
# Get the "code" (such as noetic) instead of the display name (such as Noetic Ninjemys)
version = td_list[0].findAll("a")[0]["href"][1:]
try:
date = dates.parse_date(td_list[1].get_text())
except ValueError: # The day has a suffix (such as May 23rd, 2020)
x = td_list[1].get_text().split(",")
date = dates.parse_date(x[0][:-2] + x[1])
product_data.declare_version(version, date)