Skip to content

Commit

Permalink
Move plyvel to google provider extra (#15812)
Browse files Browse the repository at this point in the history
Plyvel does not build on macOS without levelDB installed in system.  Its better to make it an optional install.
  • Loading branch information
dstandish committed May 19, 2021
1 parent 20f3639 commit 76a80bb
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 12 deletions.
10 changes: 5 additions & 5 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,11 @@ apache.sqoop, apache.webhdfs, asana, async, atlas, aws, azure, cassandra, celery
cncf.kubernetes, crypto, dask, databricks, datadog, deprecated_api, devel, devel_all, devel_ci,
devel_hadoop, dingding, discord, doc, docker, druid, elasticsearch, exasol, facebook, ftp, gcp,
gcp_api, github_enterprise, google, google_auth, grpc, hashicorp, hdfs, hive, http, imap, jdbc,
jenkins, jira, kerberos, kubernetes, ldap, microsoft.azure, microsoft.mssql, microsoft.winrm, mongo,
mssql, mysql, neo4j, odbc, openfaas, opsgenie, oracle, pagerduty, papermill, password, pinot,
plexus, postgres, presto, qds, qubole, rabbitmq, redis, s3, salesforce, samba, segment, sendgrid,
sentry, sftp, singularity, slack, snowflake, spark, sqlite, ssh, statsd, tableau, telegram, trino,
vertica, virtualenv, webhdfs, winrm, yandex, zendesk
jenkins, jira, kerberos, kubernetes, ldap, leveldb, microsoft.azure, microsoft.mssql,
microsoft.winrm, mongo, mssql, mysql, neo4j, odbc, openfaas, opsgenie, oracle, pagerduty, papermill,
password, pinot, plexus, postgres, presto, qds, qubole, rabbitmq, redis, s3, salesforce, samba,
segment, sendgrid, sentry, sftp, singularity, slack, snowflake, spark, sqlite, ssh, statsd, tableau,
telegram, trino, vertica, virtualenv, webhdfs, winrm, yandex, zendesk

.. END EXTRAS HERE
Expand Down
10 changes: 5 additions & 5 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ apache.sqoop, apache.webhdfs, asana, async, atlas, aws, azure, cassandra, celery
cncf.kubernetes, crypto, dask, databricks, datadog, deprecated_api, devel, devel_all, devel_ci,
devel_hadoop, dingding, discord, doc, docker, druid, elasticsearch, exasol, facebook, ftp, gcp,
gcp_api, github_enterprise, google, google_auth, grpc, hashicorp, hdfs, hive, http, imap, jdbc,
jenkins, jira, kerberos, kubernetes, ldap, microsoft.azure, microsoft.mssql, microsoft.winrm, mongo,
mssql, mysql, neo4j, odbc, openfaas, opsgenie, oracle, pagerduty, papermill, password, pinot,
plexus, postgres, presto, qds, qubole, rabbitmq, redis, s3, salesforce, samba, segment, sendgrid,
sentry, sftp, singularity, slack, snowflake, spark, sqlite, ssh, statsd, tableau, telegram, trino,
vertica, virtualenv, webhdfs, winrm, yandex, zendesk
jenkins, jira, kerberos, kubernetes, ldap, leveldb, microsoft.azure, microsoft.mssql,
microsoft.winrm, mongo, mssql, mysql, neo4j, odbc, openfaas, opsgenie, oracle, pagerduty, papermill,
password, pinot, plexus, postgres, presto, qds, qubole, rabbitmq, redis, s3, salesforce, samba,
segment, sendgrid, sentry, sftp, singularity, slack, snowflake, spark, sqlite, ssh, statsd, tableau,
telegram, trino, vertica, virtualenv, webhdfs, winrm, yandex, zendesk

# END EXTRAS HERE

Expand Down
1 change: 1 addition & 0 deletions airflow/providers/google/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -748,3 +748,4 @@ extra-links:

additional-extras:
apache.beam: apache-beam[gcp]
leveldb: plyvel
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
.. _howto/operator:LevelDBOperator:

Google LevelDB Operator
================================

Expand All @@ -27,7 +29,10 @@ an ordered mapping from string keys to string values.
:depth: 1
:local:

.. _howto/operator:LevelDBOperator:
.. note::

To use LevelDB hooks and operators you must requires installation of ``plyvel``. It will be
installed if you specify the extra ``apache-airflow-providers-google[leveldb]``.

Put key
^^^^^^^^^^^^^^^
Expand Down
2 changes: 2 additions & 0 deletions docs/apache-airflow/extra-packages-ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ python dependencies for the provided package.
+---------------------+-----------------------------------------------------+----------------------------------------------------------------------------+
| ldap | ``pip install 'apache-airflow[ldap]'`` | LDAP authentication for users |
+---------------------+-----------------------------------------------------+----------------------------------------------------------------------------+
| leveldb | ``pip install 'apache-airflow[leveldb]'`` | Required for use leveldb extra in google provider |
+---------------------+-----------------------------------------------------+----------------------------------------------------------------------------+
| password | ``pip install 'apache-airflow[password]'`` | Password authentication for users |
+---------------------+-----------------------------------------------------+----------------------------------------------------------------------------+
| rabbitmq | ``pip install 'apache-airflow[rabbitmq]'`` | RabbitMQ support as a Celery backend |
Expand Down
1 change: 1 addition & 0 deletions docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,7 @@ utils
uuid
validator
vals
ve
vendored
venvs
versionable
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ def get_sphinx_theme_version() -> str:
# pandas-gbq 0.15.0 release broke google provider's bigquery import
# _check_google_client_version (airflow/providers/google/cloud/hooks/bigquery.py:49)
'pandas-gbq<0.15.0',
'plyvel',
]
grpc = [
'google-auth>=1.0.0, <2.0.0dev',
Expand Down Expand Up @@ -381,6 +380,7 @@ def get_sphinx_theme_version() -> str:
'ldap3>=2.5.1',
'python-ldap',
]
leveldb = ['plyvel']
mongo = [
'dnspython>=1.13.0,<2.0.0',
'pymongo>=3.6.0',
Expand Down Expand Up @@ -636,6 +636,7 @@ def get_sphinx_theme_version() -> str:
'google_auth': flask_oauth,
'kerberos': kerberos,
'ldap': ldap,
'leveldb': leveldb,
'password': password,
'rabbitmq': rabbitmq,
'sentry': sentry,
Expand Down

0 comments on commit 76a80bb

Please sign in to comment.