diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f8d08aa --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,23 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Module", + "type": "python", + "request": "launch", + "module": "renamebycsv.cli", + "args": [ + "${workspaceFolder}/tests/resources/files", + "group\\d+-\\w-(\\d+)\\.txt", + "${workspaceFolder}/tests/resources/groups.csv", + "target", + "replaced", + "-d" + ], + "justMyCode": true + } + ] +} \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 57fcdcc..bbb0627 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = renamebycsv -version = 0.0.3 +version = 0.0.4 [options] packages = renamebycsv diff --git a/tests/resources/files/foo.txt b/tests/resources/files/foo.txt new file mode 100644 index 0000000..4add785 --- /dev/null +++ b/tests/resources/files/foo.txt @@ -0,0 +1 @@ +Text \ No newline at end of file diff --git a/tests/resources/files/group1-a-12.txt b/tests/resources/files/group1-a-12.txt new file mode 100644 index 0000000..71a4e5b --- /dev/null +++ b/tests/resources/files/group1-a-12.txt @@ -0,0 +1,2 @@ + +Text \ No newline at end of file diff --git a/tests/resources/files/group1-a-13.txt b/tests/resources/files/group1-a-13.txt new file mode 100644 index 0000000..4add785 --- /dev/null +++ b/tests/resources/files/group1-a-13.txt @@ -0,0 +1 @@ +Text \ No newline at end of file diff --git a/tests/resources/files/group1-b-10.txt b/tests/resources/files/group1-b-10.txt new file mode 100644 index 0000000..4add785 --- /dev/null +++ b/tests/resources/files/group1-b-10.txt @@ -0,0 +1 @@ +Text \ No newline at end of file diff --git a/tests/resources/files/group1-b-11.txt b/tests/resources/files/group1-b-11.txt new file mode 100644 index 0000000..4add785 --- /dev/null +++ b/tests/resources/files/group1-b-11.txt @@ -0,0 +1 @@ +Text \ No newline at end of file diff --git a/tests/resources/files/group1-b-14.txt b/tests/resources/files/group1-b-14.txt new file mode 100644 index 0000000..4add785 --- /dev/null +++ b/tests/resources/files/group1-b-14.txt @@ -0,0 +1 @@ +Text \ No newline at end of file diff --git a/tests/resources/files/group1-b-9.txt b/tests/resources/files/group1-b-9.txt new file mode 100644 index 0000000..4add785 --- /dev/null +++ b/tests/resources/files/group1-b-9.txt @@ -0,0 +1 @@ +Text \ No newline at end of file diff --git a/tests/resources/groups.csv b/tests/resources/groups.csv new file mode 100644 index 0000000..519b14c --- /dev/null +++ b/tests/resources/groups.csv @@ -0,0 +1,6 @@ +target,replaced +9,a +10,b +11,c +12,d +13,e \ No newline at end of file