File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ extensions = [
15
15
{%block SPHINX_EXTENSIONS%}
16
16
{%endblock%}
17
17
]
18
- {%block custom_varaibles%}
19
- {%endblock%}
20
18
intersphinx_mapping = {
21
19
{%block intersphinx_mapping%}
22
20
{%endblock%}
Original file line number Diff line number Diff line change @@ -31,11 +31,25 @@ LICENSE = '{{license}}'
31
31
MAINTAINER = '{{maintainer}}'
32
32
MAINTAINER_CONTACT = '{{maintainer_contact}}'
33
33
{% endif %}
34
- {% if command_line_interface %}
34
+ {% if command_line_interface or entry_points %}
35
35
ENTRY_POINTS = {
36
+ {% if not entry_points or 'console_scripts' not in entry_points %}
36
37
'console_scripts': [
37
38
'{{command_line_interface}} = {{ entry_point }}'
38
- ]
39
+ ],
40
+ {% endif %}
41
+ {% if entry_points %}
42
+ {% for group_name, items in entry_points.items() %}
43
+ '{{group_name}}': [
44
+ {% if group_name == 'console_scripts' and command_line_interface %}
45
+ '{{command_line_interface}} = {{ entry_point }}',
46
+ {% endif %}
47
+ {% for item in items %}
48
+ '{{item}}',
49
+ {% endfor %}
50
+ ],
51
+ {% endfor %}
52
+ {% endif %}
39
53
}
40
54
{% endif %}
41
55
DESCRIPTION = (
@@ -267,7 +281,7 @@ if __name__ == '__main__':
267
281
packages=PACKAGES,
268
282
include_package_data=True,
269
283
zip_safe=False,
270
- {% if command_line_interface %}
284
+ {% if command_line_interface or entry_points %}
271
285
entry_points=ENTRY_POINTS,
272
286
{% endif %}
273
287
{% endif%}
You can’t perform that action at this time.
0 commit comments