Skip to content

Commit dc0456e

Browse files
authored
Merge pull request #5 from moremoban/dev
release 0.0.4 - get a list of all contributors of a git repo
2 parents 3c5e340 + 20e3cc6 commit dc0456e

36 files changed

+635
-321
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: chfw
4+
patreon: chfw

.github/workflows/moban-update.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on: [push]
2+
3+
jobs:
4+
run_moban:
5+
runs-on: ubuntu-latest
6+
name: synchronize templates via moban
7+
steps:
8+
- uses: actions/checkout@v2
9+
with:
10+
ref: ${{ github.head_ref }}
11+
- name: Set up Python
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: '3.7'
15+
- name: check changes
16+
run: |
17+
pip install moban gitfs2 pypifs
18+
moban
19+
git status
20+
git diff --exit-code
21+
- name: Auto-commit
22+
if: failure()
23+
uses: docker://cdssnc/auto-commit-github-action
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
args: This is an auto-commit
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install setuptools wheel twine
20+
- name: Build and publish
21+
env:
22+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24+
run: |
25+
python setup.py sdist bdist_wheel
26+
twine upload dist/*

.isort.cfg

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[settings]
2+
line_length=79
3+
# Ignore generated files
4+
skip=setup.py, moban/__init__.py
5+
known_third_party=crayons, requests, mock, nose
6+
indent=' '
7+
multi_line_output=3
8+
length_sort=1
9+
include_trailing_comma=true
10+
default_section=FIRSTPARTY
11+
no_lines_before=LOCALFOLDER
12+
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER

.moban.d/CUSTOM_README.rst.jj2

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@
44
{%endblock%}
55

66
{%block features%}
7-
::
8-
9-
A long long time ago, ancient developers do not have the command to do a github
10-
release. They relied on mouse clicks and web user interface to do their releases.
11-
Until 2017, they got a specialized command, **{{command_line_interface}}** and realized release management
12-
is no long a manual job.
137

14-
**{{name}}** {{description}}.
8+
It's understood that you may use github cli, however **{{name}}** {{description}}.
159

1610
.. image:: https://github.com/{{organisation}}/{{name}}/raw/master/images/cli.png
1711
:width: 600px
@@ -59,6 +53,21 @@ Command Line
5953
gs gease v0.0.2 "second great release"
6054

6155

56+
57+
::
58+
contributors list the contributors of a repo. version 0.0.4
59+
60+
Usage: contributors user/org repo
61+
62+
Where:
63+
user/org is the your github username or orgnisation name
64+
repo is the repository name
65+
66+
Examples:
67+
68+
contributors pyexcel pyexcel-io
69+
70+
6271
License
6372
================================================================================
6473

.moban.d/tests/requirements.txt.jj2

Lines changed: 0 additions & 7 deletions
This file was deleted.

.moban.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
configuration:
22
template_dir:
3-
- "setupmobans/templates"
3+
- "git://github.com/moremoban/pypi-mobans.git?submodule=true&brach=dev!/templates"
4+
- "git://github.com/moremoban/pypi-mobans.git?submodule=true&brach=dev!/statics"
45
- ".moban.d"
56
configuration: gease.yml
67
targets:
@@ -10,3 +11,10 @@ targets:
1011
- "tests/requirements.txt": "tests/requirements.txt.jj2"
1112
- test.sh: test.script.jj2
1213
- 'gease/_version.py': 'version.py.jj2'
14+
- ".github/workflows/pythonpublish.yml": "pythonpublish.yml"
15+
- output: CHANGELOG.rst
16+
configuration: changelog.yml
17+
template: CHANGELOG.rst.jj2
18+
- Makefile: Makefile.jj2
19+
- format.sh: format.sh.jj2
20+
- lint.sh: lint.script.jj2

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ notifications:
44
email: false
55
python:
66
- 3.6
7-
- 3.5
8-
- 3.4
9-
- 3.3
10-
- 2.7
11-
- pypy
7+
- 3.7
128
before_install:
139
- pip install -r tests/requirements.txt
1410
script:

CHANGELOG.rst

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
Change log
2-
===========
2+
================================================================================
33

4-
v0.0.3 - 25.11.2017
4+
0.0.4 - 21.08.2020
55
--------------------------------------------------------------------------------
66

7-
added
8-
********************************************************************************
7+
**Added**
98

10-
#. `issue 1<https://github.com/moremoban/gease/issues/1>`_, release repos of the
9+
#. get contributors of a github repo
10+
11+
0.0.3 - 25.11.2017
12+
--------------------------------------------------------------------------------
13+
14+
**Added**
15+
16+
#. `#1 <https://github.com/moremoban/gease/issues/1>`_: release repos of the
1117
organisation that you belong to.
1218

13-
v0.0.2 - 15.10.2017
19+
0.0.2 - 15.10.2017
1420
--------------------------------------------------------------------------------
1521

16-
updated
17-
********************************************************************************
22+
**Added**
1823

1924
#. quit with -1 if github responds with error
2025

21-
22-
v0.0.1 - 13.10.2017
26+
0.0.1 - 13.10.2017
2327
--------------------------------------------------------------------------------
2428

25-
First release. Make a release from command line
29+
**Added**
2630

31+
#. First release.

Makefile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
all: test
22

3-
test:
3+
test: lint
44
bash test.sh
55

6-
document:
7-
bash document.sh
6+
install_test:
7+
pip install -r tests/requirements.txt
8+
9+
git-diff-check:
10+
git diff --exit-code
11+
12+
lint:
13+
bash lint.sh
14+
15+
format:
16+
bash format.sh
17+
18+
git-diff-check:
19+
git diff --exit-code

0 commit comments

Comments
 (0)