-
Notifications
You must be signed in to change notification settings - Fork 645
Fix entry points for 3rd party interfaces #389
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
Fix entry points for 3rd party interfaces #389
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #389 +/- ##
===========================================
+ Coverage 59.34% 59.34% +<.01%
===========================================
Files 55 55
Lines 4243 4248 +5
===========================================
+ Hits 2518 2521 +3
- Misses 1725 1727 +2 |
doc/interfaces.rst
Outdated
@@ -25,15 +25,15 @@ The available interfaces are: | |||
interfaces/virtual | |||
|
|||
Additional interfaces can be added via a plugin interface. An external package | |||
can register a new interface by using the ``python_can.interface`` entry point. | |||
can register a new interface by using the ``can.interface`` entry point in setup.py. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe write: "by using the can.interface
entry point in its setup.py"
@@ -28,4 +28,10 @@ | |||
for interface in iter_entry_points('can.interface') | |||
}) | |||
|
|||
# Old entry point name. May be removed in 3.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, we should print a warning then, urging people to use the newer one.
doc/interfaces.rst
Outdated
@@ -25,15 +25,15 @@ The available interfaces are: | |||
interfaces/virtual | |||
|
|||
Additional interfaces can be added via a plugin interface. An external package | |||
can register a new interface by using the ``python_can.interface`` entry point. | |||
can register a new interface by using the ``can.interface`` entry point in setup.py. | |||
|
|||
The format of the entry point is ``interface_name=module:classname`` where | |||
``classname`` is a :class:`can.BusABC` concrete implementation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe: is a concrete :class:can.BusABC
implementation
Looks good to me! |
Fixes backwards incompatible change introduced in 2.2.0. Updated documentation to new entry point.