From 19af8f6cfb77eb435ce36e57ad78a7c8d68e5b20 Mon Sep 17 00:00:00 2001 From: Daniel Sauble Date: Thu, 20 Jun 2024 12:09:17 -0700 Subject: [PATCH 1/3] Move pip install command to a snippet --- docs/3.0rc/get-started/install.mdx | 10 +++------- docs/3.0rc/get-started/quickstart.mdx | 11 ++++++----- docs/snippets/installation.mdx | 5 +++++ 3 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 docs/snippets/installation.mdx diff --git a/docs/3.0rc/get-started/install.mdx b/docs/3.0rc/get-started/install.mdx index e197c38bafbd..a2314546a803 100644 --- a/docs/3.0rc/get-started/install.mdx +++ b/docs/3.0rc/get-started/install.mdx @@ -2,6 +2,8 @@ title: Install Prefect --- +import Installation from '/snippets/installation.mdx' + Prefect is published as a Python package, which requires Python 3.9 or newer. We recommend installing Prefect in a Python virtual environment. You also need an API server, either @@ -11,13 +13,7 @@ You also need an API server, either ## Install with pip -To install Prefect's 3.0 release candidate, run: - -```bash -pip install -U "prefect==3.0.0rc3" -``` - -This command also installs or upgrades Prefect's Python dependencies. + Learn more about release versions in the [Prefect Release Notes](https://github.com/PrefectHQ/prefect/blob/main/RELEASE-NOTES.md). diff --git a/docs/3.0rc/get-started/quickstart.mdx b/docs/3.0rc/get-started/quickstart.mdx index 79a695462761..7d6814ff2d6c 100644 --- a/docs/3.0rc/get-started/quickstart.mdx +++ b/docs/3.0rc/get-started/quickstart.mdx @@ -3,6 +3,8 @@ title: Quickstart description: Get started with Prefect, the easiest way to orchestrate and observe your data pipelines --- +import Installation from '/snippets/installation.mdx' + Prefect is an orchestration and observability platform that empowers developers to build and scale code quickly. In this quickstart, you will use Prefect to convert the following Python script to a schedulable, observable, resilient, and deployable workflow in minutes: @@ -23,12 +25,11 @@ if __name__ == "__main__": ## Install Prefect -Install the Prefect client. -If needed, see [Install Prefect](/3.0rc/get-started/install/) for other options. + -```bash -pip install -U prefect==3.0.0rc3 -``` + +If needed, see [Install Prefect](/3.0rc/get-started/install/) for other options. + ## Connect to Prefect's API diff --git a/docs/snippets/installation.mdx b/docs/snippets/installation.mdx new file mode 100644 index 000000000000..fc538032f158 --- /dev/null +++ b/docs/snippets/installation.mdx @@ -0,0 +1,5 @@ +Install the Prefect client. + +```bash +pip install -U prefect==3.0.0rc3 +``` \ No newline at end of file From 7ce5a2918ea19b9687fa1e10e2957e1d73ca85e8 Mon Sep 17 00:00:00 2001 From: Daniel Sauble Date: Thu, 20 Jun 2024 12:53:17 -0700 Subject: [PATCH 2/3] Update docs/snippets/installation.mdx Co-authored-by: Jeff Hale --- docs/snippets/installation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/snippets/installation.mdx b/docs/snippets/installation.mdx index fc538032f158..7b6a2f6b5c50 100644 --- a/docs/snippets/installation.mdx +++ b/docs/snippets/installation.mdx @@ -1,5 +1,5 @@ Install the Prefect client. ```bash -pip install -U prefect==3.0.0rc3 +pip install -U prefect --pre ``` \ No newline at end of file From 326705ec6ec4048551d2a11f01f2d7115ca59643 Mon Sep 17 00:00:00 2001 From: Daniel Sauble Date: Thu, 20 Jun 2024 12:53:26 -0700 Subject: [PATCH 3/3] Update docs/snippets/installation.mdx Co-authored-by: Jeff Hale --- docs/snippets/installation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/snippets/installation.mdx b/docs/snippets/installation.mdx index 7b6a2f6b5c50..1f1637604014 100644 --- a/docs/snippets/installation.mdx +++ b/docs/snippets/installation.mdx @@ -1,4 +1,4 @@ -Install the Prefect client. +Install Prefect. ```bash pip install -U prefect --pre