From 9b670a88fd7f607971b7ba1ef38d17685d5edf97 Mon Sep 17 00:00:00 2001 From: Vaunty <68826427+Vaunty@users.noreply.github.com> Date: Mon, 20 May 2024 16:56:13 -0400 Subject: [PATCH 1/4] Windows Instruction for PipX --- tutorials/get-to-know-hatch.md | 51 ++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/tutorials/get-to-know-hatch.md b/tutorials/get-to-know-hatch.md index b4ec6bb7..052fcbf1 100644 --- a/tutorials/get-to-know-hatch.md +++ b/tutorials/get-to-know-hatch.md @@ -4,11 +4,58 @@ Our Python packaging tutorials use the tool Hatch. In this tutorial, you will install and get to know Hatch a bit more before starting to use it. ## Install Hatch -To begin, install Hatch from the command line using [pipx](https://pipx.pypa.io/stable/) ```bash -pipx install hatch +pip install hatch ``` +:::{note} +You can optionally install Hatch using pipx from the command line using [pipx](https://pipx.pypa.io/stable/). If you're on Windows you may face issues during installation, if so, read further for instructions on a potential solution. + +Installation Process for Windows Users: +* Step 0: Open Powershell + +Press `Windows Key` and then type `Windows PowerShell` + +* Step 1: Ensure Python is installed within your Powershell Terminal + +Copy and paste the following code, `python --version` + +If Python is not installed, dont be alarmed! +[Download Python Here](https://www.python.org/downloads/) + +* Step 2: Using the "curl" command install Pip + +Copy and Paste the follwing code, +`curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py` + +Then copy and paste the following code, +`python get-pip.py` + +* Step 3: Download Scoop + +Copy and Paste the following code, +`iwr -useb get.scoop.sh | iex` + +If any errors occur copy and paste the following code, +`Set-ExecutionPolicy RemoteSigned -Scope CurrentUser` + +Then re-paste the first +`iwr -useb get.scoop.sh | iex` + +* Step 4: Install Pipx + +Copy and Paste the following code in Powershell, +`scoop install pipx` + +Then, Copy and Paste the following code in Powershell, +`pipx ensurepath` + +* Now, after completion of Step 4, you're prepared to continue to the first portion of the tutorial, +"Get to know hatch", to proceed in installing Hatch successfully! + + + +::: :::{tip} Hatch can also be installed directly using `pip` or `conda`, but we encourage you to use `pipx`. From 9bde23bc5308c42e14636482f2a5b64fce87808e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 00:26:45 +0000 Subject: [PATCH 2/4] =?UTF-8?q?'[pre-commit.ci=20=F0=9F=A4=96]=20Apply=20c?= =?UTF-8?q?ode=20format=20tools=20to=20PR'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tutorials/get-to-know-hatch.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorials/get-to-know-hatch.md b/tutorials/get-to-know-hatch.md index 052fcbf1..cfb00d5e 100644 --- a/tutorials/get-to-know-hatch.md +++ b/tutorials/get-to-know-hatch.md @@ -13,7 +13,7 @@ You can optionally install Hatch using pipx from the command line using [pipx](h Installation Process for Windows Users: * Step 0: Open Powershell - + Press `Windows Key` and then type `Windows PowerShell` * Step 1: Ensure Python is installed within your Powershell Terminal @@ -24,7 +24,7 @@ If Python is not installed, dont be alarmed! [Download Python Here](https://www.python.org/downloads/) * Step 2: Using the "curl" command install Pip - + Copy and Paste the follwing code, `curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py` @@ -32,7 +32,7 @@ Then copy and paste the following code, `python get-pip.py` * Step 3: Download Scoop - + Copy and Paste the following code, `iwr -useb get.scoop.sh | iex` @@ -43,7 +43,7 @@ Then re-paste the first `iwr -useb get.scoop.sh | iex` * Step 4: Install Pipx - + Copy and Paste the following code in Powershell, `scoop install pipx` From 5fabe1be928a2381983582384203c1423745f43d Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Wed, 5 Jun 2024 10:43:48 -0700 Subject: [PATCH 3/4] Fix typo --- tutorials/get-to-know-hatch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/get-to-know-hatch.md b/tutorials/get-to-know-hatch.md index cfb00d5e..61262498 100644 --- a/tutorials/get-to-know-hatch.md +++ b/tutorials/get-to-know-hatch.md @@ -25,7 +25,7 @@ If Python is not installed, dont be alarmed! * Step 2: Using the "curl" command install Pip -Copy and Paste the follwing code, +Copy and Paste the following code, `curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py` Then copy and paste the following code, From da279dd5dedbf469360433a9ba167af91b0eda70 Mon Sep 17 00:00:00 2001 From: Vaunty <68826427+Vaunty@users.noreply.github.com> Date: Tue, 18 Jun 2024 06:08:31 -0400 Subject: [PATCH 4/4] Updated get-to-know-hatch.md replaced bootstrap command with native 'python -m ensurepip' command --- tutorials/get-to-know-hatch.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tutorials/get-to-know-hatch.md b/tutorials/get-to-know-hatch.md index d9e1d022..f7403f14 100644 --- a/tutorials/get-to-know-hatch.md +++ b/tutorials/get-to-know-hatch.md @@ -23,13 +23,10 @@ Copy and paste the following code, `python --version` If Python is not installed, dont be alarmed! [Download Python Here](https://www.python.org/downloads/) -* Step 2: Using the "curl" command install Pip +* Step 2: Install Pip Copy and Paste the following code, -`curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py` - -Then copy and paste the following code, -`python get-pip.py` +`python -m ensurepip` * Step 3: Download Scoop