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

Make virtualfish work without installation #132

Merged
merged 1 commit into from Jan 2, 2018

Conversation

amezin
Copy link
Contributor

@amezin amezin commented Nov 26, 2017

I want to keep my shell configuration in a git repository, and avoid manual installation steps as much as possible.

I store 'virtualenv' and 'virtualfish' as git submodules. 'virtualenv' works just fine when PYTHONPATH points to its repository. The only problem is 'virtualfish' requiring installation, just to show version information.

Copy link
Collaborator

@daisylb daisylb left a comment

Choose a reason for hiding this comment

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

Thanks for your PR :)

This won't work at all for version 2's new loading mechanism, but I'm happy to merge this into the current version if you fix the issue I highlighted, and also ensure the URL output by vf help points to something valid.

version = pkg_resources.get_distribution('virtualfish').version
try:
version = pkg_resources.get_distribution('virtualfish').version
except:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer it if you caught a specific exception here instead of using a bare except block.

@amezin amezin force-pushed the master branch 2 times, most recently from fa2bc0a to 029b9d2 Compare November 27, 2017 03:37
@amezin
Copy link
Contributor Author

amezin commented Nov 28, 2017

Fixed.
Help URL is now "http://virtualfish.readthedocs.org/en/latest/" when version is unknown

@amezin
Copy link
Contributor Author

amezin commented Jan 2, 2018

@adambrenecki ping

@daisylb daisylb merged commit 64f7675 into justinmayer:master Jan 2, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants