File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 1
- recursive-include atcodertools/tools/templates/ *
2
- include requirements.txt
1
+ recursive-include atcodertools/tools/templates/ *
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
1
2
import sys
2
3
3
4
from atcodertools .tools .envgen import main as envgen_main
4
5
from atcodertools .tools .tester import main as tester_main
5
6
6
-
7
- def main ():
7
+ if __name__ == '__main__' :
8
8
if len (sys .argv ) < 2 or sys .argv [1 ] not in ("gen" , "test" ):
9
9
print ("Usage:" )
10
10
print ("{} gen -- to generate workspace" .format (sys .argv [0 ]))
@@ -19,7 +19,3 @@ def main():
19
19
20
20
if sys .argv [1 ] == "test" :
21
21
sys .exit (tester_main (prog , args ))
22
-
23
-
24
- if __name__ == '__main__' :
25
- main ()
Original file line number Diff line number Diff line change @@ -27,11 +27,7 @@ def _requires_from_file(filename):
27
27
packages = find_packages (exclude = ('tests' ,)),
28
28
install_requires = _requires_from_file ('requirements.txt' ),
29
29
license = "MIT" ,
30
- entry_points = {
31
- "console_scripts" : [
32
- "atcoder-tools=atcodertools.tools.run_script:main" ,
33
- ],
34
- },
30
+ scripts = ['atcoder-tools' ],
35
31
include_package_data = True ,
36
32
classifiers = [
37
33
'Development Status :: 4 - Beta' ,
You can’t perform that action at this time.
0 commit comments