-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fire.py: Use fire on arbitrary file or module. #35
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
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
It seems to pass the Travis CI on all the python 3 versions tested, but not python 2. But in my own testing it works fine on python 2, and I haven't figured out where it's going wrong in
Hints welcome :) |
CLAs look good, thanks! |
Thanks for starting this. Travis Development workflow Code review |
Thanks, @dberlin . That was my hunch for the import issue, but it makes me yet more curious about why it works in python 3. |
I changed the base to 'issue29-fire-without-edits'. |
Another thing that's missing here is the ability to resolve to classes or functions within a module (tho I guess that's really just quibbling over addition or removal of an extra space) |
If they're within a module (e.g. If we want to support builtin classes/functions (e.g. |
Should fix the build problem for python 2. Later, get it installed as "fire" via setup.py
Following advice from Python Apps the Right Way: entry points and scripts | Chris Warrick https://chriswarrick.com/blog/2014/09/15/python-apps-the-right-way-entry_points-and-scripts/
@dbieber is the PR done or something still remains? |
I am OK w/ merging this to the issue29-fire-without-edits branch. Apologies for not merging sooner. Some things that remain before merging to master:
|
Thanks. Also needed: tests! Input on good testing approaches and frameworks for command-line functionality |
@nealmcb I would love to work on tests as I have recently studied them, might require some help , can I take this up? |
Based on the discussion at Use fire without editing code directly · Issue #29 · google/python-fire
Of course, still needs better error handling, documentation, installation support, etc.