]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
scripts: subdirectory for ./poe tasks created
authorAleš Mrázek <ales.mrazek@nic.cz>
Thu, 1 Aug 2024 12:45:25 +0000 (14:45 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 26 Aug 2024 12:28:10 +0000 (14:28 +0200)
pyproject.toml
scripts/poe-tasks/_env.sh [moved from scripts/_env.sh with 100% similarity]
scripts/poe-tasks/codecheck [moved from scripts/codecheck with 100% similarity]
scripts/poe-tasks/create_setup.py [moved from scripts/create_setup.py with 100% similarity]
scripts/poe-tasks/docs [moved from scripts/docs with 100% similarity]
scripts/poe-tasks/examples [moved from scripts/examples with 100% similarity]
scripts/poe-tasks/man [moved from scripts/man with 100% similarity]
scripts/poe-tasks/meson-configure [moved from scripts/meson-configure with 100% similarity]
scripts/poe-tasks/run [moved from scripts/run with 100% similarity]
scripts/poe-tasks/run-debug [moved from scripts/run-debug with 100% similarity]

index ec3f779481e522c51c75053e321983413d7a6613..4dcba00e45b56b7303d3ac9a2bb27d1ef46e91ad 100644 (file)
@@ -69,15 +69,15 @@ kresctl = 'knot_resolver_manager.cli.main:main'
 knot-resolver = 'knot_resolver_manager.__main__:run'
 
 [tool.poe.tasks]
-configure = { cmd = "scripts/meson-configure", help = "Configure Knot Resolver daemon" }
-run = { cmd = "scripts/run", help = "Run the manager" }
-run-debug = { cmd = "scripts/run-debug", help = "Run the manager under debugger" }
-docs = { cmd = "scripts/docs", help = "Create HTML documentation" }
+configure = { cmd = "scripts/poe-tasks/meson-configure", help = "Configure Knot Resolver daemon" }
+run = { cmd = "scripts/poe-tasks/run", help = "Run the manager" }
+run-debug = { cmd = "scripts/poe-tasks/run-debug", help = "Run the manager under debugger" }
+docs = { cmd = "scripts/poe-tasks/docs", help = "Create HTML documentation" }
 test = { shell = "env PYTHONPATH=. pytest --junitxml=unit.junit.xml --cov=manager/knot_resolver_manager --show-capture=all tests/manager", help = "Run tests" }
-check = { cmd = "scripts/codecheck", help = "Run static code analysis" }
+check = { cmd = "scripts/poe-tasks/codecheck", help = "Run static code analysis" }
 format = { shell = "black manager/knot_resolver_manager/ tests/manager scripts/create_setup.py manager/build_c_extensions.py; isort .", help = "Run code formatter" }
 fixdeps = { shell = "poetry install; npm install; npm update", help = "Install/update dependencies according to configuration files"}
-examples = { cmd = "scripts/examples", help = "Validate all configuration examples" }
+examples = { cmd = "scripts/poe-tasks/examples", help = "Validate all configuration examples" }
 kresctl = { script = "knot_resolver_manager.cli.main:main", cwd="${POE_PWD}", help="run kresctl" }
 kresctl-nocwd = { script = "knot_resolver_manager.cli.main:main", help="run kresctl" } # Python <3.8 and poethepoet <0.22.0 compatibility (see also `./poe`)
 clean = """
@@ -88,8 +88,8 @@ clean = """
          build
          dist
 """
-gen-setuppy = { shell = "python scripts/create_setup.py > setup.py", help = "Generate setup.py file for backwards compatibility" }
-man = {cmd = "scripts/man", help = "Display manpage from sources" }
+gen-setuppy = { shell = "python scripts/poe-tasks/create_setup.py > setup.py", help = "Generate setup.py file for backwards compatibility" }
+man = {cmd = "scripts/poe-tasks/man", help = "Display manpage from sources" }
 
 [tool.black]
 line-length = 120
similarity index 100%
rename from scripts/_env.sh
rename to scripts/poe-tasks/_env.sh
similarity index 100%
rename from scripts/docs
rename to scripts/poe-tasks/docs
similarity index 100%
rename from scripts/examples
rename to scripts/poe-tasks/examples
similarity index 100%
rename from scripts/man
rename to scripts/poe-tasks/man
similarity index 100%
rename from scripts/run
rename to scripts/poe-tasks/run