File tree Expand file tree Collapse file tree 7 files changed +94
-14
lines changed Expand file tree Collapse file tree 7 files changed +94
-14
lines changed Original file line number Diff line number Diff line change
1
+ {% extends 'README.rst.jj2' %}
2
+
3
+ {% block documentation_link %}
4
+ {% endblock %}
5
+
6
+ {% block features %}
7
+ {{description}}
8
+ It is used with `yehua <https://github.com/chfw/yehua>`_.
9
+ Organisations using it:
10
+
11
+ - `pyexcel <https://github.com/pyexcel/pyexcel>`_.
12
+ - `coala <https://github.com/coala/coala>`_.
13
+
14
+ Features
15
+ ================================================================================
16
+
17
+ setup.py
18
+ ----------
19
+
20
+ 1. flake8 compliant setup.py
21
+
22
+ 2. feature parity with `kennethreitz/setup.py <https://github.com/kennethreitz/setup.py>`_
23
+
24
+ - automatically upload to pypi without using twine
25
+
26
+ - automatically do git release while uploading to pypi
27
+
28
+ 3. configured to build universial wheels by default
29
+ {% endblock %}
30
+
31
+ {% block bottom_block %}
32
+ Notes
33
+ ================================================================================
34
+
35
+
36
+ In order to run, `python setup.py publish`, you will have setup `.pypirc` in
37
+ your home folder as::
38
+
39
+ [distutils]
40
+ index-servers =
41
+ pypi
42
+
43
+ [pypi]
44
+ username=your_name
45
+ password=your_password
46
+
47
+
48
+ And you need to configure `gease`.
49
+ {% endblock %}
Original file line number Diff line number Diff line change @@ -5,8 +5,19 @@ pypi-mobans
5
5
.. image :: https://api.travis-ci.org/moremoban/pypi-mobans.svg?branch=master
6
6
:target: http://travis-ci.org/moremoban/pypi-mobans
7
7
8
- Scaffolding templates for your Python project. It is used with `yehua <https://github.com/chfw/yehua >`_
9
- and `pyexcel <https://github.com/pyexcel/pyexcel >`_.
8
+ .. image :: https://codecov.io/github/moremoban/pypi-mobans/coverage.png
9
+ :target: https://codecov.io/github/moremoban/pypi-mobans
10
+
11
+ .. image :: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
12
+ :target: https://gitter.im/chfw_moban/Lobby
13
+
14
+
15
+ Scaffolding templates for your Python project.
16
+ It is used with `yehua <https://github.com/chfw/yehua >`_.
17
+ Organisations using it:
18
+
19
+ - `pyexcel <https://github.com/pyexcel/pyexcel >`_.
20
+ - `coala <https://github.com/coala/coala >`_.
10
21
11
22
Features
12
23
================================================================================
@@ -31,8 +42,8 @@ You can get it:
31
42
32
43
.. code-block :: bash
33
44
34
- $ git clone http ://github.com/moremoban/pypi-mobans.git
35
-
45
+ $ git clone https ://github.com/moremoban/pypi-mobans.git
46
+ $ cd pypi-mobans
36
47
37
48
Notes
38
49
================================================================================
@@ -50,4 +61,4 @@ your home folder as::
50
61
password=your_password
51
62
52
63
53
- And you need to configure `gease `.
64
+ And you need to configure `gease `.
Original file line number Diff line number Diff line change 8
8
license : NEW BSD
9
9
company : Onni Software Ltd.
10
10
branch : master
11
- description : this is a base for python project scaffolding
11
+ description : Scaffolding templates for your Python project.
12
+ release : 0.0.0
13
+ gitter_room : chfw_moban/Lobby
14
+ setup_py : false
Original file line number Diff line number Diff line change 1
1
configuration :
2
2
configuration : config/data.yml
3
3
template_dir :
4
+ - .moban.dt/
4
5
- templates
5
6
targets :
6
7
- .gitignore : gitignore.jj2
7
8
- LICENSE : NEW_BSD_LICENSE.jj2
9
+ - README.rst : local-README.rst.jj2
Original file line number Diff line number Diff line change 5
5
{%endif%}
6
6
================================================================================
7
7
8
- .. image:: https://api.travis-ci.org/{{organisation}}/{{name}}.svg?branch=master
9
- :target: http://travis-ci.org/{{organisation}}/{{name}}
10
-
11
- .. image:: https://codecov.io/gh/{{organisation}}/{{name}}/branch/master/graph/badge.svg
12
- :target: https://codecov.io/gh/{{organisation}}/{{name}}
8
+ {% include 'badges.rst.jj2' %}
13
9
14
10
{%block documentation_link%}
15
11
.. image:: https://readthedocs.org/projects/{{name|lower}}/badge/?version=latest
@@ -25,4 +21,4 @@ Installation
25
21
{% include "installation.rst.jj2" %}
26
22
27
23
{%block bottom_block%}
28
- {%endblock%}
24
+ {%endblock%}
Original file line number Diff line number Diff line change
1
+ {% if not scm_host %}
2
+ {% set scm_host = 'github.com' %}
3
+ {% endif %}
4
+ {% if scm_host == 'github.com' %}
1
5
.. image:: https://api.travis-ci.org/{{organisation}}/{{name}}.svg?branch={{branch}}
2
6
:target: http://travis-ci.org/{{organisation}}/{{name}}
7
+ {% endif %}
3
8
9
+ {% if scm_host == 'github.com' %}
4
10
.. image:: https://codecov.io/github/{{organisation}}/{{name}}/coverage.png
5
11
:target: https://codecov.io/github/{{organisation}}/{{name}}
12
+ {% elif scm_host == 'gitlab.com' %}
13
+ .. image:: https://codecov.io/gitlab/{{organisation}}/{{name}}/coverage.png
14
+ :target: https://codecov.io/gitlab/{{organisation}}/{{name}}
15
+ {% endif %}
6
16
17
+ {% if gitter_room %}
7
18
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
8
- :target: https://gitter.im/pyexcel/Lobby
19
+ :target: https://gitter.im/{{gitter_room}}
20
+ {% endif %}
Original file line number Diff line number Diff line change
1
+ {% if not scm_host %}
2
+ {% set scm_host = 'github.com' %}
3
+ {% endif %}
1
4
{% if release != '0.0.0' %}
2
5
3
6
You can install {{name}} via pip:
@@ -8,10 +11,14 @@ You can install {{name}} via pip:
8
11
9
12
10
13
or clone it and install it:
14
+ {% else %}
15
+ You can get it:
11
16
{% endif %}
12
17
13
18
.. code-block:: bash
14
19
15
- $ git clone https://github.com /{{organisation}}/{{name}}.git
20
+ $ git clone https://{{scm_host}} /{{organisation}}/{{name}}.git
16
21
$ cd {{name}}
22
+ {% if setup_py != False %}
17
23
$ python setup.py install
24
+ {% endif %}
You can’t perform that action at this time.
0 commit comments