Skip to content

Commit

Permalink
📝 support scm_host in installation.rst.jj2
Browse files Browse the repository at this point in the history
Also fix when release is 0.0.0 and support projects
without a setup.py
  • Loading branch information
jayvdb committed Jun 7, 2018
1 parent 5aaa440 commit 759b9c6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion templates/installation.rst.jj2
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{% if not scm_host %}
{% set scm_host = 'github.com' %}
{% endif %}
{% if release != '0.0.0' %}

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


or clone it and install it:
{% else %}
You can get it:
{% endif %}

.. code-block:: bash

$ git clone https://github.com/{{organisation}}/{{name}}.git
$ git clone https://{{scm_host}}/{{organisation}}/{{name}}.git
$ cd {{name}}
{% if setup_py != False %}
$ python setup.py install
{% endif %}

0 comments on commit 759b9c6

Please sign in to comment.