c2pa.build

Attributes

Functions

get_latest_release()

Get the latest release information from GitHub.

download_artifact(url, platform_name)

Download and extract an artifact

download_artifacts()

Main function to download artifacts.

inject_version()

Inject the version from pyproject.toml

initialize_build()

Initialize the build process by downloading artifacts.

Module Contents

c2pa.build.REPO_OWNER = 'contentauth'
c2pa.build.REPO_NAME = 'c2pa-rs'
c2pa.build.GITHUB_API_BASE = 'https://api.github.com'
c2pa.build.ARTIFACTS_DIR
c2pa.build.get_latest_release()

Get the latest release information from GitHub.

Return type:

dict

c2pa.build.download_artifact(url, platform_name)

Download and extract an artifact to the appropriate platform directory.

Parameters:
  • url (str)

  • platform_name (str)

Return type:

None

c2pa.build.download_artifacts()

Main function to download artifacts. Can be called as a script or from hatch.

Return type:

None

c2pa.build.inject_version()

Inject the version from pyproject.toml into src/c2pa/__init__.py as __version__.

c2pa.build.initialize_build()

Initialize the build process by downloading artifacts.

Return type:

None