forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging of the google ads vendored-in code. (apache#30399)
Following google ads disabling v11 of their API, we are vendoring in google adds code. This is the first commit that just vendors in the original code of google-ads v. 20.0.0 It will be followed by a second PR where the code will be modified following the new package. Separating those two commits will help in case we have a need to migrate to another version of the library as then we will just revert this one and apply the second and resolve conflicts.
- Loading branch information
Showing
1,308 changed files
with
196,775 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Vendor package | ||
|
||
## What vendored packages are for | ||
|
||
The `_vendor` package is foreseen for vendoring in packages, that we have to modify ourselves | ||
because authors of the packages do not have time to modify them themselves. This is often temporary | ||
and once the packages implement fixes that we need, and then we remove the packages from | ||
the `_vendor` package. | ||
|
||
All Vendored libraries must follow these rules: | ||
|
||
1. Vendored libraries must be pure Python--no compiling (so that we do not have to release multi-platform airflow packages on PyPI). | ||
2. Source code for the libary is included in this directory. | ||
3. License must be included in this repo and in the [LICENSE](../../LICENSE) file and in the | ||
[licenses](../../licenses) folder. | ||
4. Requirements of the library become requirements of airflow core. | ||
5. Version of the library should be included in the [vendor.md](vendor.md) file. | ||
6. No modifications to the library may be made in the initial commit. | ||
7. Apply the fixes necessary to use the vendored library as separate commits - each package separately, | ||
so that they can be cherry-picked later if we upgrade the vendored package. Changes to airflow code to | ||
use the vendored packages should be applied as separate commits/PRs. | ||
8. The `_vendor` packages should be excluded from any refactorings, static checks and automated fixes. | ||
|
||
## Adding and upgrading a vendored package | ||
|
||
Way to vendor a library or update a version: | ||
|
||
1. Update ``vendor.md`` with the library, version, and SHA256 (`pypi` provides hashes as of recently) | ||
2. Remove all old files and directories of the old version. | ||
3. Replace them with new files (only replace relevant python packages:move LICENSE ) | ||
* move licence files to [licenses](../../licenses) folder | ||
* remove README and any other supporting files (they can be found in PyPI) | ||
* make sure to add requirements from setup.py to airflow's setup.py with appropriate comment stating | ||
why the requirements are added and when they should be removed | ||
4. If you replace previous version, re-apply historical fixes from the "package" folder by | ||
cherry-picking them. | ||
|
Empty file.
19 changes: 19 additions & 0 deletions
19
airflow/providers/google/ads/_vendor/googleads/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2018 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import google.ads.googleads.client | ||
import google.ads.googleads.errors | ||
import google.ads.googleads.util | ||
|
||
VERSION = "20.0.0" |
Oops, something went wrong.