elaunira-airflow-provider-r2index 0.1.3__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: elaunira-airflow-provider-r2index
3
- Version: 0.1.3
3
+ Version: 0.2.1
4
4
  Summary: Airflow provider for Elaunira R2Index connections
5
5
  Project-URL: Repository, https://github.com/elaunira/elaunira-airflow-provider-r2index
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "elaunira-airflow-provider-r2index"
7
- version = "0.1.3"
7
+ version = "0.2.1"
8
8
  description = "Airflow provider for Elaunira R2Index connections"
9
9
  requires-python = ">=3.12"
10
10
  license = "MIT"
@@ -9,11 +9,11 @@ def get_provider_info():
9
9
  """Return provider metadata for Airflow."""
10
10
  return {
11
11
  "package-name": "elaunira-airflow-provider-r2index",
12
- "name": "Elaunira R2Index",
13
- "description": "Airflow provider for Elaunira R2Index connections",
12
+ "name": "R2Index",
13
+ "description": "Airflow provider for R2Index connections",
14
14
  "connection-types": [
15
15
  {
16
- "connection-type": "elaunira_r2index",
16
+ "connection-type": "r2index",
17
17
  "hook-class-name": "elaunira.airflow.provider.r2index.hooks.r2index.R2IndexHook",
18
18
  }
19
19
  ],
@@ -62,8 +62,8 @@ class R2IndexHook(BaseHook):
62
62
 
63
63
  conn_name_attr = "r2index_conn_id"
64
64
  default_conn_name = "r2index_default"
65
- conn_type = "elaunira_r2index"
66
- hook_name = "Elaunira R2Index"
65
+ conn_type = "r2index"
66
+ hook_name = "R2Index"
67
67
 
68
68
  CONFIG_KEYS = [
69
69
  "r2index_api_url",
@@ -97,13 +97,9 @@ class R2IndexHook(BaseHook):
97
97
  @classmethod
98
98
  def get_connection_form_widgets(cls) -> dict[str, Any]:
99
99
  """Define custom connection form widgets."""
100
- from flask_appbuilder.fieldwidgets import (
101
- BS3PasswordFieldWidget,
102
- BS3TextAreaFieldWidget,
103
- BS3TextFieldWidget,
104
- )
100
+ from flask_appbuilder.fieldwidgets import BS3PasswordFieldWidget, BS3TextFieldWidget
105
101
  from flask_babel import lazy_gettext
106
- from wtforms import PasswordField, StringField, TextAreaField
102
+ from wtforms import PasswordField, StringField
107
103
 
108
104
  return {
109
105
  "vault_conn_id": StringField(
@@ -116,9 +112,9 @@ class R2IndexHook(BaseHook):
116
112
  widget=BS3TextFieldWidget(),
117
113
  description="OpenBao namespace (e.g., elaunira/production)",
118
114
  ),
119
- "vault_secrets": TextAreaField(
115
+ "vault_secrets": StringField(
120
116
  lazy_gettext("Vault Secrets (JSON)"),
121
- widget=BS3TextAreaFieldWidget(),
117
+ widget=BS3TextFieldWidget(),
122
118
  description="JSON mapping of config keys to secret paths",
123
119
  ),
124
120
  "r2_access_key_id": StringField(