Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump python >= 3.8 and fix constraints generation #1442

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 2 additions & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,8 @@ workflows:
name: constraints-<< matrix.python_version >>-<< matrix.airflow_version >>
matrix:
parameters:
python_version: ["3.8", "3.9", "3.10"]
airflow_version: ["2.4.3", "2.5.3", "2.6.3"]
<<: *main_and_release_branches
- generate-constraints-python-3-11:
name: constraints-<< matrix.python_version >>-<< matrix.airflow_version >>
matrix:
parameters:
python_version: ["3.11"]
airflow_version: ["2.6.3", "2.7.0"]
python_version: ["3.8", "3.9", "3.10", "3.11"]
airflow_version: ["2.6.3", "2.7.3", "2.8.1"]
<<: *main_and_release_branches
- build-docs:
<<: *all_branches_and_version_tag
Expand Down Expand Up @@ -247,37 +240,6 @@ jobs:
> constraints-<<parameters.python_version>>-<<parameters.airflow_version>>.txt
- store_artifacts:
path: constraints-<<parameters.python_version>>-<<parameters.airflow_version>>.txt
generate-constraints-python-3-11:
parameters:
python_version:
description: "Python Version"
type: string
airflow_version:
description: "Airflow Version"
type: string
description: Test Python-<<parameters.python_version>>
executor:
name: docker-executor
python_version: "<<parameters.python_version>>"
steps:
- checkout
- run:
name: Install Dependencies for sasl
command: |
sudo apt-get install -y --no-install-recommends build-essential
sudo apt-get update
sudo apt-get install libsasl2-dev
- run:
name: Install Dependencies
command: pip install -U -e .[all,tests] apache-airflow==<<parameters.airflow_version>>
- run:
name: Generate Constraints
command: pip freeze
| sort
| grep -v "@"
> constraints-<<parameters.python_version>>-<<parameters.airflow_version>>.txt
- store_artifacts:
path: constraints-<<parameters.python_version>>-<<parameters.airflow_version>>.txt

build-and-verify:
executor:
Expand Down
4 changes: 1 addition & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ classifiers =
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Expand All @@ -30,7 +29,7 @@ project_urls =
Changelog=https://github.com/astronomer/astronomer-providers/blob/main/CHANGELOG.rst

[options]
python_requires = >=3.7
python_requires = >=3.8
packages = find_namespace:
include_package_data = true
namespace_packages = astronomer,astronomer.providers
Expand All @@ -40,7 +39,6 @@ install_requires =
aiohttp
aiofiles
asgiref
typing_extensions; python_version < "3.8"
markupsafe>=1.1.1
zip_safe = false

Expand Down
Loading