Skip to content

Commit

Permalink
update Python minimum version to 3.8 (#3369)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?
Docs change for PR dbt-labs/dbt-core#7623 /
issue dbt-labs/dbt-core#7082

resolves #3368

## Checklist
- [x] Add versioning components, as described in [Versioning
Docs](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-entire-pages)
- [ ] Add a note to the prerelease version [Migration
Guide](https://github.com/dbt-labs/docs.getdbt.com/tree/current/website/docs/guides/migration/versions)
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
and [About
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
so my content adheres to these guidelines.
- [x] Add a checklist item for anything that needs to happen before this
PR is merged, such as "needs technical review" or "change base branch."

---------

Co-authored-by: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
Co-authored-by: mirnawong1 <89008547+mirnawong1@users.noreply.github.com>
  • Loading branch information
3 people authored May 16, 2023
1 parent 646419c commit 57cbdb1
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ meta:
slack_channel_name: '#db-bigquery'
slack_channel_link: 'https://getdbt.slack.com/archives/C99SNSRTK'
platform_name: 'Big Query'
config_page: 'bigquery-configs'
config_page: '/reference/resource-configs/bigquery-configs'
---

<Snippet src="warehouse-setups-cloud-callout" />
Expand Down
17 changes: 16 additions & 1 deletion website/docs/faqs/Core/install-pip-os-prereqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ sudo yum install redhat-rpm-config gcc libffi-devel \

### MacOS

<VersionBlock firstVersion="1.6">
The MacOS requires Python 3.8 or higher to successfully install and run dbt Core.
</VersionBlock>

<VersionBlock lastVersion="1.5">
The MacOS requires Python 3.7 or higher to successfully install and run dbt Core.
</VersionBlock>

To check the Python version:

Expand All @@ -33,7 +39,7 @@ python --version

```

If you need a compatible version, you can download and install [Python version 3.7 or higher for MacOS](https://www.python.org/downloads/macos).
If you need a compatible version, you can download and install [Python version 3.8 or higher for MacOS](https://www.python.org/downloads/macos).

If your machine runs on an Apple M1 architecture, we recommend that you install dbt via [Rosetta](https://support.apple.com/en-us/HT211861). This is necessary for certain dependencies that are only supported on Intel processors.
### Ubuntu/Debian
Expand All @@ -55,6 +61,15 @@ pip install cryptography~=3.4

Windows requires Python and git to successfully install and run dbt Core.

<VersionBlock firstVersion="1.6">

Install [Git for Windows](https://git-scm.com/downloads) and [Python version 3.8 or higher for Windows](https://www.python.org/downloads/windows/).
</VersionBlock>

<VersionBlock lastVersion="1.5">


Install [Git for Windows](https://git-scm.com/downloads) and [Python version 3.7 or higher for Windows](https://www.python.org/downloads/windows/).
</VersionBlock>

For further questions, please see the [Python compatibility FAQ](/faqs/Core/install-python-compatibility)
12 changes: 9 additions & 3 deletions website/docs/faqs/Core/install-python-compatibility.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
---
title: What version of Python can I use?
description: "Python versions 3.7 and newer can be used with dbt Core"
description: "Python versions 3.8 and newer can be used with dbt Core"
sidebar_label: 'Python version'
id: install-python-compatibility
---

<VersionBlock firstVersion="1.4">
<VersionBlock firstVersion="1.6">

The latest version of `dbt-core` is compatible with Python versions 3.7, 3.8, 3.9, 3.10, and 3.11.
The latest version of `dbt-core` is compatible with Python versions 3.8, 3.9, 3.10 and 3.11.

</VersionBlock>

<VersionBlock firstVersion="1.4" lastVersion="1.5">

The latest version of `dbt-core` is compatible with Python versions 3.7, 3.8, 3.9, 3.10 and 3.11.

</VersionBlock>

Expand Down
4 changes: 2 additions & 2 deletions website/docs/reference/warehouse-setups/glue-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ You will find bellow a least privileged policy to enjoy all features of **`dbt-g

Please to update variables between **`<>`**, here are explanations of these arguments:

|Args |Description |
|Args |Description |
|---|---|
|region|The region where your Glue database is stored |
|AWS Account|The AWS account where you run your pipeline|
Expand Down Expand Up @@ -189,7 +189,7 @@ Please to update variables between **`<>`**, here are explanations of these argu

### Configuration of the local environment

Because **`dbt`** and **`dbt-glue`** adapter are compatible with Python versions 3.7, 3.8, and 3.9, check the version of Python:
Because **`dbt`** and **`dbt-glue`** adapter are compatible with Python versions 3.8, and 3.9, check the version of Python:

```bash
$ python3 --version
Expand Down

0 comments on commit 57cbdb1

Please sign in to comment.