Skip to content

Fix entry points for 3rd party interfaces#389

Merged
christiansandberg merged 2 commits intohardbyte:developfrom
christiansandberg:plugins-fix
Aug 11, 2018
Merged

Fix entry points for 3rd party interfaces#389
christiansandberg merged 2 commits intohardbyte:developfrom
christiansandberg:plugins-fix

Conversation

@christiansandberg
Copy link
Copy Markdown
Collaborator

Fixes backwards incompatible change introduced in 2.2.0. Updated documentation to new entry point.

@christiansandberg christiansandberg added this to the 2.3 Release milestone Aug 11, 2018
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 11, 2018

Codecov Report

Merging #389 into develop will increase coverage by <.01%.
The diff coverage is 60%.

@@             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

@christiansandberg christiansandberg changed the title Fix entry points for 3rd party modules Fix entry points for 3rd party interfaces Aug 11, 2018

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.
Copy link
Copy Markdown
Collaborator

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"

for interface in iter_entry_points('can.interface')
})

# Old entry point name. May be removed in 3.0.
Copy link
Copy Markdown
Collaborator

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.

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.
Copy link
Copy Markdown
Collaborator

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

@felixdivo
Copy link
Copy Markdown
Collaborator

Looks good to me!

@christiansandberg christiansandberg merged commit 090f380 into hardbyte:develop Aug 11, 2018
@christiansandberg christiansandberg deleted the plugins-fix branch August 11, 2018 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants