Skip to content

Commit

Permalink
Bump python >= 3.8 and fix constraints generation (#1442)
Browse files Browse the repository at this point in the history
* Bump python >= 3.8 and fix constraints generation
  • Loading branch information
pankajkoti authored Jan 22, 2024
1 parent 4f02e6a commit 6f34de1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 43 deletions.
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

0 comments on commit 6f34de1

Please sign in to comment.