From 1c301230e43932975a3b6c7bfb1562ea3fbdcc50 Mon Sep 17 00:00:00 2001 From: Ian Jackson <ijackson@chiark.greenend.org.uk> Date: Thu, 17 Feb 2022 18:02:58 +0000 Subject: [PATCH] rename *.py scripts to bare name Update all references. There are three remaining hits for git-grep '\.py\b' all of which are scripts in "little-t-tor", not here in arti. --- crates/tor-rtcompat/misc/{matrix.py => matrix} | 0 doc/Release.md | 4 ++-- maint/{add_warning.py => add_warning} | 2 +- maint/{check_toposort.py => check_toposort} | 0 maint/{gen_md_links.py => gen_md_links} | 2 +- maint/{list_crates.py => list_crates} | 0 ...s_coverage_cobertura.py => postprocess_coverage_cobertura} | 0 ...postprocess_coverage_html.py => postprocess_coverage_html} | 0 maint/with_coverage | 4 ++-- 9 files changed, 6 insertions(+), 6 deletions(-) rename crates/tor-rtcompat/misc/{matrix.py => matrix} (100%) rename maint/{add_warning.py => add_warning} (97%) rename maint/{check_toposort.py => check_toposort} (100%) rename maint/{gen_md_links.py => gen_md_links} (99%) rename maint/{list_crates.py => list_crates} (100%) rename maint/{postprocess_coverage_cobertura.py => postprocess_coverage_cobertura} (100%) rename maint/{postprocess_coverage_html.py => postprocess_coverage_html} (100%) diff --git a/crates/tor-rtcompat/misc/matrix.py b/crates/tor-rtcompat/misc/matrix similarity index 100% rename from crates/tor-rtcompat/misc/matrix.py rename to crates/tor-rtcompat/misc/matrix diff --git a/doc/Release.md b/doc/Release.md index 240a0794a5..014405f106 100644 --- a/doc/Release.md +++ b/doc/Release.md @@ -31,7 +31,7 @@ To bump the patch version of _every_ crate, run: - ; for crate in $(./maint/list_crates.py); do cargo set-version -p "$crate" --bump patch; done + ; for crate in $(./maint/list_crates); do cargo set-version -p "$crate" --bump patch; done To find only the crates that changed since version 0.0.x, you can run: @@ -47,7 +47,7 @@ a list of crates from lowest- to highest-level, see the top-level Cargo.toml. - ; for crate in $(./maint/list_crates.py); do cargo publish -p "$crate"; echo "Sleeping"; sleep 30; done + ; for crate in $(./maint/list_crates); do cargo publish -p "$crate"; echo "Sleeping"; sleep 30; done (The "sleep 30" is probably too long, but some delay seems to be necessary to give crates.io time to publish each crate before the next diff --git a/maint/add_warning.py b/maint/add_warning similarity index 97% rename from maint/add_warning.py rename to maint/add_warning index dd265cb0a6..4744c3cd03 100755 --- a/maint/add_warning.py +++ b/maint/add_warning @@ -108,7 +108,7 @@ def main(lints,files): if not files: print("No files provided. Example usage:") - print(" ./maint/add_warning.py ./maint/add_warning.py crates/*/src/{lib,main}.rs") + print(" ./maint/add_warning ./maint/add_warning crates/*/src/{lib,main}.rs") for fn in files: process(lints, fn) diff --git a/maint/check_toposort.py b/maint/check_toposort similarity index 100% rename from maint/check_toposort.py rename to maint/check_toposort diff --git a/maint/gen_md_links.py b/maint/gen_md_links similarity index 99% rename from maint/gen_md_links.py rename to maint/gen_md_links index d6f2716530..8a28da9f95 100644 --- a/maint/gen_md_links.py +++ b/maint/gen_md_links @@ -8,7 +8,7 @@ the appropriate https URLs for them. Takes input either from a file, or from stdin. Example: - ./gen_md_links.py < new_changelog + ./gen_md_links < new_changelog """ import re, subprocess diff --git a/maint/list_crates.py b/maint/list_crates similarity index 100% rename from maint/list_crates.py rename to maint/list_crates diff --git a/maint/postprocess_coverage_cobertura.py b/maint/postprocess_coverage_cobertura similarity index 100% rename from maint/postprocess_coverage_cobertura.py rename to maint/postprocess_coverage_cobertura diff --git a/maint/postprocess_coverage_html.py b/maint/postprocess_coverage_html similarity index 100% rename from maint/postprocess_coverage_html.py rename to maint/postprocess_coverage_html diff --git a/maint/with_coverage b/maint/with_coverage index 85a03126e4..e8470ee157 100755 --- a/maint/with_coverage +++ b/maint/with_coverage @@ -138,7 +138,7 @@ grcov "$COVERAGE_BASEDIR/coverage_meta" \ --ignore="*/github.com-1ecc6299db9ec823/*" if [ "$format" == cobertura ]; then - python3 "$COVERAGE_BASEDIR/maint/postprocess_coverage_cobertura.py" "$COVERAGE_BASEDIR/$output" + python3 "$COVERAGE_BASEDIR/maint/postprocess_coverage_cobertura" "$COVERAGE_BASEDIR/$output" echo "Full report: $COVERAGE_BASEDIR/$output" exit elif [ "$format" != html ]; then @@ -153,7 +153,7 @@ if [ "$(command -v python3 2>/dev/null)" = "" ]; then echo "python3 not installed; not post-processing the index file." else echo "Postprocessing..." - python3 "$COVERAGE_BASEDIR/maint/postprocess_coverage_html.py" "$COVERAGE_BASEDIR/coverage_meta/commands" "$COVERAGE_BASEDIR/$output/index.html" "$COVERAGE_BASEDIR/$output/index.html" + python3 "$COVERAGE_BASEDIR/maint/postprocess_coverage_html" "$COVERAGE_BASEDIR/coverage_meta/commands" "$COVERAGE_BASEDIR/$output/index.html" "$COVERAGE_BASEDIR/$output/index.html" fi echo "Full report: $COVERAGE_BASEDIR/$output/index.html" -- GitLab