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:
patchminormajor
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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
929afcf13d2f1e399149448da16fedc660ad29e164a974ea1a24775806815979
|
|
| MD5 |
32277b5ba6a613ba4a969ebd0177f2b5
|
|
| BLAKE2b-256 |
0ca72d9130c0b197d449906c50b52afd3366727fae3ab170ab8b96b4be46f183
|
Provenance
The following attestation bundles were made for python_bap-1.0.1.tar.gz:
Publisher:
publish-cli.yml on DMartiniDev/python-bap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_bap-1.0.1.tar.gz -
Subject digest:
929afcf13d2f1e399149448da16fedc660ad29e164a974ea1a24775806815979 - Sigstore transparency entry: 782246142
- Sigstore integration time:
-
Permalink:
DMartiniDev/python-bap@65072ebbccad284de6f57cbd61e7bbb82c986c78 -
Branch / Tag:
refs/tags/cli-v1.0.1 - Owner: https://github.com/DMartiniDev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@65072ebbccad284de6f57cbd61e7bbb82c986c78 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad80333bd5027c90dde9379e0bcd5a3fe9265f2cf17a31d0944dbfbd47a29d10
|
|
| MD5 |
b3f3464c170b16ca53be5c96da7e4110
|
|
| BLAKE2b-256 |
52ef81fd93173cd6c02385ad38a5595b2948f1e69f01840d78c89c657b658742
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_bap-1.0.1-py3-none-any.whl -
Subject digest:
ad80333bd5027c90dde9379e0bcd5a3fe9265f2cf17a31d0944dbfbd47a29d10 - Sigstore transparency entry: 782246145
- Sigstore integration time:
-
Permalink:
DMartiniDev/python-bap@65072ebbccad284de6f57cbd61e7bbb82c986c78 -
Branch / Tag:
refs/tags/cli-v1.0.1 - Owner: https://github.com/DMartiniDev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@65072ebbccad284de6f57cbd61e7bbb82c986c78 -
Trigger Event:
push
-
Statement type: