aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-13 17:32:05 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-13 17:32:05 +0300
commit795dd9e87e44d1c49f160cd003cdde4113ee8247 (patch)
tree8235133e9007abdb53ed7380f201058c24269031
parentREADME: fix badge links (diff)
downloadcmake-common-795dd9e87e44d1c49f160cd003cdde4113ee8247.tar.gz
cmake-common-795dd9e87e44d1c49f160cd003cdde4113ee8247.zip
tools: drop the .py extension
-rw-r--r--.github/workflows/basic.yml2
-rw-r--r--README.md8
-rw-r--r--docs/clang-format.md5
-rw-r--r--docs/ctest-driver.md6
-rw-r--r--docs/project-clang-format.md5
-rw-r--r--setup.cfg4
-rwxr-xr-xtools/ctest-driver (renamed from tools/ctest-driver.py)0
-rwxr-xr-xtools/project-clang-format (renamed from tools/clang-format.py)0
8 files changed, 15 insertions, 15 deletions
diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml
index c2a1d22..197306c 100644
--- a/.github/workflows/basic.yml
+++ b/.github/workflows/basic.yml
@@ -16,7 +16,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Run clang-format
- run: ./tools/clang-format.py --clang-format clang-format-10
+ run: ./tools/project-clang-format --clang-format clang-format-10
basic:
strategy:
diff --git a/README.md b/README.md
index ea45118..b909353 100644
--- a/README.md
+++ b/README.md
@@ -145,12 +145,12 @@ done
Tools
-----
-* [clang-format.py] &mdash; `clang-format` all C/C++ files in the project.
-* [ctest-driver.py] &mdash; wrap an executable for testing with CTest;
+* [project-clang-format] &mdash; `clang-format` all C/C++ files in the project.
+* [ctest-driver] &mdash; wrap an executable for testing with CTest;
cross-platform `grep`.
-[clang-format.py]: docs/clang-format.md
-[ctest-driver.py]: docs/ctest-driver.md
+[project-clang-format]: docs/project-clang-format.md
+[ctest-driver]: docs/ctest-driver.md
Examples
--------
diff --git a/docs/clang-format.md b/docs/clang-format.md
deleted file mode 100644
index 217b2da..0000000
--- a/docs/clang-format.md
+++ /dev/null
@@ -1,5 +0,0 @@
-`clang-format` all C/C++ files in the project.
-
- $ cd project/
- $ python3 path/to/tools/clang-format.py # Prints a diff
- $ python3 path/to/tools/clang-format.py -i # Edits files in-place
diff --git a/docs/ctest-driver.md b/docs/ctest-driver.md
index af7c3b2..1a70f5d 100644
--- a/docs/ctest-driver.md
+++ b/docs/ctest-driver.md
@@ -4,10 +4,10 @@ PASS_REGULAR_EXPRESSION feature:
1. The regular expression syntax used by CMake is deficient.
2. The exit code of a test is ignored if one of the regexes matches.
-`ctest-driver.py` tries to fix them.
+`ctest-driver` tries to fix them.
- $ python3 path/to/tools/ctest-driver.py run --pass-regex OK --fail-regex Fail -- path/to/executable arg1 arg2
+ $ python3 path/to/tools/ctest-driver run --pass-regex OK --fail-regex Fail -- path/to/executable arg1 arg2
In addition, it's a cross-platform `grep`:
- $ python3 path/to/tools/ctest-driver.py grep --pass-regex OK --fail-regex Fail -- path/to/logfile.log
+ $ python3 path/to/tools/ctest-driver grep --pass-regex OK --fail-regex Fail -- path/to/logfile.log
diff --git a/docs/project-clang-format.md b/docs/project-clang-format.md
new file mode 100644
index 0000000..d294730
--- /dev/null
+++ b/docs/project-clang-format.md
@@ -0,0 +1,5 @@
+`clang-format` all C/C++ files in the project.
+
+ $ cd project/
+ $ python3 path/to/tools/project-clang-format # Prints a diff
+ $ python3 path/to/tools/project-clang-format -i # Edits files in-place
diff --git a/setup.cfg b/setup.cfg
index b9c42a7..29fad59 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -20,8 +20,8 @@ classifiers =
[options]
packages = find:
scripts =
- tools/clang-format.py
- tools/ctest-driver.py
+ tools/project-clang-format
+ tools/ctest-driver
#python_requires = >=3.6
[options.entry_points]
diff --git a/tools/ctest-driver.py b/tools/ctest-driver
index 414e20c..414e20c 100755
--- a/tools/ctest-driver.py
+++ b/tools/ctest-driver
diff --git a/tools/clang-format.py b/tools/project-clang-format
index 81b2f93..81b2f93 100755
--- a/tools/clang-format.py
+++ b/tools/project-clang-format