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

Use entry_points for ipa CLI #700

Closed
wants to merge 1 commit into from
Closed

Conversation

tiran
Copy link
Member

@tiran tiran commented Apr 7, 2017

Fix problem with hard-coded shebang in ipa command line tool by using
a proper setuptools entry point for the console script. ipaclient is now
an executable Python package, too.

$ python -m ipaclient ping

is equivalent to

$ ipa ping

Related: https://pagure.io/freeipa/issue/6653
Closes: https://pagure.io/freeipa/issue/6850
Signed-off-by: Christian Heimes cheimes@redhat.com

Fix problem with hard-coded shebang in ipa command line tool by using
a proper setuptools entry point for the console script. ipaclient is now
an executable Python package, too.

```
$ python -m ipaclient ping
```

is equivalent to

```
$ ipa ping
```

Related: https://pagure.io/freeipa/issue/6653
Closes: https://pagure.io/freeipa/issue/6850
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tkrizek
Copy link
Contributor

tkrizek commented Apr 7, 2017

Looks good, tested with both rpm and wheels. Ack if the tests pass.

@martbab
Copy link
Contributor

martbab commented Apr 7, 2017

I wish all of our scripts could be autogenerated from entry points. Long road ahead for that effort. However, this is a good start IMHO.

@tkrizek tkrizek added the ack Pull Request approved, can be merged label Apr 10, 2017
@MartinBasti
Copy link
Contributor

master:

  • bf67974 Use entry_points for ipa CLI

ipa-4-5:

  • 1e1e4e8 Use entry_points for ipa CLI

@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Apr 11, 2017
@tiran tiran deleted the ipa_entry_point branch April 12, 2017 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
4 participants