Skip to content

Commit

Permalink
Merge pull request #5 from moremoban/dev
Browse files Browse the repository at this point in the history
release 0.0.4 - get a list of all contributors of a git repo
  • Loading branch information
chfw authored Aug 21, 2020
2 parents 3c5e340 + 20e3cc6 commit dc0456e
Show file tree
Hide file tree
Showing 36 changed files with 635 additions and 321 deletions.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: chfw
patreon: chfw
27 changes: 27 additions & 0 deletions .github/workflows/moban-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [push]

jobs:
run_moban:
runs-on: ubuntu-latest
name: synchronize templates via moban
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: check changes
run: |
pip install moban gitfs2 pypifs
moban
git status
git diff --exit-code
- name: Auto-commit
if: failure()
uses: docker://cdssnc/auto-commit-github-action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: This is an auto-commit
26 changes: 26 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
12 changes: 12 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[settings]
line_length=79
# Ignore generated files
skip=setup.py, moban/__init__.py
known_third_party=crayons, requests, mock, nose
indent=' '
multi_line_output=3
length_sort=1
include_trailing_comma=true
default_section=FIRSTPARTY
no_lines_before=LOCALFOLDER
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
23 changes: 16 additions & 7 deletions .moban.d/CUSTOM_README.rst.jj2
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
{%endblock%}

{%block features%}
::

A long long time ago, ancient developers do not have the command to do a github
release. They relied on mouse clicks and web user interface to do their releases.
Until 2017, they got a specialized command, **{{command_line_interface}}** and realized release management
is no long a manual job.

**{{name}}** {{description}}.
It's understood that you may use github cli, however **{{name}}** {{description}}.

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



::
contributors list the contributors of a repo. version 0.0.4

Usage: contributors user/org repo

Where:
user/org is the your github username or orgnisation name
repo is the repository name

Examples:

contributors pyexcel pyexcel-io


License
================================================================================

Expand Down
7 changes: 0 additions & 7 deletions .moban.d/tests/requirements.txt.jj2

This file was deleted.

10 changes: 9 additions & 1 deletion .moban.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
configuration:
template_dir:
- "setupmobans/templates"
- "git://github.com/moremoban/pypi-mobans.git?submodule=true&brach=dev!/templates"
- "git://github.com/moremoban/pypi-mobans.git?submodule=true&brach=dev!/statics"
- ".moban.d"
configuration: gease.yml
targets:
Expand All @@ -10,3 +11,10 @@ targets:
- "tests/requirements.txt": "tests/requirements.txt.jj2"
- test.sh: test.script.jj2
- 'gease/_version.py': 'version.py.jj2'
- ".github/workflows/pythonpublish.yml": "pythonpublish.yml"
- output: CHANGELOG.rst
configuration: changelog.yml
template: CHANGELOG.rst.jj2
- Makefile: Makefile.jj2
- format.sh: format.sh.jj2
- lint.sh: lint.script.jj2
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ notifications:
email: false
python:
- 3.6
- 3.5
- 3.4
- 3.3
- 2.7
- pypy
- 3.7
before_install:
- pip install -r tests/requirements.txt
script:
Expand Down
27 changes: 16 additions & 11 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
Change log
===========
================================================================================

v0.0.3 - 25.11.2017
0.0.4 - 21.08.2020
--------------------------------------------------------------------------------

added
********************************************************************************
**Added**

#. `issue 1<https://github.com/moremoban/gease/issues/1>`_, release repos of the
#. get contributors of a github repo

0.0.3 - 25.11.2017
--------------------------------------------------------------------------------

**Added**

#. `#1 <https://github.com/moremoban/gease/issues/1>`_: release repos of the
organisation that you belong to.

v0.0.2 - 15.10.2017
0.0.2 - 15.10.2017
--------------------------------------------------------------------------------

updated
********************************************************************************
**Added**

#. quit with -1 if github responds with error


v0.0.1 - 13.10.2017
0.0.1 - 13.10.2017
--------------------------------------------------------------------------------

First release. Make a release from command line
**Added**

#. First release.
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
all: test

test:
test: lint
bash test.sh

document:
bash document.sh
install_test:
pip install -r tests/requirements.txt

git-diff-check:
git diff --exit-code

lint:
bash lint.sh

format:
bash format.sh

git-diff-check:
git diff --exit-code
36 changes: 26 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@
gease - gITHUB RELease
================================================================================

.. image:: https://api.travis-ci.org/moremoban/gease.svg?branch=master
.. image:: https://api.travis-ci.org/moremoban/gease.svg
:target: http://travis-ci.org/moremoban/gease

.. image:: https://codecov.io/gh/moremoban/gease/branch/master/graph/badge.svg
:target: https://codecov.io/gh/moremoban/gease
.. image:: https://codecov.io/github/moremoban/gease/coverage.png
:target: https://codecov.io/github/moremoban/gease
.. image:: https://badge.fury.io/py/gease.svg
:target: https://pypi.org/project/gease

.. image:: https://pepy.tech/badge/gease/month
:target: https://pepy.tech/project/gease/month

.. image:: https://img.shields.io/github/stars/moremoban/gease.svg?style=social&maxAge=3600&label=Star
:target: https://github.com/moremoban/gease/stargazers

::

A long long time ago, ancient developers do not have the command to do a github
release. They relied on mouse clicks and web user interface to do their releases.
Until 2017, they got a specialized command, **gs** and realized release management
is no long a manual job.

**gease** simply makes a git release using github api v3.
It's understood that you may use github cli, however **gease** simply makes a git release using github api v3.

.. image:: https://github.com/moremoban/gease/raw/master/images/cli.png
:width: 600px
Expand Down Expand Up @@ -81,8 +83,22 @@ Command Line
gs gease v0.0.2 "second great release"



::
contributors list the contributors of a repo. version 0.0.4

Usage: contributors user/org repo

Where:
user/org is the your github username or orgnisation name
repo is the repository name

Examples:

contributors pyexcel pyexcel-io


License
================================================================================

MIT

27 changes: 27 additions & 0 deletions changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: gease
organisation: moremoban
releases:
- changes:
- action: Added
details:
- get contributors of a github repo
date: 21.08.2020
version: 0.0.4
- changes:
- action: Added
details:
- "`#1`: release repos of the organisation that you belong to."
date: 25.11.2017
version: 0.0.3
- changes:
- action: Added
details:
- quit with -1 if github responds with error
date: 15.10.2017
version: 0.0.2
- changes:
- action: Added
details:
- First release.
date: 13.10.2017
version: 0.0.1
3 changes: 3 additions & 0 deletions format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
isort $(find gease -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo)
black -l 79 gease
black -l 79 tests
13 changes: 8 additions & 5 deletions gease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ organisation: "moremoban"
author: "C. W."
contact: "wangc_2011@hotmail.com"
company: "Onni Software Ltd."
version: "0.0.3"
current_version: 0.0.3
release: "0.0.3"
copyright_year: 2017
command_line_interface: "gs"
version: "0.0.4"
current_version: 0.0.4
release: "0.0.4"
copyright_year: 2017-2020
command_line_interface: gease
entry_point: "gease.main:main"
entry_points:
console_scripts:
- "contributors = gease.contributors:main"
include_doctest: true
nodocs: true
license: MIT
Expand Down
3 changes: 1 addition & 2 deletions gease/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# flake8: noqa
from gease._version import __version__
from gease._version import __author__
from gease._version import __author__, __version__
2 changes: 1 addition & 1 deletion gease/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.0.3'
__version__ = '0.0.4'
__author__ = 'C. W.'
__description__ = 'simply makes a git release using github api v3'
10 changes: 5 additions & 5 deletions gease/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DEFAULT_GEASE_FILE_NAME = '.gease'
DEFAULT_GEASE_FILE_NAME = ".gease"
DEFAULT_RELEASE_MESSAGE = "A new release via gease."
NOT_ENOUGH_ARGS = 'Not enough arguments'
KEY_GEASE_USER = 'user'
KEY_GEASE_TOKEN = 'personal_access_token'
MESSAGE_FMT_RELEASED = 'Release is created at: %s'
NOT_ENOUGH_ARGS = "Not enough arguments"
KEY_GEASE_USER = "user"
KEY_GEASE_TOKEN = "personal_access_token"
MESSAGE_FMT_RELEASED = "Release is created at: %s"
Loading

0 comments on commit dc0456e

Please sign in to comment.