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.
Fix few issues with constraints generation broken by moving providers (…
…apache#46139) As part of apache#46045 we are moving all providers to the new structure, each with it's own pyproject.toml. However we noticed that constraint generation is somewhat broken during the move: * providers moved to the new structure disappeared from pypi constraints * http provider in SOME PRs started to appear in "source constraints" Both should not happen: * pypi constraints should contain all providers (latest versions in PyPI) * source providers should contain no providers - only their dependencies There are two reasons for those two issues, and this PR fixes both: 1) The PyPI providers were removed because `uv pip install .` without editable flag is currently - pretty unexpectedly - installing local workspaced providers rather than install them from PyPI and there are no controls to disable it. Workaround for that is that during constraint generation we remove temporarily all providers from workspace definition in the pyproject.toml - this way providers are installed from PyPI. Feature request to handle it has been raised in the astral-sh/uv#10991 2) The http provider was added to the constraint in PRs where the http provider is a required dependency (for example in discord provider). Since the http provider is not yet migrated, discord installation in workspace will pull it from PyPI rather than from the local workspace. This has been fixed by simply migrating the http provider to the new structure,
- Loading branch information
Showing
46 changed files
with
605 additions
and
116 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
This file was deleted.
Oops, something went wrong.
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,65 @@ | ||
|
||
.. Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you 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 | ||
.. http://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. | ||
.. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN! | ||
.. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE | ||
`PROVIDER_README_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY | ||
Package ``apache-airflow-providers-http`` | ||
|
||
Release: ``5.0.0`` | ||
|
||
|
||
`Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__ | ||
|
||
|
||
Provider package | ||
---------------- | ||
|
||
This is a provider package for ``http`` provider. All classes for this provider package | ||
are in ``airflow.providers.http`` python package. | ||
|
||
You can find package information and changelog for the provider | ||
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.0.0/>`_. | ||
|
||
Installation | ||
------------ | ||
|
||
You can install this package on top of an existing Airflow 2 installation (see ``Requirements`` below | ||
for the minimum Airflow version supported) via | ||
``pip install apache-airflow-providers-http`` | ||
|
||
The package supports the following python versions: 3.9,3.10,3.11,3.12 | ||
|
||
Requirements | ||
------------ | ||
|
||
===================== ==================== | ||
PIP package Version required | ||
===================== ==================== | ||
``apache-airflow`` ``>=2.9.0`` | ||
``requests`` ``>=2.27.0,<3`` | ||
``requests-toolbelt`` ``>=0.4.0`` | ||
``aiohttp`` ``!=3.11.0,>=3.9.2`` | ||
``asgiref`` ``>=2.3.0`` | ||
===================== ==================== | ||
|
||
The changelog for the provider package can be found in the | ||
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.0.0/changelog.html>`_. |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
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
File renamed without changes.
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,84 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you 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 | ||
# | ||
# http://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. | ||
|
||
# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN! | ||
|
||
# IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE | ||
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY | ||
[build-system] | ||
requires = ["flit_core==3.10.1"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[project] | ||
name = "apache-airflow-providers-http" | ||
version = "5.0.0" | ||
description = "Provider package apache-airflow-providers-http for Apache Airflow" | ||
readme = "README.rst" | ||
authors = [ | ||
{name="Apache Software Foundation", email="[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name="Apache Software Foundation", email="[email protected]"}, | ||
] | ||
keywords = [ "airflow-provider", "http", "airflow", "integration" ] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: System Administrators", | ||
"Framework :: Apache Airflow", | ||
"Framework :: Apache Airflow :: Provider", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: System :: Monitoring", | ||
] | ||
requires-python = "~=3.9" | ||
|
||
# The dependencies should be modified in place in the generated file | ||
# Any change in the dependencies is preserved when the file is regenerated | ||
dependencies = [ | ||
"apache-airflow>=2.9.0", | ||
# The 2.26.0 release of requests got rid of the chardet LGPL mandatory dependency, allowing us to | ||
# release it as a requirement for airflow | ||
"requests>=2.27.0,<3", | ||
"requests-toolbelt>=0.4.0", | ||
# aiohttp 3.11.0 had incompatible change: https://github.com/aio-libs/aiohttp/issues/9866 | ||
"aiohttp>=3.9.2,!=3.11.0", | ||
"asgiref>=2.3.0", | ||
] | ||
|
||
[project.urls] | ||
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-http/5.0.0" | ||
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-http/5.0.0/changelog.html" | ||
"Bug Tracker" = "https://github.com/apache/airflow/issues" | ||
"Source Code" = "https://github.com/apache/airflow" | ||
"Slack Chat" = "https://s.apache.org/airflow-slack" | ||
"Twitter" = "https://x.com/ApacheAirflow" | ||
"YouTube" = "https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/" | ||
|
||
[project.entry-points."apache_airflow_provider"] | ||
provider_info = "airflow.providers.http.get_provider_info:get_provider_info" | ||
|
||
[tool.flit.module] | ||
name = "airflow.providers.http" | ||
|
||
[tool.pytest.ini_options] | ||
ignore = "tests/system/" |
Oops, something went wrong.