Skip to content

Commit

Permalink
Merge pull request #963 from Backblaze/misc_cleanup
Browse files Browse the repository at this point in the history
Misc cleanup
  • Loading branch information
mjurbanski-reef authored Nov 29, 2023
2 parents 9b3d700 + 0e33ad6 commit 179c1bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 23 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

env:
CD: "true"
ACTIONS_STEP_DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYTHON_DEFAULT_VERSION: "3.12"

Expand Down Expand Up @@ -41,7 +40,7 @@ jobs:
with:
name: ${{ steps.build.outputs.version }}
body: ${{ steps.read-changelog.outputs.changes }}
draft: ${{ env.ACTIONS_STEP_DEBUG == 'true' }}
draft: false
prerelease: false
files: ${{ steps.build.outputs.asset_path }}
- name: Upload the distribution to PyPI
Expand Down Expand Up @@ -80,7 +79,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
name: ${{ needs.deploy.outputs.version }}
draft: ${{ env.ACTIONS_STEP_DEBUG == 'true' }}
draft: false
prerelease: false
files: ${{ steps.sign.outputs.asset_path }}
deploy-windows-bundle:
Expand Down Expand Up @@ -120,6 +119,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
name: ${{ needs.deploy.outputs.version }}
draft: ${{ env.ACTIONS_STEP_DEBUG == 'true' }}
draft: false
prerelease: false
files: ${{ steps.sign.outputs.asset_path }}
19 changes: 0 additions & 19 deletions b2/console_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -4098,25 +4098,6 @@ def _setup_logging(cls, args, argv):
get_parser = functools.partial(B2.create_parser, for_docs=True)


# TODO: import from b2sdk as soon as we rely on 1.0.0
class InvalidArgument(B2Error):
"""
Raised when one or more arguments are invalid
"""

def __init__(self, parameter_name, message):
"""
:param parameter_name: name of the function argument
:param message: brief explanation of misconfiguration
"""
super().__init__()
self.parameter_name = parameter_name
self.message = message

def __str__(self):
return f"{self.parameter_name} {self.message}"


def main():
ct = ConsoleTool(b2_api=None, stdout=sys.stdout, stderr=sys.stderr)
exit_status = ct.run_command(sys.argv)
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+remove_redundant_todo.infrastructure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove unused exception class and outdated todo
1 change: 1 addition & 0 deletions changelog.d/+skip_draft_step_in_releases.infrastructure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Skip draft step in releases - all successful releases are public

0 comments on commit 179c1bc

Please sign in to comment.