apache-airflow-providers-postgres 5.9.0rc1__tar.gz → 5.10.0__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.1
2
2
  Name: apache-airflow-providers-postgres
3
- Version: 5.9.0rc1
3
+ Version: 5.10.0
4
4
  Summary: Provider package apache-airflow-providers-postgres for Apache Airflow
5
5
  Keywords: airflow-provider,postgres,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -20,15 +20,15 @@ Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
22
22
  Classifier: Topic :: System :: Monitoring
23
- Requires-Dist: apache-airflow-providers-common-sql>=1.3.1.dev0
24
- Requires-Dist: apache-airflow>=2.6.0.dev0
23
+ Requires-Dist: apache-airflow-providers-common-sql>=1.3.1
24
+ Requires-Dist: apache-airflow>=2.6.0
25
25
  Requires-Dist: psycopg2-binary>=2.8.0
26
26
  Requires-Dist: apache-airflow-providers-amazon>=2.6.0 ; extra == "amazon"
27
27
  Requires-Dist: apache-airflow-providers-common-sql ; extra == "common.sql"
28
28
  Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
29
29
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
30
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.9.0/changelog.html
31
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.9.0
30
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.10.0/changelog.html
31
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.10.0
32
32
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
33
33
  Project-URL: Source Code, https://github.com/apache/airflow
34
34
  Project-URL: Twitter, https://twitter.com/ApacheAirflow
@@ -81,7 +81,7 @@ Provides-Extra: openlineage
81
81
 
82
82
  Package ``apache-airflow-providers-postgres``
83
83
 
84
- Release: ``5.9.0.rc1``
84
+ Release: ``5.10.0``
85
85
 
86
86
 
87
87
  `PostgreSQL <https://www.postgresql.org/>`__
@@ -94,7 +94,7 @@ This is a provider package for ``postgres`` provider. All classes for this provi
94
94
  are in ``airflow.providers.postgres`` python package.
95
95
 
96
96
  You can find package information and changelog for the provider
97
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.9.0/>`_.
97
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.10.0/>`_.
98
98
 
99
99
  Installation
100
100
  ------------
@@ -138,4 +138,4 @@ Dependent package
138
138
  ============================================================================================================== ===============
139
139
 
140
140
  The changelog for the provider package can be found in the
141
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.9.0/changelog.html>`_.
141
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.10.0/changelog.html>`_.
@@ -42,7 +42,7 @@
42
42
 
43
43
  Package ``apache-airflow-providers-postgres``
44
44
 
45
- Release: ``5.9.0.rc1``
45
+ Release: ``5.10.0``
46
46
 
47
47
 
48
48
  `PostgreSQL <https://www.postgresql.org/>`__
@@ -55,7 +55,7 @@ This is a provider package for ``postgres`` provider. All classes for this provi
55
55
  are in ``airflow.providers.postgres`` python package.
56
56
 
57
57
  You can find package information and changelog for the provider
58
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.9.0/>`_.
58
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.10.0/>`_.
59
59
 
60
60
  Installation
61
61
  ------------
@@ -99,4 +99,4 @@ Dependent package
99
99
  ============================================================================================================== ===============
100
100
 
101
101
  The changelog for the provider package can be found in the
102
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.9.0/changelog.html>`_.
102
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.10.0/changelog.html>`_.
@@ -27,7 +27,7 @@ import packaging.version
27
27
 
28
28
  __all__ = ["__version__"]
29
29
 
30
- __version__ = "5.9.0"
30
+ __version__ = "5.10.0"
31
31
 
32
32
  try:
33
33
  from airflow import __version__ as airflow_version
@@ -28,8 +28,9 @@ def get_provider_info():
28
28
  "name": "PostgreSQL",
29
29
  "description": "`PostgreSQL <https://www.postgresql.org/>`__\n",
30
30
  "suspended": False,
31
- "source-date-epoch": 1701983409,
31
+ "source-date-epoch": 1703288162,
32
32
  "versions": [
33
+ "5.10.0",
33
34
  "5.9.0",
34
35
  "5.8.0",
35
36
  "5.7.1",
@@ -275,9 +275,8 @@ class PostgresHook(DbApiHook):
275
275
  pk_columns = [row[0] for row in self.get_records(sql, (schema, table))]
276
276
  return pk_columns or None
277
277
 
278
- @classmethod
279
278
  def _generate_insert_sql(
280
- cls, table: str, values: tuple[str, ...], target_fields: Iterable[str], replace: bool, **kwargs
279
+ self, table: str, values: tuple[str, ...], target_fields: Iterable[str], replace: bool, **kwargs
281
280
  ) -> str:
282
281
  """Generate the INSERT SQL statement.
283
282
 
@@ -292,7 +291,7 @@ class PostgresHook(DbApiHook):
292
291
  :return: The generated INSERT or REPLACE SQL statement
293
292
  """
294
293
  placeholders = [
295
- cls.placeholder,
294
+ self.placeholder,
296
295
  ] * len(values)
297
296
  replace_index = kwargs.get("replace_index")
298
297
 
@@ -366,8 +365,8 @@ class PostgresHook(DbApiHook):
366
365
  """Returns current schema. This is usually changed with ``SEARCH_PATH`` parameter."""
367
366
  return self.get_first("SELECT CURRENT_SCHEMA;")[0]
368
367
 
369
- @staticmethod
370
- def get_ui_field_behaviour() -> dict[str, Any]:
368
+ @classmethod
369
+ def get_ui_field_behaviour(cls) -> dict[str, Any]:
371
370
  return {
372
371
  "hidden_fields": [],
373
372
  "relabeling": {
@@ -28,7 +28,7 @@ build-backend = "flit_core.buildapi"
28
28
 
29
29
  [project]
30
30
  name = "apache-airflow-providers-postgres"
31
- version = "5.9.0.rc1"
31
+ version = "5.10.0"
32
32
  description = "Provider package apache-airflow-providers-postgres for Apache Airflow"
33
33
  readme = "README.rst"
34
34
  authors = [
@@ -55,14 +55,14 @@ classifiers = [
55
55
  ]
56
56
  requires-python = "~=3.8"
57
57
  dependencies = [
58
- "apache-airflow-providers-common-sql>=1.3.1.dev0",
59
- "apache-airflow>=2.6.0.dev0",
58
+ "apache-airflow-providers-common-sql>=1.3.1",
59
+ "apache-airflow>=2.6.0",
60
60
  "psycopg2-binary>=2.8.0",
61
61
  ]
62
62
 
63
63
  [project.urls]
64
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.9.0"
65
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.9.0/changelog.html"
64
+ "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.10.0"
65
+ "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.10.0/changelog.html"
66
66
  "Bug Tracker" = "https://github.com/apache/airflow/issues"
67
67
  "Source Code" = "https://github.com/apache/airflow"
68
68
  "Slack Chat" = "https://s.apache.org/airflow-slack"