Skip to main content

A Python package to assist with developing services conforming to the Soul Machines Skill REST API.

Project description

smskillsdk

A Python package to assist with developing services conforming to the Soul Machines Skill REST API.

Development

Create and activate a virtual environment (Python >= 3.8)

# Linux/MacOS
python3 -m venv .venv
source .venv/bin/active

# Windows
python -m venv .venv
.venv\Scripts\activate

Upgrade pip

python -m pip install --upgrade pip

Install development requirements

pip install wheel
pip install -r requirements-dev.txt

Install package and its dependencies

pip install -e .

Running tests

python -m unittest

Building the package

python -m build --sdist --wheel --outdir dist

Running the pre-commit hook

# only for staged files
pre-commit run

pre-commit run --all-files

Updating the API model

Initialise skill API definition submodule

git submodule init
git submodule update

Fetch the latest revision

cd sm-skill-api-definition
git pull
cd ..

Regenerate the API models

# Linux/MacOS
./scripts/generate_models.sh

# Windows
.\scripts\generate_models.ps1

Releasing a new version

  1. Form a release branch named release/[MAJOR_VERSION].0.0
  2. Tag the first commit with [MAJOR_VERSION].0.0
  3. Update the version in setup.cfg in the main branch for future development
  • Fixes for release branches can be cherry picked or merged into the release branch.
  • New tags can be created for minor/patch releases but new major releases should be formed in a new release branch

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

smskillsdk-0.0.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

smskillsdk-0.0.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smskillsdk-0.0.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for smskillsdk-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e850f12538466ddb670ed07f68a1f27ea98e80a8318a25cad52198ce5284547a
MD5 60bd0b199a53ef261fa9cf4a8517dba4
BLAKE2b-256 5cdf2990cba714b8527189d185df9499f72b80bb1be3fece5a9df1e8371738dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smskillsdk-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for smskillsdk-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 517ca8d2291f480e2e20a6455d1d57c65a59597a965892762304c9a9bb141def
MD5 478dc66111201a02cc266b5e3e7920ac
BLAKE2b-256 1d0b4b70d216dbcb41ac0da31f58cbbe08b0cd1e884880eee50832a6b9a0f985

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page