Skip to content

Commit 2582fe9

Browse files
authored
remove unnecessary script files (#1604)
1 parent e8aa4e7 commit 2582fe9

File tree

7 files changed

+8
-58
lines changed

7 files changed

+8
-58
lines changed

doc/scripts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Scripts
33

44
The following modules are callable from ``python-can``.
55

6-
They can be called for example by ``python -m can.logger`` or ``can_logger.py`` (if installed using pip).
6+
They can be called for example by ``python -m can.logger`` or ``can_logger`` (if installed using pip).
77

88
can.logger
99
----------

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ classifiers = [
4545
]
4646

4747
[project.scripts]
48-
"can_logconvert.py" = "scripts.can_logconvert:main"
49-
"can_logger.py" = "scripts.can_logger:main"
50-
"can_player.py" = "scripts.can_player:main"
51-
"can_viewer.py" = "scripts.can_viewer:main"
48+
can_logconvert = "can.logconvert:main"
49+
can_logger = "can.logger:main"
50+
can_player = "can.player:main"
51+
can_viewer = "can.viewer:main"
5252

5353
[project.urls]
5454
homepage = "https://github.com/hardbyte/python-can"

scripts/can_logconvert.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/can_logger.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/can_player.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/can_viewer.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/test_scripts.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@ class TestLoggerScript(CanScriptTest):
7474
def _commands(self):
7575
commands = [
7676
"python -m can.logger --help",
77-
"python scripts/can_logger.py --help",
77+
"can_logger --help",
7878
]
79-
if IS_UNIX:
80-
commands += ["can_logger.py --help"]
8179
return commands
8280

8381
def _import(self):
@@ -90,10 +88,8 @@ class TestPlayerScript(CanScriptTest):
9088
def _commands(self):
9189
commands = [
9290
"python -m can.player --help",
93-
"python scripts/can_player.py --help",
91+
"can_player --help",
9492
]
95-
if IS_UNIX:
96-
commands += ["can_player.py --help"]
9793
return commands
9894

9995
def _import(self):
@@ -106,10 +102,8 @@ class TestLogconvertScript(CanScriptTest):
106102
def _commands(self):
107103
commands = [
108104
"python -m can.logconvert --help",
109-
"python scripts/can_logconvert.py --help",
105+
"can_logconvert --help",
110106
]
111-
if IS_UNIX:
112-
commands += ["can_logconvert.py --help"]
113107
return commands
114108

115109
def _import(self):

0 commit comments

Comments
 (0)