potiuk commented on code in PR #36537:
URL: https://github.com/apache/airflow/pull/36537#discussion_r1443781639
##########
docs/apache-airflow-providers/howto/create-custom-providers.rst:
##########
@@ -211,16 +211,15 @@ You need to do the following to turn an existing Python
package into a provider
.. exampleinclude:: /../../airflow/provider_info.schema.json
:language: json
-Example ``setup.cfg``:
+Example ``pyproject.toml``:
-.. code-block:: cfg
+.. code-block:: toml
- [options.entry_points]
- # the function get_provider_info is defined in myproviderpackage.somemodule
- apache_airflow_provider=
- provider_info=myproviderpackage.somemodule:get_provider_info
+ [project.entry-points."apache_airflow_provider"]
+ provider_info =
"airflow.providers.myproviderpackage.get_provider_info:get_provider_info"
Review Comment:
No problem. Updated it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]