apache-airflow-providers-postgres 5.4.0rc1__tar.gz → 5.5.0rc1__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.
Files changed (22) hide show
  1. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/MANIFEST.in +1 -2
  2. {apache-airflow-providers-postgres-5.4.0rc1/apache_airflow_providers_postgres.egg-info → apache-airflow-providers-postgres-5.5.0rc1}/PKG-INFO +29 -21
  3. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/README.rst +26 -15
  4. {apache-airflow-providers-postgres-5.4.0rc1/airflow/providers/postgres/operators → apache-airflow-providers-postgres-5.5.0rc1/airflow/providers/postgres}/__init__.py +21 -0
  5. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/airflow/providers/postgres/get_provider_info.py +3 -1
  6. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/airflow/providers/postgres/hooks/postgres.py +4 -3
  7. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/airflow/providers/postgres/operators/postgres.py +2 -1
  8. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1/apache_airflow_providers_postgres.egg-info}/PKG-INFO +29 -21
  9. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/apache_airflow_providers_postgres.egg-info/entry_points.txt +0 -1
  10. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/apache_airflow_providers_postgres.egg-info/requires.txt +1 -1
  11. apache-airflow-providers-postgres-5.5.0rc1/pyproject.toml +164 -0
  12. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/setup.cfg +2 -2
  13. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/setup.py +7 -2
  14. apache-airflow-providers-postgres-5.4.0rc1/pyproject.toml +0 -40
  15. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/LICENSE +0 -0
  16. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/NOTICE +0 -0
  17. {apache-airflow-providers-postgres-5.4.0rc1/airflow/providers/postgres → apache-airflow-providers-postgres-5.5.0rc1/airflow/providers/postgres/hooks}/__init__.py +0 -0
  18. {apache-airflow-providers-postgres-5.4.0rc1/airflow/providers/postgres/hooks → apache-airflow-providers-postgres-5.5.0rc1/airflow/providers/postgres/operators}/__init__.py +0 -0
  19. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/apache_airflow_providers_postgres.egg-info/SOURCES.txt +0 -0
  20. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/apache_airflow_providers_postgres.egg-info/dependency_links.txt +0 -0
  21. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/apache_airflow_providers_postgres.egg-info/not-zip-safe +0 -0
  22. {apache-airflow-providers-postgres-5.4.0rc1 → apache-airflow-providers-postgres-5.5.0rc1}/apache_airflow_providers_postgres.egg-info/top_level.txt +0 -0
@@ -27,6 +27,5 @@
27
27
 
28
28
  include NOTICE
29
29
  include LICENSE
30
- include CHANGELOG.txt
31
- include README.md
30
+ include CHANGELOG.rst
32
31
  global-exclude __pycache__ *.pyc
@@ -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
@@ -55,7 +54,7 @@ License-File: NOTICE
55
54
 
56
55
  Package ``apache-airflow-providers-postgres``
57
56
 
58
- Release: ``5.4.0rc1``
57
+ Release: ``5.5.0rc1``
59
58
 
60
59
 
61
60
  `PostgreSQL <https://www.postgresql.org/>`__
@@ -68,7 +67,7 @@ This is a provider package for ``postgres`` provider. All classes for this provi
68
67
  are in ``airflow.providers.postgres`` python package.
69
68
 
70
69
  You can find package information and changelog for the provider
71
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.4.0/>`_.
70
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.5.0/>`_.
72
71
 
73
72
 
74
73
  Installation
@@ -86,7 +85,7 @@ Requirements
86
85
  ======================================= ==================
87
86
  PIP package Version required
88
87
  ======================================= ==================
89
- ``apache-airflow`` ``>=2.3.0``
88
+ ``apache-airflow`` ``>=2.4.0``
90
89
  ``apache-airflow-providers-common-sql`` ``>=1.3.1``
91
90
  ``psycopg2-binary`` ``>=2.8.0``
92
91
  ======================================= ==================
@@ -137,24 +136,33 @@ Dependent package
137
136
  Changelog
138
137
  ---------
139
138
 
140
- 5.4.0
139
+ 5.5.0
141
140
  .....
142
141
 
143
- Breaking changes
144
- ~~~~~~~~~~~~~~~~
142
+ .. note::
143
+ This release of provider is only available for Airflow 2.4+ as explained in the
144
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
145
145
 
146
+ Misc
147
+ ~~~~
146
148
 
147
- Features
148
- ~~~~~~~~
149
+ * ``Bump minimum Airflow version in providers (#30917)``
149
150
 
151
+ .. Below changes are excluded from the changelog. Move them to
152
+ appropriate section above if needed. Do not delete the lines(!):
153
+ * ``Add full automation for min Airflow version for providers (#30994)``
154
+ * ``Add mechanism to suspend providers (#30422)``
155
+ * ``Use 'AirflowProviderDeprecationWarning' in providers (#30975)``
150
156
 
151
- Bug Fixes
152
- ~~~~~~~~~
157
+ 5.4.0
158
+ .....
153
159
 
160
+ Features
161
+ ~~~~~~~~
162
+ * ``Bring back psycopg2-binary as dependency instead of psycopg (#28316)``
154
163
 
155
164
  .. Below changes are excluded from the changelog. Move them to
156
165
  appropriate section above if needed. Do not delete the lines(!):
157
- * ``Bring back psycopg2-binary as dependency instead of psycopg (#28316)``
158
166
 
159
167
  5.3.1
160
168
  .....
@@ -171,8 +179,9 @@ Bug Fixes
171
179
  5.3.0
172
180
  .....
173
181
 
174
- This release of provider is only available for Airflow 2.3+ as explained in the
175
- `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/README.md#support-for-providers>`_.
182
+ .. note::
183
+ This release of provider is only available for Airflow 2.3+ as explained in the
184
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
176
185
 
177
186
  Misc
178
187
  ~~~~
@@ -245,8 +254,9 @@ Features
245
254
  Breaking changes
246
255
  ~~~~~~~~~~~~~~~~
247
256
 
248
- * This release of provider is only available for Airflow 2.2+ as explained in the Apache Airflow
249
- providers support policy https://github.com/apache/airflow/blob/main/README.md#support-for-providers
257
+ .. note::
258
+ This release of provider is only available for Airflow 2.2+ as explained in the
259
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
250
260
 
251
261
  .. Below changes are excluded from the changelog. Move them to
252
262
  appropriate section above if needed. Do not delete the lines(!):
@@ -435,5 +445,3 @@ Updated documentation and readme files. Added HowTo guide for Postgres Operator.
435
445
  .....
436
446
 
437
447
  Initial version of the provider.
438
-
439
-
@@ -19,7 +19,7 @@
19
19
 
20
20
  Package ``apache-airflow-providers-postgres``
21
21
 
22
- Release: ``5.4.0rc1``
22
+ Release: ``5.5.0rc1``
23
23
 
24
24
 
25
25
  `PostgreSQL <https://www.postgresql.org/>`__
@@ -32,7 +32,7 @@ This is a provider package for ``postgres`` provider. All classes for this provi
32
32
  are in ``airflow.providers.postgres`` python package.
33
33
 
34
34
  You can find package information and changelog for the provider
35
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.4.0/>`_.
35
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.5.0/>`_.
36
36
 
37
37
 
38
38
  Installation
@@ -50,7 +50,7 @@ Requirements
50
50
  ======================================= ==================
51
51
  PIP package Version required
52
52
  ======================================= ==================
53
- ``apache-airflow`` ``>=2.3.0``
53
+ ``apache-airflow`` ``>=2.4.0``
54
54
  ``apache-airflow-providers-common-sql`` ``>=1.3.1``
55
55
  ``psycopg2-binary`` ``>=2.8.0``
56
56
  ======================================= ==================
@@ -101,24 +101,33 @@ Dependent package
101
101
  Changelog
102
102
  ---------
103
103
 
104
- 5.4.0
104
+ 5.5.0
105
105
  .....
106
106
 
107
- Breaking changes
108
- ~~~~~~~~~~~~~~~~
107
+ .. note::
108
+ This release of provider is only available for Airflow 2.4+ as explained in the
109
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
109
110
 
111
+ Misc
112
+ ~~~~
110
113
 
111
- Features
112
- ~~~~~~~~
114
+ * ``Bump minimum Airflow version in providers (#30917)``
113
115
 
116
+ .. Below changes are excluded from the changelog. Move them to
117
+ appropriate section above if needed. Do not delete the lines(!):
118
+ * ``Add full automation for min Airflow version for providers (#30994)``
119
+ * ``Add mechanism to suspend providers (#30422)``
120
+ * ``Use 'AirflowProviderDeprecationWarning' in providers (#30975)``
114
121
 
115
- Bug Fixes
116
- ~~~~~~~~~
122
+ 5.4.0
123
+ .....
117
124
 
125
+ Features
126
+ ~~~~~~~~
127
+ * ``Bring back psycopg2-binary as dependency instead of psycopg (#28316)``
118
128
 
119
129
  .. Below changes are excluded from the changelog. Move them to
120
130
  appropriate section above if needed. Do not delete the lines(!):
121
- * ``Bring back psycopg2-binary as dependency instead of psycopg (#28316)``
122
131
 
123
132
  5.3.1
124
133
  .....
@@ -135,8 +144,9 @@ Bug Fixes
135
144
  5.3.0
136
145
  .....
137
146
 
138
- This release of provider is only available for Airflow 2.3+ as explained in the
139
- `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/README.md#support-for-providers>`_.
147
+ .. note::
148
+ This release of provider is only available for Airflow 2.3+ 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>`_.
140
150
 
141
151
  Misc
142
152
  ~~~~
@@ -209,8 +219,9 @@ Features
209
219
  Breaking changes
210
220
  ~~~~~~~~~~~~~~~~
211
221
 
212
- * This release of provider is only available for Airflow 2.2+ as explained in the Apache Airflow
213
- providers support policy https://github.com/apache/airflow/blob/main/README.md#support-for-providers
222
+ .. note::
223
+ This release of provider is only available for Airflow 2.2+ as explained in the
224
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
214
225
 
215
226
  .. Below changes are excluded from the changelog. Move them to
216
227
  appropriate section above if needed. Do not delete the lines(!):
@@ -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
@@ -55,7 +54,7 @@ License-File: NOTICE
55
54
 
56
55
  Package ``apache-airflow-providers-postgres``
57
56
 
58
- Release: ``5.4.0rc1``
57
+ Release: ``5.5.0rc1``
59
58
 
60
59
 
61
60
  `PostgreSQL <https://www.postgresql.org/>`__
@@ -68,7 +67,7 @@ This is a provider package for ``postgres`` provider. All classes for this provi
68
67
  are in ``airflow.providers.postgres`` python package.
69
68
 
70
69
  You can find package information and changelog for the provider
71
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.4.0/>`_.
70
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.5.0/>`_.
72
71
 
73
72
 
74
73
  Installation
@@ -86,7 +85,7 @@ Requirements
86
85
  ======================================= ==================
87
86
  PIP package Version required
88
87
  ======================================= ==================
89
- ``apache-airflow`` ``>=2.3.0``
88
+ ``apache-airflow`` ``>=2.4.0``
90
89
  ``apache-airflow-providers-common-sql`` ``>=1.3.1``
91
90
  ``psycopg2-binary`` ``>=2.8.0``
92
91
  ======================================= ==================
@@ -137,24 +136,33 @@ Dependent package
137
136
  Changelog
138
137
  ---------
139
138
 
140
- 5.4.0
139
+ 5.5.0
141
140
  .....
142
141
 
143
- Breaking changes
144
- ~~~~~~~~~~~~~~~~
142
+ .. note::
143
+ This release of provider is only available for Airflow 2.4+ as explained in the
144
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
145
145
 
146
+ Misc
147
+ ~~~~
146
148
 
147
- Features
148
- ~~~~~~~~
149
+ * ``Bump minimum Airflow version in providers (#30917)``
149
150
 
151
+ .. Below changes are excluded from the changelog. Move them to
152
+ appropriate section above if needed. Do not delete the lines(!):
153
+ * ``Add full automation for min Airflow version for providers (#30994)``
154
+ * ``Add mechanism to suspend providers (#30422)``
155
+ * ``Use 'AirflowProviderDeprecationWarning' in providers (#30975)``
150
156
 
151
- Bug Fixes
152
- ~~~~~~~~~
157
+ 5.4.0
158
+ .....
153
159
 
160
+ Features
161
+ ~~~~~~~~
162
+ * ``Bring back psycopg2-binary as dependency instead of psycopg (#28316)``
154
163
 
155
164
  .. Below changes are excluded from the changelog. Move them to
156
165
  appropriate section above if needed. Do not delete the lines(!):
157
- * ``Bring back psycopg2-binary as dependency instead of psycopg (#28316)``
158
166
 
159
167
  5.3.1
160
168
  .....
@@ -171,8 +179,9 @@ Bug Fixes
171
179
  5.3.0
172
180
  .....
173
181
 
174
- This release of provider is only available for Airflow 2.3+ as explained in the
175
- `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/README.md#support-for-providers>`_.
182
+ .. note::
183
+ This release of provider is only available for Airflow 2.3+ as explained in the
184
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
176
185
 
177
186
  Misc
178
187
  ~~~~
@@ -245,8 +254,9 @@ Features
245
254
  Breaking changes
246
255
  ~~~~~~~~~~~~~~~~
247
256
 
248
- * This release of provider is only available for Airflow 2.2+ as explained in the Apache Airflow
249
- providers support policy https://github.com/apache/airflow/blob/main/README.md#support-for-providers
257
+ .. note::
258
+ This release of provider is only available for Airflow 2.2+ as explained in the
259
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
250
260
 
251
261
  .. Below changes are excluded from the changelog. Move them to
252
262
  appropriate section above if needed. Do not delete the lines(!):
@@ -435,5 +445,3 @@ Updated documentation and readme files. Added HowTo guide for Postgres Operator.
435
445
  .....
436
446
 
437
447
  Initial version of the provider.
438
-
439
-
@@ -1,3 +1,2 @@
1
1
  [apache_airflow_provider]
2
2
  provider_info = airflow.providers.postgres.get_provider_info:get_provider_info
3
-
@@ -1,5 +1,5 @@
1
1
  apache-airflow-providers-common-sql>=1.3.1.dev0
2
- apache-airflow>=2.3.0.dev0
2
+ apache-airflow>=2.4.0.dev0
3
3
  psycopg2-binary>=2.8.0
4
4
 
5
5
  [amazon]
@@ -0,0 +1,164 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+ [tool.black]
18
+ line-length = 110
19
+ target-version = ['py37', 'py38', 'py39', 'py310']
20
+ # The build system section is needed in order to workaround the side-effect introduced by recent
21
+ # setup tools version. The recent setuptools version update (64.0.0) broke paths of editable installations
22
+ # and we have to pin it to 63.4.3 version
23
+ # The problem is tracked (and this limitation might be removed if it is solved) in:
24
+ # https://github.com/pypa/setuptools/issues/3548
25
+ [build-system]
26
+ requires = ['setuptools==67.2.0']
27
+ build-backend = "setuptools.build_meta"
28
+
29
+ [tool.ruff]
30
+ typing-modules = ["airflow.typing_compat"]
31
+ line-length = 110
32
+ extend-exclude = [
33
+ ".eggs",
34
+ "airflow/_vendor/*",
35
+ "airflow/providers/google/ads/_vendor/*",
36
+ # The files generated by stubgen aren't 100% valid syntax it turns out, and we don't ship them, so we can
37
+ # ignore them in ruff
38
+ "airflow/providers/common/sql/*/*.pyi"
39
+ ]
40
+
41
+ # TODO: Bump to Python 3.8 when support for Python 3.7 is dropped in Airflow.
42
+ target-version = "py37"
43
+
44
+ extend-select = [
45
+ "I", # Missing required import (auto-fixable)
46
+ "UP", # Pyupgrade
47
+ "RUF100", # Unused noqa (auto-fixable)
48
+
49
+ # implicit single-line string concatenation
50
+ "ISC001",
51
+ # We ignore more pydocstyle than we enable, so be more selective at what we enable
52
+ "D101",
53
+ "D106",
54
+ "D2",
55
+ "D3",
56
+ # "D401", # Not enabled by ruff, but we don't want it
57
+ "D402",
58
+ "D403",
59
+ "D412",
60
+ "D419"
61
+ ]
62
+ extend-ignore = [
63
+ "D203",
64
+ "D205",
65
+ "D212",
66
+ "D213",
67
+ "D214",
68
+ "D215",
69
+ "E731",
70
+ ]
71
+
72
+ [tool.pytest.ini_options]
73
+ # * Disable `flaky` plugin for pytest. This plugin conflicts with `rerunfailures` because provide same marker.
74
+ # * Disable `nose` builtin plugin for pytest. This feature deprecated in 7.2 and will be removed in pytest>=8
75
+ # * And we focus on use native pytest capabilities rather than adopt another frameworks.
76
+ addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose --asyncio-mode=strict"
77
+ norecursedirs = [
78
+ ".eggs",
79
+ "airflow",
80
+ "tests/dags_with_system_exit",
81
+ "tests/test_utils",
82
+ "tests/dags_corrupted",
83
+ "tests/dags",
84
+ "tests/system/providers/google/cloud/dataproc/resources",
85
+ "tests/system/providers/google/cloud/gcs/resources",
86
+ ]
87
+ log_level = "INFO"
88
+ filterwarnings = [
89
+ "error::pytest.PytestCollectionWarning",
90
+ "ignore::DeprecationWarning:flask_appbuilder.filemanager",
91
+ "ignore::DeprecationWarning:flask_appbuilder.widgets",
92
+ # https://github.com/dpgaspar/Flask-AppBuilder/pull/1940
93
+ "ignore::DeprecationWarning:flask_sqlalchemy",
94
+ # https://github.com/dpgaspar/Flask-AppBuilder/pull/1903
95
+ "ignore::DeprecationWarning:apispec.utils",
96
+ ]
97
+ python_files = [
98
+ "*.py",
99
+ ]
100
+ testpaths = [
101
+ "tests",
102
+ ]
103
+
104
+ [tool.ruff.isort]
105
+ known-first-party = ["airflow", "airflow_breeze", "docker_tests", "docs", "kubernetes_tests", "tests"]
106
+ required-imports = ["from __future__ import annotations"]
107
+ combine-as-imports = true
108
+
109
+ # TODO: for now, https://github.com/charliermarsh/ruff/issues/1817
110
+ known-third-party = [
111
+ "asana",
112
+ "atlassian",
113
+ "celery",
114
+ "cloudant",
115
+ "databricks",
116
+ "datadog",
117
+ "docker",
118
+ "elasticsearch",
119
+ "github",
120
+ "google",
121
+ "grpc",
122
+ "jenkins",
123
+ "mysql",
124
+ "neo4j",
125
+ "papermill",
126
+ "redis",
127
+ "sendgrid",
128
+ "snowflake",
129
+ "telegram",
130
+ "trino",
131
+ ]
132
+
133
+ [tool.ruff.per-file-ignores]
134
+ "airflow/models/__init__.py" = ["F401"]
135
+ "airflow/models/sqla_models.py" = ["F401"]
136
+
137
+
138
+ # The test_python.py is needed because adding __future__.annotations breaks runtime checks that are
139
+ # needed for the test to work
140
+ "tests/decorators/test_python.py" = ["I002"]
141
+
142
+ # The Pydantic representations of SqlAlchemy Models are not parsed well with Pydantic
143
+ # when __future__.annotations is used so we need to skip them from upgrading
144
+ "airflow/serialization/pydantic/*.py" = ["I002"]
145
+
146
+ # Ignore pydoc style from these
147
+ "*.pyi" = ["D"]
148
+ "tests/*" = ["D"]
149
+ "scripts/*" = ["D"]
150
+ "dev/*" = ["D"]
151
+ "docs/*" = ["D"]
152
+ "provider_packages/*" = ["D"]
153
+ "docker_tests/*" = ["D"]
154
+ "kubernetes_tests/*" = ["D"]
155
+ "*/example_dags/*" = ["D"]
156
+ "chart/*" = ["D"]
157
+
158
+ # All of the modules which have an extra license header (i.e. that we copy from another project) need to
159
+ # ignore E402 -- module level import not at top level
160
+ "airflow/api/auth/backend/kerberos_auth.py" = ["E402"]
161
+ "airflow/security/kerberos.py" = ["E402"]
162
+ "airflow/security/utils.py" = ["E402"]
163
+ "tests/providers/elasticsearch/log/elasticmock/__init__.py" = ["E402"]
164
+ "tests/providers/elasticsearch/log/elasticmock/utilities/__init__.py" = ["E402"]
@@ -27,7 +27,7 @@ classifiers =
27
27
  Programming Language :: Python :: 3.10
28
28
  Topic :: System :: Monitoring
29
29
  project_urls =
30
- Documentation=https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.4.0/
30
+ Documentation=https://airflow.apache.org/docs/apache-airflow-providers-postgres/5.5.0/
31
31
  Bug Tracker=https://github.com/apache/airflow/issues
32
32
  Source Code=https://github.com/apache/airflow
33
33
  Slack Chat=https://s.apache.org/airflow-slack
@@ -47,7 +47,7 @@ setup_requires =
47
47
  wheel
48
48
  install_requires =
49
49
  apache-airflow-providers-common-sql>=1.3.1.dev0
50
- apache-airflow>=2.3.0.dev0
50
+ apache-airflow>=2.4.0.dev0
51
51
  psycopg2-binary>=2.8.0
52
52
 
53
53
  [options.entry_points]
@@ -26,7 +26,7 @@
26
26
 
27
27
  from setuptools import find_namespace_packages, setup
28
28
 
29
- version = "5.4.0"
29
+ version = "5.5.0"
30
30
 
31
31
 
32
32
  def do_setup():
@@ -38,7 +38,12 @@ def do_setup():
38
38
  "common.sql": ["apache-airflow-providers-common-sql"],
39
39
  },
40
40
  packages=find_namespace_packages(
41
- include=["airflow.providers.postgres", "airflow.providers.postgres.*"]
41
+ include=[
42
+ "airflow.providers.postgres",
43
+ "airflow.providers.postgres.*",
44
+ "airflow.providers.postgres_vendor",
45
+ "airflow.providers.postgres_vendor.*",
46
+ ],
42
47
  ),
43
48
  )
44
49
 
@@ -1,40 +0,0 @@
1
- # Licensed to the Apache Software Foundation (ASF) under one
2
- # or more contributor license agreements. See the NOTICE file
3
- # distributed with this work for additional information
4
- # regarding copyright ownership. The ASF licenses this file
5
- # to you under the Apache License, Version 2.0 (the
6
- # "License"); you may not use this file except in compliance
7
- # with the License. You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing,
12
- # software distributed under the License is distributed on an
13
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- # KIND, either express or implied. See the License for the
15
- # specific language governing permissions and limitations
16
- # under the License.
17
- [tool.black]
18
- line-length = 110
19
- target-version = ['py37', 'py38', 'py39', 'py310']
20
- # The build system section is needed in order to workaround the side-effect introduced by recent
21
- # setup tools version. The recent setuptools version update (64.0.0) broke paths of editable installations
22
- # and we have to pin it to 63.4.3 version
23
- # The problem is tracked (and this limitation might be removed if it is solved) in:
24
- # https://github.com/pypa/setuptools/issues/3548
25
- [build-system]
26
- requires = ['setuptools==63.4.3']
27
- build-backend = "setuptools.build_meta"
28
- [tool.isort]
29
- add_imports = ["from __future__ import annotations"]
30
- append_only = true
31
- line_length = 110
32
- combine_as_imports = true
33
- default_section = "THIRDPARTY"
34
- known_first_party = ["airflow", "airflow_breeze", "docker_tests", "docs", "kubernetes_tests", "tests"]
35
- # The test_python.py is needed because adding __future__.annotations breaks runtime checks that are
36
- # needed for the test to work
37
- skip = ["build", ".tox", "venv", "tests/decorators/test_python.py"]
38
- lines_between_types = 0
39
- skip_glob = ["*.pyi"]
40
- profile = "black"