Skip to main content

Small package to extend metadata functionality

Project description

Introduction

!!! In the tools folders is needed to add a config.ini file and the public/private keys of the user in order to check passbolt !!!

This repository contains a Python package that can be built and uploaded to PyPI. Follow the steps below to build the package, upload it to PyPI.

Prerequisites

Before proceeding, ensure the following:

Python 3.8 or higher is installed.
pip is installed and up-to-date.
Required tools are installed:
  • pip install build twine

A PyPI account is set up, and an API token has been generated. Add this token to your environment variables, also it can be retrieved from passbolt but the example is using a export:

export PYPI_API_KEY=<your-pypi-api-key>

---- Steps to Build and Upload ----

  • Build the Package -

Run the following command in the root directory (where setup.py or pyproject.toml is located):

python -m build

This generates the package files in the dist/ directory.

  • Upload the Package to PyPI -

To upload the package, run:

python -m twine upload dist/* -u token -p "$PYPI_API_KEY"

Ensure the PYPI_API_KEY environment variable is correctly set.
  • Automated Process -

Use the provided build_or_upload_env.sh script for automation:

./tools/build_or_upload_env.sh

The script allows you to:
    Build the package only.
    Upload the package to PyPI.
    Build and upload the package.

Test Your Package

Once uploaded, verify it by installing directly from PyPI:

pip install <your-package-name>

Shell Script Usage

The build_or_upload_env.sh script is located in the repository. Here’s how it works:

Make the script executable:

chmod +x ./tools/build_or_upload_env.sh

Run the script:

./tools/build_or_upload_env.sh

Options:
    Build the package only.
    Upload the package to PyPI only.
    Build and upload the package.

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

ue_om_tests-0.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

ue_om_tests-0.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file ue_om_tests-0.0.1.tar.gz.

File metadata

  • Download URL: ue_om_tests-0.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for ue_om_tests-0.0.1.tar.gz
Algorithm Hash digest
SHA256 af320597fccaceaa54ccfaae88a9ab0619023ea422c7c0ddf4ac461935c77ba1
MD5 cd5f01e2ce0b52c2a6a9d0b44895ea6a
BLAKE2b-256 bee95b72b57b6e53550112f7bbd131b28d7b44a6dcbea270d71c69c183164b98

See more details on using hashes here.

File details

Details for the file ue_om_tests-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ue_om_tests-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for ue_om_tests-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2b0942ac7acd35aa265006dec613703ca6c49d1883e6f9b32723e007da99535
MD5 a1ce08a224d47fddcb289fb67a297a80
BLAKE2b-256 10e4b1fcb641e350dbe1a3e0ccc7cc9cf9149a2029585721ad9d06663d7a898c

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