Skip to content

Commit 1188d67

Browse files
authored
drop 3.7 support (#15234)
end of lifed a couple weeks ago https://devguide.python.org/versions/ ## How I Tested These Changes bk
1 parent 3299810 commit 1188d67

File tree

78 files changed

+38
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+38
-85
lines changed

.buildkite/dagster-buildkite/dagster_buildkite/python_version.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
class AvailablePythonVersion(str, Enum):
99
# Ordering is important here, because some steps will take the highest/lowest available version.
10-
V3_7 = "3.7"
1110
V3_8 = "3.8"
1211
V3_9 = "3.9"
1312
V3_10 = "3.10"

.buildkite/dagster-buildkite/dagster_buildkite/steps/helm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ def build_helm_steps() -> List[BuildkiteStep]:
1919
os.path.join("helm", "dagster", "schema"),
2020
unsupported_python_versions=[
2121
# run helm schema tests only once, on the latest python version
22-
AvailablePythonVersion.V3_7,
2322
AvailablePythonVersion.V3_8,
2423
AvailablePythonVersion.V3_9,
24+
AvailablePythonVersion.V3_10,
2525
],
2626
name="dagster-helm",
2727
retries=2,

.buildkite/dagster-buildkite/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
description="Tools for buildkite automation",
1010
url="https://github.com/dagster-io/dagster/tree/master/.buildkite/dagster-buildkite",
1111
classifiers=[
12-
"Programming Language :: Python :: 3.7",
1312
"Programming Language :: Python :: 3.8",
1413
"Programming Language :: Python :: 3.9",
1514
"Programming Language :: Python :: 3.10",

docs/content/community/contributing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We love to see our community members get involved! If you are planning to contri
99

1010
## Environment setup
1111

12-
1. Install Python 3.7 or above.
12+
1. Install Python 3.8 or above.
1313

1414
2. Create and activate a virtualenv, using the tool of your choice. On macOS you can install `pyenv` with Homebrew:
1515

docs/content/dagster-cloud/deployment/serverless.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ if __name__ == "__main__":
147147

148148
### Using a different Python version
149149

150-
The default version of Python for Serverless deployments is Python 3.8. Versions 3.7, 3.9, 3.10, and 3.11 are also supported. You can specify the version you want by updating your GitHub workflow or using the `--python-version` command line argument:
150+
The default version of Python for Serverless deployments is Python 3.8. Versions 3.9, 3.10, and 3.11 are also supported. You can specify the version you want by updating your GitHub workflow or using the `--python-version` command line argument:
151151

152152
- **With GitHub**: Change the `python_version` parameter for the `build_deploy_python_executable` job in your `.github/workflows` files. For example:
153153

docs/content/getting-started/hello-dagster.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Run dagster for the first time
77

88
Welcome to Dagster! In this guide, you'll build a simple data pipeline in Dagster that downloads the top 10 HackerNews stories. In three quick steps, you'll have functional code and begin exploring Dagster's user interface.
99

10-
**Note**: Before you dive in, make sure you have [Python 3.7+ installed](https://www.python.org/).
10+
**Note**: Before you dive in, make sure you have [Python 3.8+ installed](https://www.python.org/).
1111

1212
Let's get started!
1313

docs/content/getting-started/releases.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ While technically the 0.y.z phase of Semantic Versioning is "anything goes", we
4444

4545
---
4646

47+
# Python Version Support
48+
49+
Each Dagster release strives to support the currently active versions of python.
50+
51+
When a new version of python is released, Dagster will work to add support once Dagster's own core dependencies have been updated to support it.
52+
53+
When a version of python reaches end of life, Dagster will drop support for it at the next convenient non-patch release.
54+
55+
---
56+
4757
## Following along
4858

4959
The best way to stay on top of what changes are included in each release is through the [changelog](https://github.com/dagster-io/dagster/blob/master/CHANGES.md). We call out breaking changes in “Breaking Changes” sections and deprecations in “Deprecations” sections.

docs/dagit-screenshot/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
description="Utility for taking automated screenshots from dagit",
1717
classifiers=[
1818
"Programming Language :: Python :: 3.6",
19-
"Programming Language :: Python :: 3.7",
2019
"Programming Language :: Python :: 3.8",
2120
"Programming Language :: Python :: 3.9",
2221
"License :: OSI Approved :: Apache Software License",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Dagster supports Python 3.7+.
1+
Dagster supports Python 3.8+.

docs/sphinx/sections/api/apidocs/libraries/dagster-k8s.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ For local dev (e.g., on kind or minikube):
5959
6060
helm install \
6161
--set dagit.image.repository="dagster.io/buildkite-test-image" \
62-
--set dagit.image.tag="py37-latest" \
62+
--set dagit.image.tag="py310-latest" \
6363
--set job_runner.image.repository="dagster.io/buildkite-test-image" \
64-
--set job_runner.image.tag="py37-latest" \
64+
--set job_runner.image.tag="py310-latest" \
6565
--set imagePullPolicy="IfNotPresent" \
6666
dagster \
6767
helm/dagster/
@@ -150,7 +150,7 @@ the repo:
150150
.. code-block:: shell
151151
152152
./python_modules/dagster-test/dagster_test/test_project/build.sh 3.7.6 \
153-
dagster.io.priv/buildkite-test-image:py37-latest
153+
dagster.io.priv/buildkite-test-image:py310-latest
154154
155155
In the above invocation, the Python majmin version should be appropriate for your desired tests.
156156

@@ -160,7 +160,7 @@ feedback from the loading process.
160160
.. code-block:: shell
161161
162162
kind create cluster --name kind-test
163-
kind load docker-image --name kind-test dagster.io/dagster-docker-buildkite:py37-latest
163+
kind load docker-image --name kind-test dagster.io/dagster-docker-buildkite:py310-latest
164164
165165
If you are deploying the Helm chart with an in-cluster Postgres (rather than an external database),
166166
and/or with dagster-celery workers (and a RabbitMQ), you'll also want to have images present for

0 commit comments

Comments
 (0)