-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,709 additions
and
1,751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
""" | ||
|
||
# See https://packaging.python.org/en/latest/specifications/version-specifiers/ | ||
__version__ = '0.19.2' | ||
__version__ = '0.20.0' | ||
__author__ = 'Jens Diemer <[email protected]>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,15 @@ | ||
import os | ||
from unittest import TestCase, skipIf | ||
|
||
from bx_py_utils.auto_doc import assert_readme_block | ||
from cli_base.cli_tools.git_history import get_git_history | ||
|
||
import manageprojects | ||
from manageprojects.cli_dev import PACKAGE_ROOT | ||
from cli_base.cli_tools.constants import GITHUB_ACTION | ||
from cli_base.cli_tools.git_history import update_readme_history | ||
|
||
|
||
class ReadmeHistoryTestCase(TestCase): | ||
@skipIf( | ||
# After a release the history may be "changed" because of version bump | ||
# and we should not block merge requests because of this. | ||
'GITHUB_ACTION' in os.environ, | ||
# After a release the history may be "changed" because of version bump. | ||
# We should not block merge requests because of this. | ||
GITHUB_ACTION, | ||
reason='Skip on github actions', | ||
) | ||
def test_readme_history(self): | ||
git_history = get_git_history( | ||
current_version=manageprojects.__version__, | ||
add_author=False, | ||
) | ||
history = '\n'.join(git_history) | ||
assert_readme_block( | ||
readme_path=PACKAGE_ROOT / 'README.md', | ||
text_block=f'\n{history}\n', | ||
start_marker_line='[comment]: <> (✂✂✂ auto generated history start ✂✂✂)', | ||
end_marker_line='[comment]: <> (✂✂✂ auto generated history end ✂✂✂)', | ||
) | ||
update_readme_history(raise_update_error=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.