Generates entity ID and connects with Vault (secret engine) to retrieve credentials
Project description
common
Importable Pip package that generates entity ID and connects with Vault (secret engine) to retrieve credentials.
Import package
Pip install command from GitLab:
pip install common --index-url https://__token__:<GITLAB_PAT>@git.indocresearch.org/api/v4/projects/158/packages/pypi/simple
Pip install command from .whl
file:
pip install common-<VERSION>-py3-none-any.whl
In requirements.txt
:
--index-url https://__token__:<GITLAB_PAT>@git.indocresearch.org/api/v4/projects/158/packages/pypi/simple
common
<GITLAB_PAT>
is a GitLab personal access token with the read_api
scope.
Update package
Refer to documentation: https://docs.gitlab.com/ee/user/packages/pypi_repository/#publish-a-pypi-package-by-using-twine
-
Update the package version in
setup.py
. Otherwise, the push will fail with duplicate version number. -
Install the python
build
andtwine
package:
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
- Build the common package:
python3 -m build
Now you will see two more folder generated under ./common/
|- common.egg-info/
|- dist/
- Push to GitLab:
TWINE_PASSWORD=<PASS> TWINE_USERNAME=<USER> python3 -m twine upload --repository-url https://git.indocresearch.org/api/v4/projects/158/packages/pypi dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pilot-platform-common-0.0.41.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eb9579e6e80638f54e598b58e9bb976c0e93f7a6439f0a2138bcc20fb635888 |
|
MD5 | 786e063dd722ad79efaabc364ee19526 |
|
BLAKE2b-256 | a0653e7439c7e13b3175163b8611504028ef33135f520d83a57147c58b35b378 |
Hashes for pilot_platform_common-0.0.41-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e05ed47613dc35585c70ee5946a8b012e79ec77d15cac27cbbeb7bb7e37984a |
|
MD5 | 3543d2e33906da38884e7892074c9120 |
|
BLAKE2b-256 | c57629753b43769fbfc79f7894d28d2af1f869ade4838fc41670274dad934a30 |