Skip to content

Latest commit

 

History

History
84 lines (58 loc) · 1.39 KB

INSTALL.md

File metadata and controls

84 lines (58 loc) · 1.39 KB

INSTALL

Clone project

You can git clone this project.

git clone https://github.com/jai-python3/simple-template-toolkit.git
cd simple-template-toolkit

Local pip install

You can optionally establish a Python virtual environment. Then you can run the setup.py script to build to project and then run pip install
to install in your local Python virtual environment.

virtualenv -p python3 venv
source venv/bin/activate
python setup.py sdist
pip install .

Uninstall

You can uninstall like this:

source venv/bin/activate
pip uninstall simple-template-toolkit
make clean

Developers

If you modify the code in this package in your local virtual environment:

pip uninstall simple-template-toolkit
make clean
python setup.py sdist
pip install .

Publish to PYPI

You want can publish the code in this package to the PYPI repository.

Install twine and setuptools

Install twine and setuptools.

pip install twine setuptools

Build the Distribution Package

python setup.py sdist bdist_wheel

Configure your ~/.pypirc:

[pypi]
  username = __token__
  password = pypi-YOUR-TOKEN

Upload Your Package to PyPI

twine upload dist/*

Install from PYPI

Now you can install your package in your Python virtual environment

pip install simple-template-toolkit