Skip to main content

RobotFramework tools provided by QA team

Project description

rbf-otp

RobotFramework tools provided by QA team

Documentation

https://packaging.python.org/en/latest/tutorials/packaging-projects/ 

Configuration .pypirc

File in ~/.pypirc
https://packaging.python.org/en/latest/specifications/pypirc/
https://python-packaging.readthedocs.io/en/latest/dependencies.html

Packaging

Prerequisite (first install)

Configure python virtual env
- python -m venv .venv
Activate pyhton virtual env
- .venv\Scripts\activate
Update pip
- %CD%\.venv\Scripts\python.exe -m pip install --upgrade pip
Install/Update setuptools
- pip install --upgrade setuptools
Intall build package
- pip install --upgrade build
Install twine package
- pip install --upgrade twine

Intall package associated to the tools

Need by biuldOTP.py (repository: https://pypi.org/project/pyotp/)
- pip install pyotp==2.6.0

Save the packages installed

pip freeze > requirements.txt

Prerequisite (clone from git)

pip install -r requirements

Build the package

Change version in files:
    - pyproject.toml
    - setup.cfg
    - setup.py
Remove files or Directory
    - rm -rf dist/*
    - rm -rf src/rbf_otp.*
Environment variable should not set
    - http_proxy
    - https_proxy
    - ftp_proxy
Build the package
    - python -m build
Will create files .tar.gz and .whl in ./dist directory

Upload package

In current terminal define proxy your proxy
    - set proxy=http://[username]:[password]@[proxy machine]:[port]
    - set http_proxy=%proxy%
    - set https_proxy=%proxy%
    - set ftp_proxy=%proxy%

Execute commande
- python -m twine upload --repository pypi dist/*
Or
- twine upload --repository pypi dist/*

pip installation

pip install rbf-otp==0.1.0

pdm installation

pdm add --save-exact rbf-otp==0.1.0

Project configuration

Use library in robot file.

Add the library in robot file
- Library   rbf_otp

Use the library in robot file
- ${GENERATE_KEY} Get Otp ${SECRET}

${SECRET} is extract from the QR Code as follow:
QR Code as URI => otpauth://[URL]?secret=[SECRET]&issuer=[TEXTE]
Extract [SECRET] and use it in statement of your robot file
- ${SECRET} [SECRET]

${GENERATE_KEY} is the variable with the 6 digits code generated.

Update Version

Update files:
- pyproject.toml
- setup.cfg
- setup.py

Documentation

https://towardsdatascience.com/setuptools-python-571e7d5500f2

Setuptools Keywords

For file setup.py
https://setuptools.pypa.io/en/latest/references/keywords.html

File: setup.cfg

Is an ini file containing option defaults for setup.py commands.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rbf_otp-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rbf_otp-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file rbf_otp-0.1.1.tar.gz.

File metadata

  • Download URL: rbf_otp-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for rbf_otp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 94f4e72fda78a00895d0088ee038c35d646c1e3a49af8d73af4b5ec9a4b3bfb4
MD5 fc0533c5c64f720ba84f1b778765459c
BLAKE2b-256 7868316f347391356b494ceecf3d61c3429db43fba78bb0890e91bf69f45f93a

See more details on using hashes here.

File details

Details for the file rbf_otp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rbf_otp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for rbf_otp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37cb1dd079b604598b99e94cc291603289ececf92fe6dca04d4386db47512d75
MD5 84f760f909e021fe7ff985c7f62bffb4
BLAKE2b-256 b03ccf34e0f7ae2c71fdfd094f8a4fa6cfe5df61ca2e46277f7875dfc8daf9ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page