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

Add "flit info --version" command #263

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

exhuma
Copy link

@exhuma exhuma commented May 1, 2019

This PR adds a new subcommand info with the argument --version.

Calling flit info --version will simply print the package version number to stdout. As the version number is missing in pyproject.toml when using flit, this command allows external tools to easily access the projects version number.

I did not implement this as flit --version as that woulc conflict with the existing flag. Having is as subcommand also makes it a bit more expressive. This PR adds the new subcommand "info" which could serve as a container for additional "informational" commands.

Questions to the maintainer(s):

I also - out of habit - added a type annotation. To be on the safe side, I used the Python2 syntax. But personally I prefer the Python 3 syntax. What is your position on this? If it is OK with you I will switch to the Py3 syntax.

Unrelated to this PR, I will also quickly refactor the subcommands. This will be a fairly big change and might trigger some discussion. How do hold discussions? Do you have a mailing-list? A IRC channel? Or should I simply add an issue & PR in "WIP" status and use GitHub comments for discussion?

@exhuma exhuma mentioned this pull request May 1, 2019
The "stderr" stream was redirected to stdout which made the test not
representative of the intended use-case and also caused issues on travis
@earonesty
Copy link

Looks good to me. Simple addition.

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.

2 participants