Skip to main content

Base package for mocap pipeline

Project description

mocap-base

wemake-python-styleguide python3.10 Coverage Continuous Integration Release

Description

Installation

  1. Install the latest aws-cli2

  2. Configure your sso as below:

aws configure sso
  name = moveai
  start url = https://d-93676e215a.awsapps.com/start#
  region = eu-west-1
  registration scopes =
  profile name: default
aws sso login --profile <profile_name>
  1. Install poetry:
pip install poetry

Run the following with your profile name:

export AWS_PIP_PASSWORD=`aws codeartifact get-authorization-token --profile <profile_name> --domain moveai --domain-owner 103680339861 --region eu-west-1 --query authorizationToken --output text`
poetry config http-basic.move aws $AWS_PIP_PASSWORD
poetry install

Pre-commit for contribution

After you perform poetry install, please perform the following command. This will allow the pre-commit checks to run each time you commit a new change to git.

poetry run pre-commit install

Usage

# TODO: Add instructions in https://moveai.atlassian.net/browse/EGT-391

Tests

From the repo root directory, run:

poetry run pytest

Version control

This repository follows a trunk-based development in git i.e. all changes are merged to main directly and all branches are created from main. For more info please see this documentation.

All PRs are merged to main directly and all branches are created from main. Only these branches are allowed to be merged to the main branch: feature/, hotfix/, bugfix/, dependabot/, cruft/

Note:

  • Direct pushes to main are not allowed (this is because of the enforced ruleset on github)
  • All changes to be merged to main via a pull request
  • A PR can't be merged until both unittest and pre-commit checks have been passed

Please refer to this notion doc on the git flow used in this repository.

PyPi release

An encrypted version of this package will be released on pypi automatically as part of the release workflow (release.yml). If this package doesn't need to be on pypi, please remove this job manually from .github/workflows/release.yml

Troubleshooting

  • If the pypi release workflow gets stuck, please make sure that another workflow (in another mocap-*) is not running. If another workflow is currently running, then please wait for it to be finished and then try again.
  • This is because the WIBU token can only be run on one instance at a time, each subsequent workflow should have a one hour difference between runs - this is a known limitation and would be fixed in a future version of the release workflow in mocap-template.

Encryption setup files

We need the following files for the debianize release action to be able to create an accurate .deb release.

  1. protect.WibuCpsConf: contains the Wibu configuration to encrpyt the package correctly.
  2. CMakeLists.txt: contains a set of directives and instructions describing the project's source files and targets.
  3. resources/postinst_template: the post installation template for this project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mocap_base-2.0.4-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file mocap_base-2.0.4-py3-none-any.whl.

File metadata

  • Download URL: mocap_base-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mocap_base-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 531f0602c0561e975ad4aed9f339afd441363dfd0c086188c8bc1f7c84657c49
MD5 ab1d5f0dd15a35fff2a4bfcdfffba515
BLAKE2b-256 57e98a800e4039dc7a9a4e054ac3206a6b8b7daabd14995f07095279398d32e6

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