🛠Installation
1. 📥 Download or clone the repository
[!TIP] Skip this step, if you're going to install the package directly from PyPi or GitHub repository.
1.1. Prepare projects directory (if not exists):
# Create projects directory:
mkdir -pv ~/workspaces/projects
# Enter into projects directory:
cd ~/workspaces/projects
1.2. Follow one of the below options [A], [B] or [C]:
OPTION A. Clone the repository:
OPTION B. Clone the repository (for DEVELOPMENT: git + ssh key):
OPTION C. Download source code:
- Download archived zip file from releases.
- Extract it into the projects directory.
2. 📦 Install the package
[!NOTE] Choose one of the following methods to install the package [A ~ F]:
OPTION A. [RECOMMENDED] Install from PyPi:
# Install from staging TestPyPi:
pip install -i https://test.pypi.org/simple -U my-module01
# Or install from production PyPi:
# pip install -U my-module01
OPTION B. Install latest version directly from GitHub repository:
OPTION C. Install from the downloaded source code:
# Install directly from the source code:
pip install .
# Or install with editable mode:
pip install -e .
OPTION D. Install for DEVELOPMENT environment:
OPTION E. Install from pre-built release files:
- Download
.whl
or.tar.gz
file from releases - Install with pip:
# Install from .whl file:
pip install ./my_module01-[VERSION]-py3-none-any.whl
# Or install from .tar.gz file:
pip install ./my_module01-[VERSION].tar.gz
OPTION F. Copy the module into the project directory (for testing):