Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Drew J. Sonne d108d8d2aa [AIRFLOW-3605] Load plugins from entry_points (#4412)
* [AIRFLOW-3605] Add entrypoint plugin docs

This documentation came from https://github.com/apache/incubator-airflow/pull/730 which had already started work on a PR for this functionality.

* [AIRFLOW-3605] Extend plugin loading functionality

Added business logic to import AirflowPlugin classes through entry_points.
This means we don’t have to interact with the file system directly to install plugins, and can manage them via `pip`.
2019-01-10 15:03:59 -08:00
Tao Feng 94b977e8ef [AIRFLOW-3646] Rename plugins_manager.py to test_xx to trigger tests (#4464) 2019-01-09 20:23:03 +00:00
Tao Feng 67572025cc [AIRFLOW-3612] Remove incubation/incubator mention (#4419) 2019-01-05 14:05:25 +00:00
Olivier Morissette 1c76e8a9a5 [AIRFLOW-2744] Allow RBAC to accept plugins for views and links. (#4036)
Airflow Users that wish to create plugins for the new www_rbac UI
can not add plugin views or links. This PR fixes that by letting
a user specify their plugins for www_rbac and maintains backwards
compatibility with the existing plugins system.
2018-10-23 17:21:30 +01:00
Fokko Driesprong 0e8394fd23 [AIRFLOW-3190] Make flake8 compliant (#4035)
Enforce Flake8 over the entire project
2018-10-12 22:22:52 +01:00
Fokko Driesprong 79f8ee1415 [AIRFLOW-2918] Fix Flake8 violations (#3931) 2018-09-21 15:25:54 +01:00
Bolke de Bruin c7a472ed6b [AIRFLOW-2287] Fix incorrect ASF headers
Closes #3219 from bolkedebruin/fix_header
2018-04-14 09:13:23 +02:00
Edward Wells fedc5a092c [AIRFLOW-2147] Plugin manager: added 'sensors' attribute
AirflowPlugin required both BaseOperator and BaseSensorOperator
to be included in its `operators` attribute. Add a `sensors`
attribute and updated import logic so that anything added to
the new attribute can be imported from `airflow.sensors.{plugin_name}`

The integration/`make_module` calls in `airflow.plugins_manager`
for operators is also updated to maintain the ability to import
sensors from `operators` to avoid breaking existing plugins

- Update unit tests and documentation to reflect this
- Added exclusion for flake8 module level import not at top of file

Closes #3075 from arcward/AIRFLOW-2147
2018-03-02 09:29:14 +01:00
Kaxil Naik 1c76e1b63a [AIRFLOW-2115] Fix doc links to PythonHosted
Replaced `http://pythonhosted.org/airflow/` links
to `https://airflow.incubator.apache.org/` in:
- Airflow Web UI
- `default_airflow.cfg` file
- Tutorial
- `CONTRIBUTING.md`

Closes #3050 from kaxil/AIRFLOW-2115
2018-02-16 12:38:54 +01:00
George Leslie-Waksman eb5982d4aa [AIRFLOW-333][AIRFLOW-258] Fix non-module plugin components
* Distinguish between module and non-module plugin
components
* Fix handling of non-module plugin components

  * admin views, flask blueprints, and menu links
need to not be
    wrapped in modules

* Fix improper use of zope.deprecation.deprecated

  * zope.deprecation.deprecated does NOT support
classes as
    first parameter
  * deprecating classes must be handled by calling
the deprecate
    function on the class name

* Added tests for plugin loading
* Updated plugin documentation to match test
plugin
* Updated executors to always load plugins
* More logging

Closes #1738 from gwax/plugin_module_fixes
2016-10-01 23:43:20 -07:00