File tree Expand file tree Collapse file tree 11 files changed +88
-35
lines changed Expand file tree Collapse file tree 11 files changed +88
-35
lines changed Original file line number Diff line number Diff line change
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
+
13
+ with :
14
+ args : git submodule update --init --recursive
15
+ - name : Set up Python
16
+ uses : actions/setup-python@v1
17
+ with :
18
+ python-version : ' 3.x'
19
+ - name : Install dependencies
20
+ run : |
21
+ python -m pip install --upgrade pip
22
+ pip install setuptools wheel twine
23
+ - name : Build and publish
24
+ env :
25
+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
26
+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
27
+ run : |
28
+ python setup.py sdist bdist_wheel
29
+ twine upload dist/*
Original file line number Diff line number Diff line change 1
-
2
1
sudo : false
3
2
dist : xenial
4
3
language : python
@@ -14,36 +13,55 @@ python:
14
13
- 2.7
15
14
16
15
stages :
17
- - test
18
16
- lint
17
+ - moban
18
+ - test
19
19
20
20
.disable_global : &disable_global
21
+ addons : false
22
+ cache : false
23
+ env : {}
24
+ python : false
21
25
before_install : false
22
- install : true
26
+ install : false
23
27
before_script : false
28
+ script : false
24
29
after_success : false
25
30
after_failure : false
31
+ before_deploy : false
32
+ deploy : false
26
33
27
34
.lint : &lint
28
35
<< : *disable_global
36
+ git :
37
+ submodules : false
29
38
python : 3.6
30
39
stage : lint
31
40
install : pip install flake8
32
41
script : flake8
33
42
43
+ .moban : &moban
44
+ << : *disable_global
45
+ python : 3.6
46
+ stage : moban
47
+ install : pip install moban>=0.0.4
48
+ script :
49
+ - moban
50
+ - git diff --exit-code
51
+
34
52
jobs :
35
53
include :
54
+ - *moban
36
55
- *lint
37
56
38
57
stage : test
39
58
40
- script : make test
41
-
42
59
before_install :
43
60
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
44
61
mv min_requirements.txt requirements.txt ;
45
62
fi
46
- - test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt
63
+ - test ! -f rnd_requirements.txt ||
64
+ pip install --no-deps -r rnd_requirements.txt
47
65
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
48
66
- pip install -r tests/requirements.txt
49
67
script :
Original file line number Diff line number Diff line change @@ -4,33 +4,29 @@ Change log
4
4
0.0.4 - 04-05-2019
5
5
--------------------------------------------------------------------------------
6
6
7
- Updated
8
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7
+ **Updated **
9
8
10
9
#. use pypi-mobans version 0.0.4 and 0.0.5
11
10
12
11
0.0.3.1 - 22-01-2019
13
12
--------------------------------------------------------------------------------
14
13
15
- Updated
16
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
+ **Updated **
17
15
18
16
#. fix the bug where the pypi-mobans were completely missing
19
17
20
18
0.0.3 - 18-01-2019
21
19
--------------------------------------------------------------------------------
22
20
23
- Updated
24
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21
+ **Updated **
25
22
26
23
#. use pypi-mobans version 0.0.2 and 0.0.3
27
24
#. added License file
28
25
29
26
0.0.2 - 08-11-2018
30
27
--------------------------------------------------------------------------------
31
28
32
- First release
33
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29
+ **First release **
34
30
35
31
#. use pypi as pacakge distribution source
36
32
#. versioning is applied
Original file line number Diff line number Diff line change 1
- Copyright (c) 2018-2019 by Onni Software Ltd. and its contributors and its contributors
1
+ Copyright (c) 2018-2020 by Onni Software Ltd. and its contributors and its contributors
2
2
All rights reserved.
3
3
4
4
Redistribution and use in source and binary forms of the software as well
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ pypi-mobans-pkg
8
8
.. image :: https://codecov.io/github/moremoban/pypi-mobans-pkg/coverage.png
9
9
:target: https://codecov.io/github/moremoban/pypi-mobans-pkg
10
10
11
+ .. image :: https://badge.fury.io/py/pypi-mobans-pkg.svg
12
+ :target: https://pypi.org/project/pypi-mobans-pkg
13
+
14
+ .. image :: https://pepy.tech/badge/pypi-mobans-pkg/month
15
+ :target: https://pepy.tech/project/pypi-mobans-pkg/month
16
+
11
17
.. image :: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
12
18
:target: https://gitter.im/chfw_moban/Lobby
13
19
Original file line number Diff line number Diff line change 1
1
name : " pypi-mobans"
2
2
organisation : moremoban
3
3
releases :
4
+ - changes :
5
+ - action : Updated
6
+ details :
7
+ - use pypi-mobans version 0.0.9
8
+ date : 12-1-2020
9
+ version : 0.0.9
4
10
- changes :
5
11
- action : Updated
6
12
details :
@@ -10,7 +16,7 @@ releases:
10
16
- changes :
11
17
- action : Updated
12
18
details :
13
- - fix the bug where the pypi-mobans were completely missing
19
+ - fix the bug where the pypi-mobans were completely missing
14
20
date : 22-01-2019
15
21
version : 0.0.3.1
16
22
- changes :
Original file line number Diff line number Diff line change 7
7
#
8
8
# This file only contains a selection of the most common options. For a full
9
9
# list see the documentation:
10
- # http ://www.sphinx-doc.org/en/master/config
10
+ # https ://www.sphinx-doc.org/en/master/usage/configuration.html
11
11
12
12
# -- Path setup --------------------------------------------------------------
13
13
22
22
# -- Project information -----------------------------------------------------
23
23
24
24
project = 'pypi-mobans-pkg'
25
- copyright = '2018-2019 Onni Software Ltd. and its contributors'
25
+ copyright = '2018-2020 Onni Software Ltd. and its contributors'
26
26
author = 'C.W.'
27
27
# The short X.Y version
28
- version = '0.0.4 '
28
+ version = '0.0.9 '
29
29
# The full version, including alpha/beta/rc tags
30
- release = '0.0.4 '
30
+ release = '0.0.9 '
31
31
32
32
# -- General configuration ---------------------------------------------------
33
33
39
39
# Add any paths that contain templates here, relative to this directory.
40
40
templates_path = ['_templates' ]
41
41
42
- # The master toctree document.
43
- master_doc = ''
44
-
45
42
# The language for content autogenerated by Sphinx. Refer to documentation
46
43
# for a list of supported languages.
47
44
#
71
68
# -- Options for intersphinx extension ---------------------------------------
72
69
73
70
# Example configuration for intersphinx: refer to the Python standard library.
74
- intersphinx_mapping = {'https://docs.python.org/' : None }
71
+ intersphinx_mapping = {'https://docs.python.org/3/ ' : None }
75
72
# TODO: html_theme not configurable upstream
76
73
html_theme = 'default'
77
74
85
82
]
86
83
intersphinx_mapping .update ({
87
84
})
85
+ master_doc = "index"
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ organisation: "moremoban"
3
3
author : " C.W."
4
4
5
5
company : " Onni Software Ltd. and its contributors"
6
- version : " 0.0.4 "
7
- current_version : " 0.0.4 "
8
- release : " 0.0.4 "
9
- copyright_year : 2018-2019
6
+ version : " 0.0.9 "
7
+ current_version : " 0.0.9 "
8
+ release : " 0.0.9 "
9
+ copyright_year : 2018-2020
10
10
license : public license
11
11
dependencies :
12
12
- lml
Original file line number Diff line number Diff line change 1
- __version__ = "0.0.4 "
1
+ __version__ = "0.0.9 "
2
2
__author__ = "C.W."
Original file line number Diff line number Diff line change 29
29
30
30
NAME = "pypi-mobans-pkg"
31
31
AUTHOR = "C.W."
32
- VERSION = "0.0.4 "
32
+ VERSION = "0.0.9 "
33
33
34
34
LICENSE = "public license"
35
35
DESCRIPTION = (
36
36
"Scaffolding mobans for your Python project."
37
37
)
38
38
URL = "https://github.com/moremoban/pypi-mobans-pkg"
39
- DOWNLOAD_URL = "%s/archive/0.0.4 .tar.gz" % URL
39
+ DOWNLOAD_URL = "%s/archive/0.0.9 .tar.gz" % URL
40
40
FILES = ["README.rst" , "CHANGELOG.rst" ]
41
41
KEYWORDS = [
42
42
"python" ,
70
70
}
71
71
# You do not need to read beyond this line
72
72
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi" .format (sys .executable )
73
- GS_COMMAND = ("gs pypi-mobans-pkg v0.0.4 " +
74
- "Find 0.0.4 in changelog for more details" )
73
+ GS_COMMAND = ("gs pypi-mobans-pkg v0.0.9 " +
74
+ "Find 0.0.9 in changelog for more details" )
75
75
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
76
76
"Please install gease to enable it." )
77
77
UPLOAD_FAILED_MSG = (
@@ -113,7 +113,7 @@ def run(self):
113
113
self .status (NO_GS_MESSAGE )
114
114
if run_status :
115
115
if os .system (PUBLISH_COMMAND ) != 0 :
116
- self .status (UPLOAD_FAILED_MSG % PUBLISH_COMMAND )
116
+ self .status (UPLOAD_FAILED_MSG )
117
117
118
118
sys .exit ()
119
119
You can’t perform that action at this time.
0 commit comments