humanfirst

HumanFirst Package Module


Keywords
python, humanfirst
License
MIT
Install
pip install humanfirst==1.0.5

Documentation

humanfirst-module

Humanfirst module package

Class List

HelloWorld

Virtual Environment

  • Remove any previously created virtual env rm -rf ./venv
  • Create virtualenv & activate python3 -m venv venv
  • if bash shell source venv/bin/activate In case of deactivating use "deactivate"
  • Update PiP python -m pip install --upgrade pip
  • install requirements pip install -r requirements.txt --no-cache

Using pytest to test everything is working fine

Before using pytest command

Build packages

python setup.py sdist bdist_wheel

Test packages before uploading

Packages can be tested using TestPYPI before uploading to PYPI - https://packaging.python.org/en/latest/guides/using-testpypi/

Register in TestPYPI - https://test.pypi.org/account/register/

Enable 2 factor authentication and generate API token using Account settings

Set TestPYPI password using keyring

keyring set system __token__

Then Enter your TestPYPI API token

Publish the package to TestPYPI

twine upload --repository testpypi dist/*

Username: __token__

Password: API token

Using TestPyPI with pip

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ your-package

Upload packages to PYPI

Register in PYPI - https://pypi.org/account/register/

Enable 2 factor authentication and generate API token using Account settings

Set PYPI password using keyring

keyring set system __token__

Then Enter your PYPI API token

Publish the package to PYPI

twine upload dist/*

Username: __token__

Password: API token

To install humanfirst package locally into academy

python -m pip install -e ../humanfirst-module/

To install humanfirst package locally into humanfirst-module

python3 -m pip install -e .

To install humanfirst package locally into humanfirst-module using the dist

pip install dist/humanfirst-<version number>.tar.gz --no-cache