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

Rename bro cmdline program to brotli (or similar) #281

Closed
thinred opened this issue Dec 18, 2015 · 6 comments
Closed

Rename bro cmdline program to brotli (or similar) #281

thinred opened this issue Dec 18, 2015 · 6 comments

Comments

@thinred
Copy link
Contributor

thinred commented Dec 18, 2015

Hi,
I'm packaging brotli for Debian and I wanted to install bro.py in /usr/bin.
I wanted to know what would be the official name for this program and rename it if it conflicts:

According to the above, I'd be happy if you would rename bro.py to brotli or something else that does not conflict, nor violates Debian policy.

Best regards,
Tomasz

@thinred thinred changed the title Rename bro.py to brotli.py (or similar) Rename bro.py to brotli (or similar) Dec 18, 2015
@anthrotype
Copy link
Member

Hi @thinred,
The reason I did the bro.py script was primarily to test the Brotli Python extension on Windows (cf. #38).

At that time, I wasn't able to compile the bro.cc tool for Windows, and I wanted to avoid having to install Cygwin, MSYS, etc., in order to run the compatibility_test.sh and roundtrip_test.sh scripts. So I wrote a Python clone of the bro.cc tool and equivalent scripts for compatibility and roundtrip tests.

I didn't add bro.py to the brotli Python package, nor the setup.py script, because I thought that users of the Python bindings would be more interested in using brotli as a module to import in other applications, rather than as a command line script.

However, if you or others think it could be useful, we could easily move it inside the package and have setuptools generate a platform-specific console script (using its entry_points feature). On Linux or OS X, it would be named without the .py extension, whereas on Windows it will have .exe.

Although, I guess for Debian it would be fine to simply package the C++ command line tool (that is called bro with no language extensions).

Also, bear in mind, the Python bindings and hence bro.py still don't expose the new streaming API, while the bro C++ tool does (cf. #271).

@thinred
Copy link
Contributor Author

thinred commented Dec 18, 2015

Hi @anthrotype,
thank you for your elaborate response. I must admit that I missed bro.cc in the sources :).
Ok, I prefer bro.cc too, but the naming issue remains. I think that it must be installed as /usr/bin/brotli and not /usr/bin/bro...

Another problem that may deserve its own issue is that brotli has no dynamic library. Do you plan to provide libbrotli?

@nemequ
Copy link
Contributor

nemequ commented Dec 21, 2015

Another problem that may deserve its own issue is that brotli has no dynamic library. Do you plan to provide libbrotli?

I could be wrong, but I don't think brotli is API/ABI stable yet; it might be wise to hold off on packaging a library for now.

@thinred
Copy link
Contributor Author

thinred commented Dec 21, 2015

That's what I thought, fair enough.
What about the name of cmdline program?

@thinred thinred changed the title Rename bro.py to brotli (or similar) Rename bro cmdline program to brotli (or similar) Dec 23, 2015
@catlee
Copy link

catlee commented Jan 19, 2016

would be great if the CLI followed standard patterns like gzip, bzip2 and xz use.

@eustas
Copy link
Collaborator

eustas commented Jun 1, 2017

Fixed in #555.

@eustas eustas closed this as completed Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants