Skip to main content

No project description provided

Project description

python-bap

This project serves as an example on how to build and publish a Python package to PyPI.

Folder structure

The folder structure has been created with Poetry and it looks like this:

python-bap/
  dist/               <- Distributables
  src/
    python_bap/       <- Code for the project
  tests/              <- Tests for the application
.gitignore            <- Patterns to be ignored by git
poetry.lock           <- Dependency lock file
pyproject.toml        <- Config file for the project
README.md             <- This file

Bumping the version

It is possible to bump the version of the project using the poetry version command with one of the following values as an argument:

  • patch
  • minor
  • major

Publishing new version

Manually

If we want to publish the a version of the project to PyPI manually, we can do that by using the following command:

poetry publish --build

For this to work, we will need to get a Token from PyPI and configure it so that Poetry uses it to publish the package.

Using GitHub Actions

In order to get GitHub actions to publish a new version of our code, we will need to do the following:

  • In your PyPI account, configure a new Trusted Publisher
    • Specify Owner
    • Specify repository name
    • Specify the workflow name

Once done, you can create a tag which looks like cli-vX.X.X and this will trigger the workflow which will publish the version to PyPI.

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

python_bap-1.0.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

python_bap-1.0.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file python_bap-1.0.1.tar.gz.

File metadata

  • Download URL: python_bap-1.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_bap-1.0.1.tar.gz
Algorithm Hash digest
SHA256 929afcf13d2f1e399149448da16fedc660ad29e164a974ea1a24775806815979
MD5 32277b5ba6a613ba4a969ebd0177f2b5
BLAKE2b-256 0ca72d9130c0b197d449906c50b52afd3366727fae3ab170ab8b96b4be46f183

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_bap-1.0.1.tar.gz:

Publisher: publish-cli.yml on DMartiniDev/python-bap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_bap-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: python_bap-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_bap-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad80333bd5027c90dde9379e0bcd5a3fe9265f2cf17a31d0944dbfbd47a29d10
MD5 b3f3464c170b16ca53be5c96da7e4110
BLAKE2b-256 52ef81fd93173cd6c02385ad38a5595b2948f1e69f01840d78c89c657b658742

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_bap-1.0.1-py3-none-any.whl:

Publisher: publish-cli.yml on DMartiniDev/python-bap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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