Skip to content

Commit 759b9c6

Browse files
committed
📝 support scm_host in installation.rst.jj2
Also fix when release is 0.0.0 and support projects without a setup.py
1 parent 5aaa440 commit 759b9c6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

templates/installation.rst.jj2

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
{% if not scm_host %}
2+
{% set scm_host = 'github.com' %}
3+
{% endif %}
14
{% if release != '0.0.0' %}
25

36
You can install {{name}} via pip:
@@ -8,10 +11,14 @@ You can install {{name}} via pip:
811

912

1013
or clone it and install it:
14+
{% else %}
15+
You can get it:
1116
{% endif %}
1217

1318
.. code-block:: bash
1419

15-
$ git clone https://github.com/{{organisation}}/{{name}}.git
20+
$ git clone https://{{scm_host}}/{{organisation}}/{{name}}.git
1621
$ cd {{name}}
22+
{% if setup_py != False %}
1723
$ python setup.py install
24+
{% endif %}

0 commit comments

Comments
 (0)