Skip to content

Commit 33ebbeb

Browse files
authored
Merge pull request #105 from chkware/release-maintenance/2025-MAR-07-1
Maintenance Release on 2025/MAR/07 1st release
2 parents d799892 + 205d1f4 commit 33ebbeb

2 files changed

Lines changed: 678 additions & 636 deletions

File tree

docs/setup.md

Lines changed: 100 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2,97 +2,150 @@
22
title: Setup CHKware cli
33
---
44

5-
This section describe the installation process for [*CHKware*](https://github.com/chkware/cli). The currently supported python version is **_Python 3.13.x_**. You need to have this version of python in your OS to continue.
5+
This section describe the installation process for [_CHKware_](https://github.com/chkware/cli). The currently supported python version is **_Python 3.13.x_**. You need to have this version of python in your OS to continue.
66

77
### Install dependencies
88

99
- [**_Python 3.13.x_**](https://www.python.org/downloads/)
1010

11-
### Install *CHKware* cli with `pipx`
11+
### Install _CHKware_ cli with `pipx`
1212

13-
:::info
13+
:::info[about pipx]
1414

1515
`pipx` is a standard PyPI python application manager. `pipx` creates separate virtual environment for given installable package. So, your system have less side effect.
1616

1717
:::
1818

1919
The best way is to setup CHKware with [_pipx_](https://pipx.pypa.io/stable/). Follow the steps:
2020

21-
1. [Setup `pipx`](https://pipx.pypa.io/stable/installation/).
22-
2. Run in console
21+
1. Setup `pipx`. [macOS guide](https://pipx.pypa.io/stable/installation/#on-macos), [linux guide](https://pipx.pypa.io/stable/installation/#on-linux), [windows guide](https://pipx.pypa.io/stable/installation/#on-windows)
22+
2. Then install _CHKware_ with _pipx_.
2323

24-
```shell
25-
pipx install chk
26-
```
24+
```shell
25+
pipx install chk
26+
```
2727

28-
### Install *CHKware* cli with Pip
28+
### Install _CHKware_ cli with Pip
2929

30-
:::info
30+
::::warning[about python version]
31+
32+
**CHKware** require Python **3.13.x** version.
3133

32-
If you have _Python 3.13.x_ installed, then you already have `pip` installed by default.
34+
`pip` gets installed with Python. You should use [updated pip version](https://pip.pypa.io/en/stable/installation/#upgrading-pip).
35+
36+
:::note
37+
38+
`python` command should be automatically setup on install. Based on OS it also can be `py` (windows), `python3` or `python3.13` (macOS / Linux) based on the package manager that was used to install Python.
3339

3440
:::
35-
:::info
41+
42+
:::tip[about virtual environment]
3643

3744
It is **RECOMMENDED** to use a virtual environment when using via `pip`.
3845

3946
For windows users, please follow [**this nice article**](https://realpython.com/python-virtual-environments-a-primer/) to create and use virtual environment.
4047

4148
:::
42-
:::warning
4349

44-
`python` command below assumes it's 3.13.x version. Based on OS it also can be `py`, `python3` or `python3.13` based on the package manager that was used to install.
50+
::::
4551

46-
:::
52+
import Tabs from '@theme/Tabs';
53+
import TabItem from '@theme/TabItem';
54+
55+
<Tabs>
56+
<TabItem value="linux" label="Linux" default>
57+
1. Create python virtual environment.
58+
59+
```shell
60+
python3 -m venv ~/.chkware-venv/
61+
```
62+
63+
2. Activate virtual environment.
64+
65+
```shell
66+
source ~/.chkware-venv/bin/activate
67+
```
68+
</TabItem>
69+
<TabItem value="macos" label="macOS">
70+
1. Create python virtual environment.
71+
72+
```shell
73+
python3 -m venv ~/.chkware-venv/
74+
```
75+
76+
2. Activate virtual environment.
77+
78+
```shell
79+
source ~/.chkware-venv/bin/activate
80+
```
81+
</TabItem>
82+
<TabItem value="windows-cmd" label="Windows (cmd)">
83+
1. Create python virtual environment.
4784

48-
1. Create python virtual environment.
49-
50-
```shell
51-
# On Linux and macOS
52-
python -m venv ~/.chkware_global/
85+
```shell
86+
py -m venv C:\.chkware-venv
87+
```
5388

54-
# On Windows
55-
python -m venv C:\.chkware_global
56-
```
89+
2. Activate virtual environment.
5790

58-
2. Activate virtual environment.
91+
```shell
92+
C:\.chkware-venv\Scripts\activate.bat
93+
```
94+
</TabItem>
95+
<TabItem value="windows-ps" label="Windows (Powershell)">
96+
1. Create python virtual environment.
5997

60-
```shell
61-
# On Linux and macOS
62-
source ~/.chkware_global/bin/activate
98+
```shell
99+
py -m venv C:\.chkware-venv
100+
```
63101

64-
# On Windows, In cmd.exe
65-
C:\.chkware_global\Scripts\activate.bat
102+
2. Activate virtual environment.
66103

67-
# On Windows, In PowerShell
68-
C:\.chkware_global\Scripts\Activate.ps1
69-
```
104+
```shell
105+
C:\.chkware-venv\Scripts\Activate.ps1
106+
```
107+
</TabItem>
108+
</Tabs>
70109

71110
3. Install CHKware cli in the virtual environment.
72111

73-
```shell
74-
pip install -U chk
75-
```
112+
```shell
113+
pip install -U chk
114+
```
115+
116+
> To upgrade to the next released version, run the same command.
117+
118+
### Update _CHKware_ cli
119+
120+
#### pipx
121+
122+
If CHkware was installed with _pipx_ then to upgrade to latest released version.
123+
124+
```shell
125+
pipx upgrade chk
126+
```
127+
128+
#### pip
76129

77-
> To upgrade to the next released version, run the same command.
130+
If CHkware was installed with _pip_ then to upgrade to latest released version.
78131

79-
### Update *CHKware* cli
132+
:::info
80133

81-
- If CHkware was installed with _pipx_ then to upgrade to latest released version.
134+
[Activate the virtual environment](#install-chkware-cli-with-pip) from step 2 before running following command.
82135

83-
```shell
84-
pipx upgrade chk
85-
```
136+
:::
86137

87-
- If CHkware was installed with _pip_ then to upgrade to latest released version follow [Install *CHKware* cli with Pip](#install-chkware-cli-with-pip) step 2 and step 3.
138+
```shell
139+
pip install -U chk
140+
```
88141

89142
---
90143

91-
### Install edge version of *CHKware* cli [Advance users]
144+
### [Advance users] Install edge version of _CHKware_ cli
92145

93146
You can always install a tagged version directly from git
94147

95-
With `pipx`
148+
#### pipx
96149

97150
```shell
98151
# latest dev release
@@ -102,15 +155,14 @@ pipx install git+https://github.com/chkware/cli.git@main
102155
pipx install git+https://github.com/chkware/cli.git@v0.5.0
103156
```
104157

105-
With Pip
158+
#### pip
106159

107-
:::warning
160+
:::info
108161

109-
Make sure you activated virtual environment before doing this.
162+
[Create and activate the virtual environment](#install-chkware-cli-with-pip) before running following command.
110163

111164
:::
112165

113-
114166
```shell
115167
# latest dev release
116168
pip install -U git+https://github.com/chkware/cli.git@main

0 commit comments

Comments
 (0)