Skip to main content

No project description provided

Project description

kraken-build

Python | PyPI version | Documentation

Kraken is (not) a build system. It's focus is on the orchestration of high-level tasks, such as organization of your repository configuration, code generation, invoking other build systems, etc. It is not a replacement for tools like Poetry, Cargo or CMake.

Requirements

  • CPython 3.10 [1]

[1] Technically compatible with 3.10 and higher, but we can't use 3.11+ until Dill 0.3.8 is released.

Getting started

Currently, Kraken's OSS components are not very well documented and do not provide a convenient way to get started. However, if you really want to try it, you can use the following steps:

  1. Install kraken-wrapper (e.g. with Pipx) to get access to the krakenw command-line tool.

  2. Create a .kraken.py script in your project's root directory.

    from kraken.common import buildscript
    buildscript(requirements=["kraken-build==0.32.3"])
    
    from kraken.std.python import mypy, black, isort
    mypy()
    black()
    isort()
    
  3. Run krakenw lock to install kraken-build for your project in build/.kraken/venv and generate a kraken.lock file.

  4. Run krakenw run lint to run the linters.

Note that you can also use the kraken CLI (instead of krakenw), however this will disregard the buildscript() function, will not use the lock file and will use the version of Kraken that was installed globally.

How-to's

Upgrade a project's lock file

To upgrade a project's lock file, run krakenw lock --upgrade. This will upgrade all dependencies to the latest available version. If you want to upgrade based on updated constraints in .kraken.py without installing from scratch, add the --incremental flag or set KRAKENW_INCREMENTAL=1.

Development

This repository uses Slap to manage the Python project. After installing Slap with Pipx, run the following to install Kraken for development:

$ slap venv -c --python python3.10
$ slap install --link
# If you have the Slap shell magic installed, it will activate the Venv in your shell.
$ slap venv -a

Releases

A release must be created by a maintainer that has write access to the develop branch. The release process is automated using Slap.

$ slap release -tp <patch|minor|major|x.y.z>
$ slap publish

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

kraken_build-0.32.3.tar.gz (167.4 kB view details)

Uploaded Source

Built Distribution

kraken_build-0.32.3-py3-none-any.whl (230.2 kB view details)

Uploaded Python 3

File details

Details for the file kraken_build-0.32.3.tar.gz.

File metadata

  • Download URL: kraken_build-0.32.3.tar.gz
  • Upload date:
  • Size: 167.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.30.0 requests-toolbelt/1.0.0 urllib3/2.0.2 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.2

File hashes

Hashes for kraken_build-0.32.3.tar.gz
Algorithm Hash digest
SHA256 9f66d6e5cb5d23fba2e869edffde0130396658fd7ff67081081f62dbca1dc07b
MD5 419735804b43b84a2dcdceefdac9b927
BLAKE2b-256 aa9998b777884ed5891a72dee4d394925288627664dcb595807d22366555ba7d

See more details on using hashes here.

File details

Details for the file kraken_build-0.32.3-py3-none-any.whl.

File metadata

  • Download URL: kraken_build-0.32.3-py3-none-any.whl
  • Upload date:
  • Size: 230.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.30.0 requests-toolbelt/1.0.0 urllib3/2.0.2 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.2

File hashes

Hashes for kraken_build-0.32.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cbcc8d5dd061ce0278a2f2d75ef403197f48352f894c8ebee15039e77bc979dd
MD5 0aa0b19f7a090bb4efe9bc4ebd865e6c
BLAKE2b-256 94e3c1074b431b8cee873cb85137fb9f0a5df36e006a65e0f333d73475ab55e4

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