Skip to content

Commit

Permalink
chore: prepare v0.16.7 for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed May 24, 2023
1 parent 7a0f34c commit 9df0cba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v0.16.7 (2023-05-24)

- Only strips the leading `v` from the version string instead of replacing all `v`s with nothing so versions such as `v0.1.0.dev0` can be picked up

## v0.16.6 (2023-04-20)

- Enables typing in generated formula to appease `brew audit`
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

DEV_REQUIREMENTS = [
'bandit == 1.7.*',
'black == 22.*',
'black == 23.*',
'build == 0.10.*',
'flake8 == 6.*',
'isort == 5.*',
'mypy == 0.991',
'mypy == 1.3.*',
'pytest == 7.*',
'pytest-cov == 4.*',
'twine == 4.*',
Expand All @@ -26,7 +26,7 @@

setuptools.setup(
name='homebrew-releaser',
version='0.16.6',
version='0.16.7',
description='Release scripts, binaries, and executables directly to Homebrew via GitHub Actions.',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
28 changes: 8 additions & 20 deletions test/unit/test_formula.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,32 +84,20 @@ def test_generate_formula():
record_formula(formula_path, formula_filename, formula)

# The following assertions are explicitly listed as the "gold standard" for generic formula generation
assert (
'''# typed: true
assert '''# typed: true
# frozen_string_literal: true
# This file was generated by Homebrew Releaser. DO NOT EDIT.'''
in formula
)
assert (
'''desc "Tool to release scripts, binaries, and executables to github"
# This file was generated by Homebrew Releaser. DO NOT EDIT.''' in formula
assert '''desc "Tool to release scripts, binaries, and executables to github"
homepage "https://github.com/Justintime50/test-generate-formula"
url "https://github.com/Justintime50/test-generate-formula/archive/v0.1.0.tar.gz"
sha256 "0000000000000000000000000000000000000000000000000000000000000000"
license "MIT"'''
in formula
)
assert (
'''depends_on "bash" => :build
depends_on "gcc"'''
in formula
)
assert (
'''def install
license "MIT"''' in formula
assert '''depends_on "bash" => :build
depends_on "gcc"''' in formula
assert '''def install
bin.install "src/secure-browser-kiosk.sh" => "secure-browser-kiosk"
end'''
in formula
)
end''' in formula
assert '''test do
assert_match("my script output", shell_output("my-script-command"))
end'''
Expand Down

0 comments on commit 9df0cba

Please sign in to comment.