-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
55ab9e6
commit ff2f5ca
Showing
6 changed files
with
20 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.4.0 | ||
current_version = 0.4.1 | ||
commit = True | ||
tag = 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
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
2020 Dominic Davis-Foster <[email protected]> | ||
""" | ||
|
||
__version__ = "0.4.0" | ||
__version__ = "0.4.1" | ||
|
||
repo_root = pathlib.Path(__file__).parent | ||
install_requires = (repo_root / "requirements.txt").read_text(encoding="utf-8").split('\n') | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ author: 'Dominic Davis-Foster' | |
email: '[email protected]' | ||
username: 'repo-helper' | ||
assignee: 'domdfcoding' | ||
version: '0.4.0' | ||
version: '0.4.1' | ||
license: 'MIT' | ||
short_desc: "Manage GitHub repositories with repo-helper." | ||
|
||
|
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 |
---|---|---|
|
@@ -65,7 +65,7 @@ | |
__author__: str = "Dominic Davis-Foster" | ||
__copyright__: str = "2020 Dominic Davis-Foster" | ||
__license__: str = "MIT License" | ||
__version__: str = "0.4.0" | ||
__version__: str = "0.4.1" | ||
__email__: str = "[email protected]" | ||
|
||
__all__ = [ | ||
|
@@ -119,7 +119,7 @@ class GitHubManager(RepoHelper): | |
:param verbose: Whether to show information on the GitHub API rate limit. | ||
:param colour: Whether to use coloured output. | ||
.. versionchanged:: 0.4.0 | ||
.. versionchanged:: 0.4.1 | ||
Added the ``verbose`` and ``colour`` options. | ||
""" # noqa: D400 | ||
|
@@ -131,14 +131,14 @@ class GitHubManager(RepoHelper): | |
""" | ||
Whether to show information on the GitHub API rate limit. | ||
.. versionadded: 0.4.0 | ||
.. versionadded: 0.4.1 | ||
""" | ||
|
||
colour: Optional[bool] | ||
""" | ||
Whether to use coloured output. | ||
.. versionadded: 0.4.0 | ||
.. versionadded: 0.4.1 | ||
""" | ||
|
||
def __init__( | ||
|
@@ -170,11 +170,11 @@ def new(self, org: bool = False) -> int: | |
:param org: Whether the repository should be created for the organisation set as ``username``, | ||
or for the authenticated user (default). | ||
.. versionchanged:: 0.4.0 | ||
.. versionchanged:: 0.4.1 | ||
Removed the ``verbose`` option. Provide it to the class constructor instead. | ||
.. versionchanged:: 0.4.0 Added the ``org`` argument. | ||
.. versionchanged:: 0.4.1 Added the ``org`` argument. | ||
""" | ||
|
||
with self.echo_rate_limit(): | ||
|
@@ -209,11 +209,11 @@ def update(self, org: bool = False) -> int: | |
:param org: Whether the repository should be created for the organisation set as ``username``, | ||
or for the authenticated user (default). | ||
.. versionchanged:: 0.4.0 | ||
.. versionchanged:: 0.4.1 | ||
Removed the ``verbose`` option. Provide it to the class constructor instead. | ||
.. versionchanged:: 0.4.0 Added the ``org`` argument. | ||
.. versionchanged:: 0.4.1 Added the ``org`` argument. | ||
""" | ||
|
||
with self.echo_rate_limit(): | ||
|
@@ -241,7 +241,7 @@ def get_org_or_user(self, org: bool = False) -> Union[Organization, Authenticate | |
:param org: | ||
.. versionadded:: 0.4.0 | ||
.. versionadded:: 0.4.1 | ||
""" # noqa: D400 | ||
|
||
user = self.github.get_user() | ||
|
@@ -270,9 +270,9 @@ def secrets( | |
``PYPI_TOKEN`` and ``ANACONDA_TOKEN`` can either be passed as keyword arguments to this function or provided at the interactive prompt. | ||
.. versionadded:: 0.4.0 | ||
.. versionadded:: 0.4.1 | ||
.. versionchanged:: 0.4.0 Add ``overwrite``, ``PYPI_TOKEN``, ``ANACONDA_TOKEN`` options. | ||
.. versionchanged:: 0.4.1 Add ``overwrite``, ``PYPI_TOKEN``, ``ANACONDA_TOKEN`` options. | ||
""" | ||
|
||
with self.echo_rate_limit(): | ||
|
@@ -343,7 +343,7 @@ def protect_branch(self, branch: str, org: bool = False) -> int: | |
:param org: Whether the repository should be created for the organisation set as ``username``, | ||
or for the authenticated user (default). | ||
.. versionadded:: 0.4.0 | ||
.. versionadded:: 0.4.1 | ||
""" | ||
|
||
with self.echo_rate_limit(): | ||
|
@@ -456,7 +456,7 @@ def encrypt_secret(public_key: str, secret_value: str) -> str: | |
:param public_key: | ||
:param secret_value: | ||
.. versionadded: 0.4.0 | ||
.. versionadded: 0.4.1 | ||
""" | ||
|
||
public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder()) | ||
|
@@ -471,7 +471,7 @@ def compile_required_checks(repo: RepoHelper) -> Iterator[str]: | |
:param repo: | ||
.. versionadded:: 0.4.0 | ||
.. versionadded:: 0.4.1 | ||
""" | ||
|
||
actions_manager = ActionsManager(repo.target_repo, repo.templates) | ||
|
@@ -520,7 +520,7 @@ class IsolatedGitHubManager(GitHubManager): | |
:param verbose: Whether to show information on the GitHub API rate limit. | ||
:param colour: Whether to use coloured output. | ||
.. versionadded:: 0.4.0 | ||
.. versionadded:: 0.4.1 | ||
""" # noqa: D400 | ||
|
||
def __init__( | ||
|