Installation
Prerequisites
- Python 3.11.9
- A dev-tool key (
Dev Tools Key) from the BitWarden vault - pyproject.toml in the root directory of your project
- development.env in the root directory of your project
- requirements.txt in the root directory of your project
Installation
Personal Access Token (PAT)
In order to build and update this repository, you will need a Personal Access Token (PAT):
-
Get the PAT from BitWarden; it is called
Dev Tools Key -
Copy the token and replace "YOUR_TOKEN_HERE" in the command below with your token
-
Run the following command in a command prompt:
mkdir "%USERPROFILE%\stratus" 2>NUL & echo YOUR_TOKEN_HERE > "%USERPROFILE%\stratus\dev_tool_github_pat"
Install the dev_tool
- Download the latest release:
- Navigate to the latest release
- Download
dev_tool_windows_x.x.xx.exeandcli_windows_x.x.xx.exe
- Setup the launcher:
- Rename
dev_tool_windows_x.x.xx.exetodev_tool.exe - Move it to
%USERPROFILE%/stratus/
- Rename
- Setup the CLI:
- Rename
cli_windows_x.x.xx.exetocli.exe - Move it to
%USERPROFILE%/stratus/
- Rename
- Add the
stratusdirectory to the Windows PATH:- Go to the Start Menu, type "environment variables" and select "Edit environment variables for your account"
- Under the "User variables for <Account Name>", find the "Path" variable and select "Edit"
- Click "New" and enter:
%USERPROFILE%\stratus - Press "OK" and close the window
- Close or restart your IDE or text editor
- Open a terminal in the project root, and type "dev_tool.exe" in the terminal to use it
Updating
Update dev_tool.exe (Manually)
- Download the latest release
- Close PyCharm and any running instances of the dev-tool
- Replace the old
dev_tool.exein the%USERPROFILE%\stratusdirectory
Update cli.exe
Automatically
- Open
dev_tool.exe - Navigate to the System tab
- Select the
Update the dev_tooloption
Manually
- Download the latest release
- Close all running instances
- Delete older executables from
%USERPROFILE%/stratus - Rename the new file to
cli.exeand place it in%USERPROFILE%/stratus
Configuration
pyproject.toml
Create a pyproject.toml file in the root directory of your project with appropriate configuration settings for your project. See the documentation for details.
development.env
Create a development.env file in the root directory of your project with the necessary environment variables. An up-to-date list can be found in the BitWarden vault.
Development
To build the tool: