No project description provided
Project description
The Kraken build system
Kraken is a build system, but not in the traditional sense. 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+
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:
-
Install
kraken-wrapper
(e.g. with Pipx) to get access to thekrakenw
command-line tool. -
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()
-
Run
krakenw lock
to installkraken-build
for your project inbuild/.kraken/venv
and generate akraken.lock
file. -
Run
krakenw run lint
to run the linters.
Note that you can also use the
kraken
CLI (instead ofkrakenw
), however this will disregard thebuildscript()
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
You may want to use a released version of krakenw
to interact in the repository however:
$ krakenw python.install
$ krakenw run fmt lint test
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
Built Distribution
File details
Details for the file kraken_build-0.36.7.tar.gz
.
File metadata
- Download URL: kraken_build-0.36.7.tar.gz
- Upload date:
- Size: 176.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af29564b0842f0867404cdf83d60e02e717d91a860c2b99f0406fd17129a3853 |
|
MD5 | d11e27a3a9c6f0fa580d6c9d5b628fba |
|
BLAKE2b-256 | 66d1593a377ac315a3e985150daecc78afaa7ef6590e69965f8dff5e2f0b73e5 |
File details
Details for the file kraken_build-0.36.7-py3-none-any.whl
.
File metadata
- Download URL: kraken_build-0.36.7-py3-none-any.whl
- Upload date:
- Size: 245.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 100f71cc7b44f0d2db499bd71af6434d64eac2c8e195eb4e2fbd3946bb07fafa |
|
MD5 | dace9d5c15027392e4766a764452f70a |
|
BLAKE2b-256 | dd11d371aa7c101a53ed0df0007c836309a502f2d6645d40dfbbcc6a8b175f57 |