Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platformio 3.4.0 #14970

Closed
wants to merge 1 commit into from
Closed

platformio 3.4.0 #14970

wants to merge 1 commit into from

Conversation

ivankravets
Copy link
Contributor

Release Notes

@ilovezfs
Copy link
Contributor

It looks like you're missing some dependencies. I recommend that you use https://github.com/tdsmith/homebrew-pypi-poet/ to fix that.

@ilovezfs ilovezfs added python Python use is a significant feature of the PR or issue test failure CI fails while running the test-do block labels Jun 27, 2017
@ivankravets
Copy link
Contributor Author

Thank you very much! I updated formula with poet's output.

@ilovezfs
Copy link
Contributor

@ivankravets you're welcome. Note that the bottle block should not be altered. The test-bot handles the commits that update the bottle block automatically.

@ilovezfs ilovezfs removed the test failure CI fails while running the test-do block label Jun 27, 2017
@ivankravets
Copy link
Contributor Author

I reverted back "bottle" block

@@ -13,31 +13,41 @@ class Platformio < Formula
sha256 "ffbfedc16ce2eccbb65ca74b48cf6c94cf24097b0fd88d70f7bc323a1435fd7f" => :yosemite
end

depends_on :python if MacOS.version <= :snow_leopard
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should stay as it was.

depends_on :python if MacOS.version <= :snow_leopard

depends_on :python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

white space issue here

def install
virtualenv_install_with_resources
end

test do
system bin/"platformio"
system bin/"pio"
system bin/"piodebuggdb"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exit code is 1 not 0, so you'll need to use shell_output("#{bin}/piodebuggdb", 1), and assert_match against some part of the output if you want to test this command.

Copy link
Contributor Author

@ivankravets ivankravets Jun 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How we can call with piodebuggdb --help?

@ivankravets
Copy link
Contributor Author

Sorry, why we should use this poet when it generates incorrect formula?

@ilovezfs
Copy link
Contributor

Sorry, why we should use this poet when it generates incorrect formula?

Once a formula already exists, usually poet -r is sufficient.

def install
virtualenv_install_with_resources
end

test do
system bin/"platformio"
system bin/"pio"
shell_output("#{bin}/platformio", 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I meant only piodebuggdb. The other two still have exit code 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange machinery...

system bin/"pio"
shell_output("#{bin}/platformio", 1)
shell_output("#{bin}/pio", 1)
shell_output("#{bin}/piodebuggdb", 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use assert_match here as well

@ilovezfs
Copy link
Contributor

How we can call with piodebuggdb -- help?

Yes that will work.

system bin/"piodebuggdb", "--help"

@ivankravets
Copy link
Contributor Author

Thanks! Now it looks good.

resource "urllib3" do
url "https://files.pythonhosted.org/packages/96/d9/40e4e515d3e17ed0adbbde1078e8518f8c4e3628496b56eb8f026a02b9e4/urllib3-1.21.1.tar.gz"
sha256 "b14486978518ca0901a76ba973d7821047409d7f726f22156b24e83fd71382a5"
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's trailing whitespace here

@ilovezfs
Copy link
Contributor

🍏

@ilovezfs ilovezfs closed this in 3105f3d Jun 27, 2017
@ilovezfs
Copy link
Contributor

Thanks for the update @ivankravets! ❇️

@ivankravets
Copy link
Contributor Author

Thank you too!

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
python Python use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants