File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
- recursive-include atcodertools/tools/templates/ *
1
+ recursive-include atcodertools/tools/templates/ *
2
+ include requirements.txt
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python3
2
1
import sys
3
2
4
3
from atcodertools .tools .envgen import main as envgen_main
5
4
from atcodertools .tools .tester import main as tester_main
6
5
7
- if __name__ == '__main__' :
6
+
7
+ def 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
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,7 +27,11 @@ 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
- scripts = ['atcoder-tools' ],
30
+ entry_points = {
31
+ "console_scripts" : [
32
+ "atcoder-tools=atcodertools.tools.run_script:main" ,
33
+ ],
34
+ },
31
35
include_package_data = True ,
32
36
classifiers = [
33
37
'Development Status :: 4 - Beta' ,
You can’t perform that action at this time.
0 commit comments