apache-airflow-providers-postgres 5.4.0rc1__py3-none-any.whl → 5.5.0rc1__py3-none-any.whl

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.
@@ -15,3 +15,24 @@
15
15
  # KIND, either express or implied. See the License for the
16
16
  # specific language governing permissions and limitations
17
17
  # under the License.
18
+ #
19
+ # NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE
20
+ # OVERWRITTEN WHEN PREPARING DOCUMENTATION FOR THE PACKAGES.
21
+ #
22
+ # IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE
23
+ # `PROVIDER__INIT__PY_TEMPLATE.py.jinja2` IN the `dev/provider_packages` DIRECTORY
24
+ #
25
+ from __future__ import annotations
26
+
27
+ import packaging.version
28
+
29
+ import airflow
30
+
31
+ __all__ = ["version"]
32
+
33
+ version = "5.5.0"
34
+
35
+ if packaging.version.parse(airflow.version.version) < packaging.version.parse("2.4.0"):
36
+ raise RuntimeError(
37
+ f"The package `apache-airflow-providers-postgres:{version}` requires Apache Airflow 2.4.0+"
38
+ )
@@ -27,7 +27,9 @@ def get_provider_info():
27
27
  "package-name": "apache-airflow-providers-postgres",
28
28
  "name": "PostgreSQL",
29
29
  "description": "`PostgreSQL <https://www.postgresql.org/>`__\n",
30
+ "suspended": False,
30
31
  "versions": [
32
+ "5.5.0",
31
33
  "5.4.0",
32
34
  "5.3.1",
33
35
  "5.3.0",
@@ -50,7 +52,7 @@ def get_provider_info():
50
52
  "1.0.0",
51
53
  ],
52
54
  "dependencies": [
53
- "apache-airflow>=2.3.0",
55
+ "apache-airflow>=2.4.0",
54
56
  "apache-airflow-providers-common-sql>=1.3.1",
55
57
  "psycopg2-binary>=2.8.0",
56
58
  ],
@@ -29,6 +29,7 @@ import psycopg2.extras
29
29
  from psycopg2.extensions import connection
30
30
  from psycopg2.extras import DictCursor, NamedTupleCursor, RealDictCursor
31
31
 
32
+ from airflow.exceptions import AirflowProviderDeprecationWarning
32
33
  from airflow.models.connection import Connection
33
34
  from airflow.providers.common.sql.hooks.sql import DbApiHook
34
35
 
@@ -72,7 +73,7 @@ class PostgresHook(DbApiHook):
72
73
  warnings.warn(
73
74
  'The "schema" arg has been renamed to "database" as it contained the database name.'
74
75
  'Please use "database" to set the database name.',
75
- DeprecationWarning,
76
+ AirflowProviderDeprecationWarning,
76
77
  stacklevel=2,
77
78
  )
78
79
  kwargs["database"] = kwargs["schema"]
@@ -86,7 +87,7 @@ class PostgresHook(DbApiHook):
86
87
  warnings.warn(
87
88
  'The "schema" variable has been renamed to "database" as it contained the database name.'
88
89
  'Please use "database" to get the database name.',
89
- DeprecationWarning,
90
+ AirflowProviderDeprecationWarning,
90
91
  stacklevel=2,
91
92
  )
92
93
  return self.database
@@ -96,7 +97,7 @@ class PostgresHook(DbApiHook):
96
97
  warnings.warn(
97
98
  'The "schema" variable has been renamed to "database" as it contained the database name.'
98
99
  'Please use "database" to set the database name.',
99
- DeprecationWarning,
100
+ AirflowProviderDeprecationWarning,
100
101
  stacklevel=2,
101
102
  )
102
103
  self.database = value
@@ -22,6 +22,7 @@ from typing import Mapping, Sequence
22
22
 
23
23
  from psycopg2.sql import SQL, Identifier
24
24
 
25
+ from airflow.exceptions import AirflowProviderDeprecationWarning
25
26
  from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator
26
27
 
27
28
 
@@ -86,6 +87,6 @@ class PostgresOperator(SQLExecuteQueryOperator):
86
87
  """This class is deprecated.
87
88
  Please use `airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator`.
88
89
  Also, you can provide `hook_params={'schema': <database>}`.""",
89
- DeprecationWarning,
90
+ AirflowProviderDeprecationWarning,
90
91
  stacklevel=2,
91
92
  )
@@ -1,19 +1,18 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-postgres
3
- Version: 5.4.0rc1
3
+ Version: 5.5.0rc1
4
4
  Summary: Provider for Apache Airflow. Implements apache-airflow-providers-postgres package
5
5
  Home-page: https://airflow.apache.org/
6
+ Download-URL: https://archive.apache.org/dist/airflow/providers
6
7
  Author: Apache Software Foundation
7
8
  Author-email: dev@airflow.apache.org
8
9
  License: Apache License 2.0
9
- Download-URL: https://archive.apache.org/dist/airflow/providers
10
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.4.0/
10
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.5.0/
11
11
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
12
12
  Project-URL: Source Code, https://github.com/apache/airflow
13
13
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
14
14
  Project-URL: Twitter, https://twitter.com/ApacheAirflow
15
15
  Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
16
- Platform: UNKNOWN
17
16
  Classifier: Development Status :: 5 - Production/Stable
18
17
  Classifier: Environment :: Console
19
18
  Classifier: Environment :: Web Environment
@@ -32,7 +31,7 @@ Description-Content-Type: text/x-rst
32
31
  License-File: LICENSE
33
32
  License-File: NOTICE
34
33
  Requires-Dist: apache-airflow-providers-common-sql (>=1.3.1.dev0)
35
- Requires-Dist: apache-airflow (>=2.3.0.dev0)
34
+ Requires-Dist: apache-airflow (>=2.4.0.dev0)
36
35
  Requires-Dist: psycopg2-binary (>=2.8.0)
37
36
  Provides-Extra: amazon
38
37
  Requires-Dist: apache-airflow-providers-amazon (>=2.6.0) ; extra == 'amazon'
@@ -60,7 +59,7 @@ Requires-Dist: apache-airflow-providers-common-sql ; extra == 'common.sql'
60
59
 
61
60
  Package ``apache-airflow-providers-postgres``
62
61
 
63
- Release: ``5.4.0rc1``
62
+ Release: ``5.5.0rc1``
64
63
 
65
64
 
66
65
  `PostgreSQL <https://www.postgresql.org/>`__
@@ -73,7 +72,7 @@ This is a provider package for ``postgres`` provider. All classes for this provi
73
72
  are in ``airflow.providers.postgres`` python package.
74
73
 
75
74
  You can find package information and changelog for the provider
76
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.4.0/>`_.
75
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.5.0/>`_.
77
76
 
78
77
 
79
78
  Installation
@@ -91,7 +90,7 @@ Requirements
91
90
  ======================================= ==================
92
91
  PIP package Version required
93
92
  ======================================= ==================
94
- ``apache-airflow`` ``>=2.3.0``
93
+ ``apache-airflow`` ``>=2.4.0``
95
94
  ``apache-airflow-providers-common-sql`` ``>=1.3.1``
96
95
  ``psycopg2-binary`` ``>=2.8.0``
97
96
  ======================================= ==================
@@ -142,24 +141,33 @@ Dependent package
142
141
  Changelog
143
142
  ---------
144
143
 
145
- 5.4.0
144
+ 5.5.0
146
145
  .....
147
146
 
148
- Breaking changes
149
- ~~~~~~~~~~~~~~~~
147
+ .. note::
148
+ This release of provider is only available for Airflow 2.4+ as explained in the
149
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
150
150
 
151
+ Misc
152
+ ~~~~
151
153
 
152
- Features
153
- ~~~~~~~~
154
+ * ``Bump minimum Airflow version in providers (#30917)``
154
155
 
156
+ .. Below changes are excluded from the changelog. Move them to
157
+ appropriate section above if needed. Do not delete the lines(!):
158
+ * ``Add full automation for min Airflow version for providers (#30994)``
159
+ * ``Add mechanism to suspend providers (#30422)``
160
+ * ``Use 'AirflowProviderDeprecationWarning' in providers (#30975)``
155
161
 
156
- Bug Fixes
157
- ~~~~~~~~~
162
+ 5.4.0
163
+ .....
158
164
 
165
+ Features
166
+ ~~~~~~~~
167
+ * ``Bring back psycopg2-binary as dependency instead of psycopg (#28316)``
159
168
 
160
169
  .. Below changes are excluded from the changelog. Move them to
161
170
  appropriate section above if needed. Do not delete the lines(!):
162
- * ``Bring back psycopg2-binary as dependency instead of psycopg (#28316)``
163
171
 
164
172
  5.3.1
165
173
  .....
@@ -176,8 +184,9 @@ Bug Fixes
176
184
  5.3.0
177
185
  .....
178
186
 
179
- This release of provider is only available for Airflow 2.3+ as explained in the
180
- `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/README.md#support-for-providers>`_.
187
+ .. note::
188
+ This release of provider is only available for Airflow 2.3+ as explained in the
189
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
181
190
 
182
191
  Misc
183
192
  ~~~~
@@ -250,8 +259,9 @@ Features
250
259
  Breaking changes
251
260
  ~~~~~~~~~~~~~~~~
252
261
 
253
- * This release of provider is only available for Airflow 2.2+ as explained in the Apache Airflow
254
- providers support policy https://github.com/apache/airflow/blob/main/README.md#support-for-providers
262
+ .. note::
263
+ This release of provider is only available for Airflow 2.2+ as explained in the
264
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
255
265
 
256
266
  .. Below changes are excluded from the changelog. Move them to
257
267
  appropriate section above if needed. Do not delete the lines(!):
@@ -440,5 +450,3 @@ Updated documentation and readme files. Added HowTo guide for Postgres Operator.
440
450
  .....
441
451
 
442
452
  Initial version of the provider.
443
-
444
-
@@ -0,0 +1,13 @@
1
+ airflow/providers/postgres/__init__.py,sha256=x9jP5ZwibGIoPraMTAhi8GpBCpjBMuxZBpECx90sYLs,1391
2
+ airflow/providers/postgres/get_provider_info.py,sha256=rDiZ3pcvsGgYBKRJdns4GKKxik551f6gp2I4jnjqNUs,3056
3
+ airflow/providers/postgres/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
4
+ airflow/providers/postgres/hooks/postgres.py,sha256=UCv0gs6_JLtNMvlsT9tPHU_lXo6VYf990KTaljcDkmw,13001
5
+ airflow/providers/postgres/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
6
+ airflow/providers/postgres/operators/postgres.py,sha256=8SNeD1itVTtIgTVdHvw7gH3frU2mqP2RSptoORe00Yg,3734
7
+ apache_airflow_providers_postgres-5.5.0rc1.dist-info/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
8
+ apache_airflow_providers_postgres-5.5.0rc1.dist-info/METADATA,sha256=BJmkECROcw5VzzdNy1aKhP-7QTGiyjUqn7f4ZA_XrvM,15267
9
+ apache_airflow_providers_postgres-5.5.0rc1.dist-info/NOTICE,sha256=m-6s2XynUxVSUIxO4rVablAZCvFq-wmLrqV91DotRBw,240
10
+ apache_airflow_providers_postgres-5.5.0rc1.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
11
+ apache_airflow_providers_postgres-5.5.0rc1.dist-info/entry_points.txt,sha256=boiuBo37TJDstSn7YjGsk80nn8EOyQ_s3sVJmIJ8Sp8,105
12
+ apache_airflow_providers_postgres-5.5.0rc1.dist-info/top_level.txt,sha256=OeMVH5md7fr2QQWpnZoOWWxWO-0WH1IP70lpTVwopPg,8
13
+ apache_airflow_providers_postgres-5.5.0rc1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.38.4)
2
+ Generator: bdist_wheel (0.40.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,3 +1,2 @@
1
1
  [apache_airflow_provider]
2
2
  provider_info = airflow.providers.postgres.get_provider_info:get_provider_info
3
-
@@ -1,13 +0,0 @@
1
- airflow/providers/postgres/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
2
- airflow/providers/postgres/get_provider_info.py,sha256=5QQ7SAMdqW3WP9MojKYN15oTJ_JTtnWOwnJdMEJHMH8,3007
3
- airflow/providers/postgres/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
4
- airflow/providers/postgres/hooks/postgres.py,sha256=LarsaX1fN4ULV0Ep2F9TWIomsfIYiM6gh8m_D5LtkxQ,12891
5
- airflow/providers/postgres/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
6
- airflow/providers/postgres/operators/postgres.py,sha256=zVewva4Qou_S_CrbjceN05rYUrr2NRXikGRvtcEB0T8,3654
7
- apache_airflow_providers_postgres-5.4.0rc1.dist-info/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
8
- apache_airflow_providers_postgres-5.4.0rc1.dist-info/METADATA,sha256=eM_IAfqW1fB8n3UzoIv1WqQ8ZrJfrTGV4B-2El323d4,14535
9
- apache_airflow_providers_postgres-5.4.0rc1.dist-info/NOTICE,sha256=m-6s2XynUxVSUIxO4rVablAZCvFq-wmLrqV91DotRBw,240
10
- apache_airflow_providers_postgres-5.4.0rc1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
11
- apache_airflow_providers_postgres-5.4.0rc1.dist-info/entry_points.txt,sha256=seUkMfwj6mvnb_wXywjMumW09aLSAxDn1Et46_vpatY,106
12
- apache_airflow_providers_postgres-5.4.0rc1.dist-info/top_level.txt,sha256=OeMVH5md7fr2QQWpnZoOWWxWO-0WH1IP70lpTVwopPg,8
13
- apache_airflow_providers_postgres-5.4.0rc1.dist-info/RECORD,,