Skip to content

Commit 1ae4cb4

Browse files
Revert "stop having the runner script just as script but instead have a script as console_script (kyuridenamida#46)" (kyuridenamida#47)
This reverts commit 94a9f85.
1 parent 94a9f85 commit 1ae4cb4

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
recursive-include atcodertools/tools/templates/ *
2-
include requirements.txt
1+
recursive-include atcodertools/tools/templates/ *

atcodertools/tools/run_script.py renamed to atcoder-tools

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
#!/usr/bin/env python3
12
import sys
23

34
from atcodertools.tools.envgen import main as envgen_main
45
from atcodertools.tools.tester import main as tester_main
56

6-
7-
def main():
7+
if __name__ == '__main__':
88
if len(sys.argv) < 2 or sys.argv[1] not in ("gen", "test"):
99
print("Usage:")
1010
print("{} gen -- to generate workspace".format(sys.argv[0]))
@@ -19,7 +19,3 @@ def main():
1919

2020
if sys.argv[1] == "test":
2121
sys.exit(tester_main(prog, args))
22-
23-
24-
if __name__ == '__main__':
25-
main()

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ def _requires_from_file(filename):
2727
packages=find_packages(exclude=('tests',)),
2828
install_requires=_requires_from_file('requirements.txt'),
2929
license="MIT",
30-
entry_points={
31-
"console_scripts": [
32-
"atcoder-tools=atcodertools.tools.run_script:main",
33-
],
34-
},
30+
scripts=['atcoder-tools'],
3531
include_package_data=True,
3632
classifiers=[
3733
'Development Status :: 4 - Beta',

0 commit comments

Comments
 (0)