chore: remove legacy / deprecated files (#3781)
* chore: remove changelog files * chore: remove data dir from source * chore: exclude /data completely in gitignore
This commit is contained in:
parent
016ee71855
commit
b65182150f
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -26,10 +26,13 @@
|
|||
/.tmp
|
||||
/attic
|
||||
/bin
|
||||
/data
|
||||
/docker/docker-compose.extend-custom.yml
|
||||
/env
|
||||
/etc
|
||||
/ghostdriver.log
|
||||
/htmlcov
|
||||
/ietf/static/ietf/bootstrap
|
||||
/include
|
||||
/INSTALL.pdf
|
||||
/latest-coverage.json
|
||||
|
@ -56,5 +59,3 @@
|
|||
*.pyc
|
||||
__pycache__
|
||||
node_modules
|
||||
ietf/static/ietf/bootstrap
|
||||
/docker/docker-compose.extend-custom.yml
|
75
changelog.py
75
changelog.py
|
@ -1,75 +0,0 @@
|
|||
# Copyright The IETF Trust 2012-2019, All Rights Reserved
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
import re
|
||||
import six
|
||||
from tzparse import tzparse
|
||||
from datetime import datetime as Datetime
|
||||
|
||||
def parse_date(dstr):
|
||||
formats = [
|
||||
"%d %b %Y %H:%M:%S %Z", # standard logfile format
|
||||
"%d %b %Y %H:%M:%S",
|
||||
"%d %b %Y %H:%M %Z",
|
||||
"%d %b %Y %H:%M",
|
||||
"%d %b %Y %Z",
|
||||
"%Y-%m-%d %H:%M:%S %Z",
|
||||
"%Y-%m-%d %H:%M:%S",
|
||||
"%Y-%m-%d_%H:%M:%S %Z",
|
||||
"%Y-%m-%d_%H:%M:%S",
|
||||
"%Y-%m-%dT%H:%M:%S%Z",
|
||||
"%Y-%m-%dT%H:%M:%S",
|
||||
"%Y-%m-%d %H:%M %Z",
|
||||
"%Y-%m-%d %H:%M",
|
||||
"%Y-%m-%d",
|
||||
]
|
||||
for format in formats:
|
||||
try:
|
||||
t = tzparse(dstr, format)
|
||||
return t
|
||||
except ValueError:
|
||||
pass
|
||||
raise Exception("Couldn't parse the date string '%s'" % dstr)
|
||||
|
||||
class ChangeLogEntry:
|
||||
package = ""
|
||||
version = ""
|
||||
logentry = ""
|
||||
author = ""
|
||||
email = ""
|
||||
date = ""
|
||||
time = ""
|
||||
title = ""
|
||||
|
||||
def parse(logfile):
|
||||
ver_line = r"^(\w+) \((\S+)\) (\S+;)? (?:urgency=(\S+))?$"
|
||||
sig_line = r"^ -- ([^<]+) <([^>]+)> (.*?) *$"
|
||||
inf_line = r"^ \*\*(.*)\*\* *"
|
||||
|
||||
entries = []
|
||||
if isinstance(logfile, six.string_types):
|
||||
logfile = open(logfile)
|
||||
entry = None
|
||||
for line in logfile:
|
||||
if re.match(ver_line, line):
|
||||
package, version, distribution, urgency = re.match(ver_line, line).groups()
|
||||
entry = ChangeLogEntry()
|
||||
entry.package = package
|
||||
entry.version = version
|
||||
entry.logentry = ""
|
||||
elif re.match(sig_line, line):
|
||||
author, email, date = re.match(sig_line, line).groups()
|
||||
entry.author = author
|
||||
entry.email = email
|
||||
entry.date = date
|
||||
entry.time = parse_date(date)
|
||||
entry.logentry = entry.logentry.rstrip()
|
||||
entries += [ entry ]
|
||||
elif entry and re.match(inf_line, line):
|
||||
entry.title = re.match(inf_line, line).group(1)
|
||||
elif entry:
|
||||
entry.logentry += line
|
||||
else:
|
||||
print("Unexpected line: '%s'" % line)
|
||||
return entries
|
6
data/.gitignore
vendored
6
data/.gitignore
vendored
|
@ -1,6 +0,0 @@
|
|||
/ietf_utf8.bin.tar.bz2
|
||||
/ietf_utf8.sql.gz
|
||||
/mysql
|
||||
/.com.apple.backupd.*
|
||||
/developers
|
||||
/nomcom_keys
|
|
@ -49,43 +49,11 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
# Create assets directories
|
||||
# Create data directories
|
||||
|
||||
for sub in \
|
||||
test/id \
|
||||
test/staging \
|
||||
test/archive \
|
||||
test/rfc \
|
||||
test/media \
|
||||
test/wiki/ietf \
|
||||
data/nomcom_keys/public_keys \
|
||||
data/developers/ietf-ftp \
|
||||
data/developers/ietf-ftp/bofreq \
|
||||
data/developers/ietf-ftp/charter \
|
||||
data/developers/ietf-ftp/conflict-reviews \
|
||||
data/developers/ietf-ftp/internet-drafts \
|
||||
data/developers/ietf-ftp/rfc \
|
||||
data/developers/ietf-ftp/status-changes \
|
||||
data/developers/ietf-ftp/yang/catalogmod \
|
||||
data/developers/ietf-ftp/yang/draftmod \
|
||||
data/developers/ietf-ftp/yang/ianamod \
|
||||
data/developers/ietf-ftp/yang/invalmod \
|
||||
data/developers/ietf-ftp/yang/rfcmod \
|
||||
data/developers/www6s \
|
||||
data/developers/www6s/staging \
|
||||
data/developers/www6s/wg-descriptions \
|
||||
data/developers/www6s/proceedings \
|
||||
data/developers/www6/ \
|
||||
data/developers/www6/iesg \
|
||||
data/developers/www6/iesg/evaluation \
|
||||
data/developers/media/photo \
|
||||
; do
|
||||
dir="/workspace/$sub"
|
||||
if [ ! -d "$dir" ]; then
|
||||
echo "Creating dir $dir"
|
||||
mkdir -p "$dir";
|
||||
fi
|
||||
done
|
||||
echo "Creating data directories..."
|
||||
chmod +x ./docker/scripts/app-create-dirs.sh
|
||||
./docker/scripts/app-create-dirs.sh
|
||||
|
||||
# Download latest coverage results file
|
||||
|
||||
|
|
|
@ -1007,7 +1007,6 @@ BIBXML_BASE_PATH = '/a/ietfdata/derived/bibxml'
|
|||
|
||||
# Timezone files for iCalendar
|
||||
TZDATA_ICS_PATH = BASE_DIR + '/../vzic/zoneinfo/'
|
||||
CHANGELOG_PATH = BASE_DIR + '/../changelog'
|
||||
|
||||
SECR_BLUE_SHEET_PATH = '/a/www/ietf-datatracker/documents/blue_sheet.rtf'
|
||||
SECR_BLUE_SHEET_URL = '//datatracker.ietf.org/documents/blue_sheet.rtf'
|
||||
|
|
Loading…
Reference in a new issue