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
- 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.0
pdm installation
pdm add --save-exact rf_otp==0.1.0
Project configuration
Use library in robot file.
Add the library in robot file
- Library rf_otp
Use the library in robot file
- ${BUILDED_CODE} 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]
${BUILDED_CODE} is the variable with the 6 digits code.
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.9.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rf_otp-0.1.9.tar.gz.
File metadata
- Download URL: rf_otp-0.1.9.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10adcc158dc13788564a17b1cde9b1eedbb52c8eeb3a185fa6a5523300b55550
|
|
| MD5 |
38643dc5a8ebc2908e7cc94f4bf5c2fa
|
|
| BLAKE2b-256 |
a2bf0873529c4c29841cd72474576a557aafc9b52f1fa7c4126f8958c66e8e28
|
File details
Details for the file rf_otp-0.1.9-py3-none-any.whl.
File metadata
- Download URL: rf_otp-0.1.9-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de7cfda4bc9e4d2b672242700928a31662028226066cc75633daff2efd05dbce
|
|
| MD5 |
5b615b721d7bd78691a824be80185a29
|
|
| BLAKE2b-256 |
644240e5a09ee8340656667af4701439d764ed1362fa1e012166f51ba132f6bb
|