@@ -25,9 +25,9 @@ def list2cmdline(cmd_list):
25
25
log .addHandler (StreamHandler (sys .stdout ))
26
26
27
27
28
- # -----------------------------------------------------------------------------
28
+ # --------------------------------------------------------------------------------------
29
29
# Basic Constants
30
- # -----------------------------------------------------------------------------
30
+ # --------------------------------------------------------------------------------------
31
31
32
32
33
33
# the name of the project
@@ -40,9 +40,9 @@ def list2cmdline(cmd_list):
40
40
JS_DIR = SRC_DIR / "client"
41
41
42
42
43
- # -----------------------------------------------------------------------------
43
+ # --------------------------------------------------------------------------------------
44
44
# Package Definition
45
- # -----------------------------------------------------------------------------
45
+ # --------------------------------------------------------------------------------------
46
46
47
47
48
48
package = {
@@ -75,9 +75,9 @@ def list2cmdline(cmd_list):
75
75
}
76
76
77
77
78
- # -----------------------------------------------------------------------------
78
+ # --------------------------------------------------------------------------------------
79
79
# Library Version
80
- # -----------------------------------------------------------------------------
80
+ # --------------------------------------------------------------------------------------
81
81
82
82
pkg_root_init_file = PKG_DIR / "__init__.py"
83
83
for line in pkg_root_init_file .read_text ().split ("\n " ):
@@ -99,9 +99,9 @@ def list2cmdline(cmd_list):
99
99
sys .exit (1 )
100
100
101
101
102
- # -----------------------------------------------------------------------------
102
+ # --------------------------------------------------------------------------------------
103
103
# Requirements
104
- # -----------------------------------------------------------------------------
104
+ # --------------------------------------------------------------------------------------
105
105
106
106
107
107
requirements = []
@@ -133,9 +133,9 @@ def list2cmdline(cmd_list):
133
133
package ["extras_require" ] = extra_requirements
134
134
135
135
136
- # -----------------------------------------------------------------------------
136
+ # --------------------------------------------------------------------------------------
137
137
# Library Description
138
- # -----------------------------------------------------------------------------
138
+ # --------------------------------------------------------------------------------------
139
139
140
140
141
141
with (ROOT_DIR / "README.md" ).open () as f :
@@ -145,9 +145,15 @@ def list2cmdline(cmd_list):
145
145
package ["long_description_content_type" ] = "text/markdown"
146
146
147
147
148
- # ----------------------------------------------------------------------------
148
+ # --------------------------------------------------------------------------------------
149
+ # Command Line Interface
150
+ # --------------------------------------------------------------------------------------
151
+
152
+ package ["entry_points" ] = {"console_scripts" : ["idom=idom.__main__:app" ]}
153
+
154
+ # --------------------------------------------------------------------------------------
149
155
# Build Javascript
150
- # ----------------------------------------------------------------------------
156
+ # --------------------------------------------------------------------------------------
151
157
152
158
153
159
def build_javascript_first (cls ):
@@ -188,9 +194,9 @@ def run(self):
188
194
package ["cmdclass" ]["build_py" ] = build_javascript_first (build_py )
189
195
190
196
191
- # -----------------------------------------------------------------------------
197
+ # --------------------------------------------------------------------------------------
192
198
# Install It
193
- # -----------------------------------------------------------------------------
199
+ # --------------------------------------------------------------------------------------
194
200
195
201
196
202
if __name__ == "__main__" :
0 commit comments