Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Add python hachoir-metadata #31044

Closed
wants to merge 10 commits into from
Closed

Add python hachoir-metadata #31044

wants to merge 10 commits into from

Conversation

spk
Copy link
Contributor

@spk spk commented Jul 22, 2014

Added formula to install hachoir.

@MikeMcQuaid
Copy link
Member

I think these should be a single formula that installs all the parts.

@spk
Copy link
Contributor Author

spk commented Jul 22, 2014

Ok I think then only hachoir-metadata is needed

@spk spk changed the title Add hachoir core parser regex and metadata Add python hachoir-metadata Jul 25, 2014
@spk
Copy link
Contributor Author

spk commented Jul 25, 2014

I updated this PR to have one commit and install only hachoir-metadata

@MikeMcQuaid
Copy link
Member

@BrewTestBot test this please


depends_on :python if MacOS.version <= :snow_leopard

resource 'hachoir-core' do
Copy link
Member

Choose a reason for hiding this comment

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

Use double-quotes everywhere.

@MikeMcQuaid
Copy link
Member

Looking much better! A few suggestions.

@spk
Copy link
Contributor Author

spk commented Jul 25, 2014

Hope you will like it !

end

test do
output = `#{bin}/hachoir-metadata --version`
Copy link
Member

Choose a reason for hiding this comment

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

This is still just checking the version. Could you do something to actually run the tool on some input?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah ok ! Yes I do that.

@spk
Copy link
Contributor Author

spk commented Jul 25, 2014

I'm creating a one sized pixel png file and test the mime type is equal to image/png

@MikeMcQuaid
Copy link
Member

Seems that brew test and brew audit are failing, I'm afraid 😭

@spk
Copy link
Contributor Author

spk commented Jul 28, 2014

It's working fine locally I'm under 10.9.4 OS X, can I have some help ?

@MikeMcQuaid
Copy link
Member

It's failing under 10.7 and 10.8. Perhaps you should add a failure message to the assertions so we can see which one is failing.

@spk
Copy link
Contributor Author

spk commented Jul 28, 2014

@MikeMcQuaid It's the mime test that failing but no output... Do you have an idea ? I'm new to OS X environment.

require "formula"

class HachoirMetadata < Formula
VERSION = '1.3.3'
Copy link
Member

Choose a reason for hiding this comment

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

Remove this; just use version in the formula where you need to access it instead.

@MikeMcQuaid
Copy link
Member

@spk I'm not sure what's going on there. We could perhaps limit it to Mavericks and add a comment if someone else wants to fix it in future? @mistydemeo @adamv @jacknagel Any thoughts?

spk added 2 commits July 28, 2014 13:35
no outputs for mime type on 10.7 and 10.8
@spk
Copy link
Contributor Author

spk commented Jul 28, 2014

If people don't want to debug my stuff I can understand. I limit then to Mavericks. Thanks for the helps !

@MikeMcQuaid
Copy link
Member

In fact, I've got an idea of what it might be. Those versions are running Ruby 1.8 so the unicode output may be different. I think it might be better to just create a PNG and put it in the Homebrew repo. @jacknagel @mistydemeo @adamv any objections to me putting a single, small image in the repo to use as test data? It would also help with formulae like imagemagick.

@spk
Copy link
Contributor Author

spk commented Jul 28, 2014

Ah ok cool, where can I put it ?

@MikeMcQuaid
Copy link
Member

@spk Hold off for a bit while I wait for the other maintainers to weigh in.

@adamv
Copy link
Contributor

adamv commented Jul 28, 2014

A small png in the test folder seems fine.

@spk
Copy link
Contributor Author

spk commented Jul 28, 2014

@MikeMcQuaid Sorry ! I'm waiting for GO !

@MikeMcQuaid
Copy link
Member

@spk Can you put a 1x1 PNG file in Library/Homebrew/test/fixtures/test.png and modify the test to use that? Thanks!

@spk
Copy link
Contributor Author

spk commented Jul 28, 2014

Roger o>

@spk
Copy link
Contributor Author

spk commented Jul 28, 2014

\o/

@MikeMcQuaid
Copy link
Member

Thanks for all your work here!

@spk spk deleted the add_python_hachoir branch July 29, 2014 07:55
aerickson pushed a commit to aerickson/homebrew that referenced this pull request Aug 3, 2014
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants