-
I'm trying to update an extension to work with CKAN 2.9. We had paster commands registered in the setup.py entry_points field. I have never worked with entry_points before. Our entry_points looks like this:
So that means the command line in the first entry_points example above can become something like this?
To note: I am using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The syntax is in .ini-style https://setuptools.readthedocs.io/en/latest/pkg_resources.html#creating-and-parsing Click commands implemented with IClick interface do not require entry in entry_points anymore as they are executed through the new ckan command instead of paster which required that you tell paster about them via entry_points. You can just remove whole entry if you want to support only CKAN 2.9. |
Beta Was this translation helpful? Give feedback.
-
Thank you, on all points! That makes sense, and I appreciate the reference to where in setuptools docs this is mentioned. |
Beta Was this translation helpful? Give feedback.
The syntax is in .ini-style https://setuptools.readthedocs.io/en/latest/pkg_resources.html#creating-and-parsing
If data is a string or sequence of lines, it is first split into .ini-style sections (using the split_sections() utility function) and the section names are used as group names.
Click commands implemented with IClick interface do not require entry in entry_points anymore as they are executed through the new ckan command instead of paster which required that you tell paster about them via entry_points.
You can just remove whole entry if you want to support only CKAN 2.9.