Skip to content

Commit e261b4d

Browse files
authored
Lean yehua - 0.1.3 (#68)
* 🔥 relocated embedded resources to pypi-mobans * 📰 use pypi-mobans-pkg, instead of half in yehua and half in pypi-mobans * This is an auto-commit, updating project meta data, such as changelog.rst, contributors.rst * 💚 add the missing dependency * This is an auto-commit, updating project meta data, such as changelog.rst, contributors.rst * 💚 update travis file * This is an auto-commit, updating project meta data, such as changelog.rst, contributors.rst * 🤝 sync with pypi-mobans * 💚 update unit tests * This is an auto-commit, updating project meta data, such as changelog.rst, contributors.rst * 🐛 use pypi-mobans-pkg v0.1.3 * This is an auto-commit, updating project meta data, such as changelog.rst, contributors.rst * 🐛 update pypi-mobans-pkg version * This is an auto-commit, updating project meta data, such as changelog.rst, contributors.rst Co-authored-by: chfw <[email protected]>
1 parent 44c204b commit e261b4d

27 files changed

+44
-225
lines changed

.github/workflows/moban-update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
python-version: '3.7'
1515
- name: check changes
1616
run: |
17-
pip install moban gitfs2 pypifs moban-jinja2-github
17+
pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
1818
moban
1919
git status
2020
git diff --exit-code

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ stages:
2828
env:
2929
- MINREQ=0
3030
stage: moban
31-
install: pip install moban>=0.0.4 gitfs2 pypifs
31+
install: pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
3232
script:
3333
- moban
3434
- git diff --exit-code

CHANGELOG.rst

+8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Change log
22
================================================================================
33

4+
0.1.3 - 13.09.2020
5+
--------------------------------------------------------------------------------
6+
7+
**Updated**
8+
9+
#. use pypi-mobans v0.1.0
10+
#. no longer, yehua has any template in itself.
11+
412
0.1.2 - 26.08.2020
513
--------------------------------------------------------------------------------
614

changelog.yml

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: yehua
22
organisation: moremoban
33
releases:
4+
- changes:
5+
- action: Updated
6+
details:
7+
- "use pypi-mobans v0.1.0"
8+
- no longer, yehua has any template in itself.
9+
date: 13.09.2020
10+
version: 0.1.3
411
- changes:
512
- action: Fixed
613
details:

docs/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
spelling_word_list_filename = 'spelling_wordlist.txt'
1717
project = u'yehua'
1818
copyright = u'2017-2020 Onni Software Ltd.'
19-
version = '0.1.2'
20-
release = '0.1.2'
19+
version = '0.1.3'
20+
release = '0.1.3'
2121
exclude_patterns = []
2222
pygments_style = 'sphinx'
2323
html_theme = 'default'

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ rich
88
readchar
99
colorama
1010
moban-jinja2-github>=0.0.2
11+
moban-ansible

setup.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
NAME = "yehua"
3434
AUTHOR = "chfw"
35-
VERSION = "0.1.2"
35+
VERSION = "0.1.3"
3636
3737
LICENSE = "New BSD"
3838
ENTRY_POINTS = {
@@ -44,7 +44,7 @@
4444
"Yet another a project template tool for an organisation."
4545
)
4646
URL = "https://github.com/moremoban/yehua"
47-
DOWNLOAD_URL = "%s/archive/0.1.2.tar.gz" % URL
47+
DOWNLOAD_URL = "%s/archive/0.1.3.tar.gz" % URL
4848
FILES = ["README.rst","CONTRIBUTORS.rst", "CHANGELOG.rst"]
4949
KEYWORDS = [
5050
"python",
@@ -76,21 +76,22 @@
7676
"readchar",
7777
"colorama",
7878
"moban-jinja2-github>=0.0.2",
79+
"moban-ansible",
7980
]
8081
SETUP_COMMANDS = {}
8182

8283
PACKAGES = find_packages(exclude=["ez_setup", "examples", "tests", "tests.*"])
8384
EXTRAS_REQUIRE = {
84-
"pypi-mobans": ['pypi-mobans-pkg>=0.0.15'],
85+
"pypi-mobans": ['pypi-mobans-pkg>=0.1.4'],
8586
"cookiecutter": ['cookiecutter==1.7.0'],
8687
":python_version == '3.7'": ["ruamel.yaml>=0.15.42"],
8788
":python_version != '3.4' and python_version < '3.7'": ["ruamel.yaml>=0.15.5"],
8889
":python_version == '3.8'": ["ruamel.yaml>=0.15.98"],
8990
}
9091
# You do not need to read beyond this line
9192
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
92-
GS_COMMAND = ("gs yehua v0.1.2 " +
93-
"Find 0.1.2 in changelog for more details")
93+
GS_COMMAND = ("gs yehua v0.1.3 " +
94+
"Find 0.1.3 in changelog for more details")
9495
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
9596
"Please install gease to enable it.")
9697
UPLOAD_FAILED_MSG = (

tests/fixtures/project_yehua/.github/workflows/moban-update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
python-version: '3.7'
1515
- name: check changes
1616
run: |
17-
pip install moban gitfs2 pypifs
17+
pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
1818
moban
1919
git status
2020
git diff --exit-code

tests/fixtures/project_yehua/.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ stages:
3232
env:
3333
- MINREQ=0
3434
stage: moban
35-
install: pip install moban>=0.0.4 gitfs2 pypifs
35+
install: pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
3636
script:
3737
- moban
3838
- git diff --exit-code

tests/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ pytest-cov
1414
cookiecutter
1515
gitfs2
1616
pypifs
17-
pypi-mobans-pkg==0.0.15
17+
pypi-mobans-pkg>=0.1.4

tests/test_main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def test_get_yehua_file_2():
8787

8888

8989
def test_get_yehua_file_3():
90-
default_yehua_file = os.path.join("yehua", "resources", "yehua.yml")
90+
default_yehua_file = 'pypi://pypi-mobans-pkg/resources/yehua.yml'
9191
yehua_file = get_yehua_file()
92-
eq_(os.path.abspath(default_yehua_file), yehua_file)
92+
eq_(default_yehua_file, yehua_file)
9393

9494

9595
@raises(SystemExit)

tests/test_project.py

+4-18
Original file line numberDiff line numberDiff line change
@@ -72,30 +72,16 @@ def test_project_copy_static(self):
7272
["CUSTOM_README.rst", "test-me/.moban.d/CUSTOM_README.rst.jj2"],
7373
["custom_setup.py.jj2", "test-me/.moban.d/custom_setup.py.jj2"],
7474
[
75-
"tests/custom_requirements.txt.jj2",
75+
"requirements.txt.jj2",
7676
"test-me/.moban.d/tests/custom_requirements.txt.jj2",
7777
],
7878
["CHANGELOG.rst", "test-me/CHANGELOG.rst"],
7979
["setup.cfg", "test-me/setup.cfg"],
80-
["azure-pipelines.yml", "test-me/azure-pipelines.yml"],
81-
[
82-
"azure/pipelines-steps-macos.yml",
83-
"test-me/.azure-pipelines-steps-macos.yml",
84-
],
85-
[
86-
"azure/pipelines-steps.yml",
87-
"test-me/.azure-pipelines-steps.yml",
88-
],
89-
[
90-
"pythonpublish.yml",
91-
"test-me/.github/workflows/pythonpublish.yml",
92-
],
9380
]
94-
basepath = os.path.join(os.getcwd(), "yehua", "resources", "static")
95-
expected = [
96-
[os.path.join(basepath, path[0]), path[1]] for path in expected
81+
updated_calls = [
82+
[os.path.basename(call[0]), call[1]] for call in calls
9783
]
98-
for call, expectee in zip(calls, expected):
84+
for call, expectee in zip(updated_calls, expected):
9985
eq_(call, expectee)
10086

10187
def test_project_templating(self):

yehua.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ organisation: "moremoban"
44
author: chfw
55
66
company: "Onni Software Ltd."
7-
version: "0.1.2"
8-
current_version: "0.1.2"
9-
release: "0.1.2"
7+
version: "0.1.3"
8+
current_version: "0.1.3"
9+
release: "0.1.3"
1010
copyright_year: 2017-2020
1111
command_line_interface: "yh"
1212
entry_point: "yehua.main:main"
@@ -25,9 +25,10 @@ dependencies:
2525
- readchar
2626
- colorama
2727
- moban-jinja2-github>=0.0.2
28+
- moban-ansible
2829
extra_dependencies:
2930
- pypi-mobans:
30-
- pypi-mobans-pkg>=0.0.15
31+
- pypi-mobans-pkg>=0.1.4
3132
- cookiecutter:
3233
- cookiecutter==1.7.0
3334
test_dependencies:
@@ -36,7 +37,7 @@ test_dependencies:
3637
- cookiecutter
3738
- gitfs2
3839
- pypifs
39-
- pypi-mobans-pkg==0.0.15
40+
- pypi-mobans-pkg>=0.1.4
4041
description: Yet another a project template tool for an organisation.
4142
python_requires: ">=3.6"
4243
min_python_version: "3.6"

yehua/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "0.1.2"
1+
__version__ = "0.1.3"
22
__author__ = "chfw"

yehua/resources/static/CHANGELOG.rst

-2
This file was deleted.

yehua/resources/static/CUSTOM_README.rst

-6
This file was deleted.

yehua/resources/static/MANIFEST.in

-2
This file was deleted.

yehua/resources/static/custom_setup.py.jj2

-1
This file was deleted.

yehua/resources/static/setup.cfg

-2
This file was deleted.

yehua/resources/static/tests/custom_requirements.txt.jj2

-7
This file was deleted.

yehua/resources/templates/Makefile

-21
This file was deleted.

yehua/resources/templates/__init__.py.jj2

-3
This file was deleted.

yehua/resources/templates/changelog.yml

-9
This file was deleted.

yehua/resources/templates/project-moban.yml

-33
This file was deleted.

yehua/resources/templates/project.yml

-24
This file was deleted.

0 commit comments

Comments
 (0)