From 688e2a164791ee8d7dfc083d862e5fc522c75170 Mon Sep 17 00:00:00 2001 From: chfw Date: Sun, 6 Oct 2019 22:27:22 +0100 Subject: [PATCH] :egg: :ferris_wheel: release 0.0.7 --- CHANGELOG.rst | 2 +- changelog.yml | 2 +- .../test-me/test_me/__init__.py | 3 +- tests/requirements.txt | 3 -- tests/test_project.py | 42 ++++++------------- 5 files changed, 15 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a56546a..91ea736 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,7 @@ Change log ================================================================================ -0.0.7 - tbd +0.0.7 - 6/10/2019 -------------------------------------------------------------------------------- Updated diff --git a/changelog.yml b/changelog.yml index 9858bd6..626ec0e 100644 --- a/changelog.yml +++ b/changelog.yml @@ -6,7 +6,7 @@ releases: details: - "upgrade yehua to use pypi-mobans-pkg version 0.0.7" - "generated project will have azure build pipeline, moban command stage in travis and local flake8 check" - date: tbd + date: 6/10/2019 version: 0.0.7 - changes: - action: Updated diff --git a/tests/fixtures/project_templating/test-me/test_me/__init__.py b/tests/fixtures/project_templating/test-me/test_me/__init__.py index 37fcbf0..94bbe88 100644 --- a/tests/fixtures/project_templating/test-me/test_me/__init__.py +++ b/tests/fixtures/project_templating/test-me/test_me/__init__.py @@ -1,3 +1,2 @@ # flake8: noqa -from test_me._version import __version__ -from test_me._version import __author__ +from test_me._version import __author__, __version__ diff --git a/tests/requirements.txt b/tests/requirements.txt index 9f5ce99..c445df5 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -3,6 +3,3 @@ mock codecov coverage flake8 -black;python_version>="3.6" -isort;python_version>="3.6" - diff --git a/tests/test_project.py b/tests/test_project.py index c4afb81..5d7fa28 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -60,34 +60,16 @@ def test_project_copy_static(self): calls = self.copy_file.call_args_list calls = [split_call_arguments(call) for call in calls] expected = [ - [ - "CUSTOM_README.rst", - "test-me/.moban.d/CUSTOM_README.rst.jj2", - ], - [ - "custom_setup.py.jj2", - "test-me/.moban.d/custom_setup.py.jj2", - ], + ["CUSTOM_README.rst", "test-me/.moban.d/CUSTOM_README.rst.jj2"], + ["custom_setup.py.jj2", "test-me/.moban.d/custom_setup.py.jj2"], [ "tests/custom_requirements.txt.jj2", "test-me/.moban.d/tests/custom_requirements.txt.jj2", ], - [ - "CHANGELOG.rst", - "test-me/CHANGELOG.rst", - ], - [ - "MANIFEST.in", - "test-me/MANIFEST.in", - ], - [ - "setup.cfg", - "test-me/setup.cfg", - ], - [ - "azure-pipelines.yml", - "test-me/azure-pipelines.yml", - ], + ["CHANGELOG.rst", "test-me/CHANGELOG.rst"], + ["MANIFEST.in", "test-me/MANIFEST.in"], + ["setup.cfg", "test-me/setup.cfg"], + ["azure-pipelines.yml", "test-me/azure-pipelines.yml"], [ ".azure-pipelines-steps-macos.yml", "test-me/.azure-pipelines-steps-macos.yml", @@ -106,14 +88,14 @@ def test_project_copy_static(self): def test_project_templating(self): def mock_save_file(filename, filecontent): file_to_write = os.path.join( - "tests", "fixtures", - "project_templating", filename) + "tests", "fixtures", "project_templating", filename + ) path = os.path.dirname(file_to_write) if not os.path.exists(path): - print(path) - os.mkdir(path) - with open(file_to_write, 'w') as f: - f.write(filecontent) + print(path) + os.mkdir(path) + with open(file_to_write, "w") as f: + f.write(filecontent) file_to_read = os.path.join( "tests", "fixtures", "project_templating", filename )