Skip to main content

RobotFramework tools provided by QA team

Project description

rf-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

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 twine

Intall package associated to the tools

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

Build the package

Change version in files:
- pyproject.toml
- setup.cfg
- setup.py
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]@proxygeadm.etat-ge.ch:3128
set HTTP_PROXY=%PROXY%
set HTTPS_PROXY=%PROXY%

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

pip installation

pip install rf-otp==0.1.11

pdm installation

pdm add --save-exact rf-otp==0.1.11

Project configuration

Use library in robot file.

Add the library in robot file
- Library   rf_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

rf_otp-0.1.12.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

rf_otp-0.1.12-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file rf_otp-0.1.12.tar.gz.

File metadata

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

File hashes

Hashes for rf_otp-0.1.12.tar.gz
Algorithm Hash digest
SHA256 d43fc44d2c5abacd69c95a96a0a76da8b40c0591dc77d6479752a628c1589513
MD5 b1a94a069b90873929f7b43bc67e7c81
BLAKE2b-256 e158cb1ba50b330d352646a5bb1e27988c40c1056e3ff0a23050f4e963ec8009

See more details on using hashes here.

File details

Details for the file rf_otp-0.1.12-py3-none-any.whl.

File metadata

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

File hashes

Hashes for rf_otp-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 877ae40906516f1b92ad437f69bb1ea8fcf0171407cb5e12d2143e568c3e6f41
MD5 1c1baa74eb37b383b1b040d33ab1e43e
BLAKE2b-256 6a42faba5ba87b320edf70452ab2bec659112528899a2b6198c2006016b3c181

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