Skip to main content

A tool for handling automated tasks in Steinwurf.

Project description

PyPi Waf Python Tests Black Flake8

In Steinwurf we have a few general tasks that every developer in Steinwurf needs to carry out once in a while.

For example, Releasing a new version of a project.

Steinwurf Tasker is the tool for automating such tasks.

Installation

Install the steinwurf-tasker tool using pip:

python -m pip install steinwurf-tasker

Alternatively you can also use pipx for the installation (this works in ubuntu 23.04):

pipx install steinwurf-tasker

Setup config

Create a file in your home folder called .steinwurf-tasker.yaml.

Add the following content and modify the values to the

editor: code
resolve_path: /home/username/projects/dependencies
project_paths:
      - /home/username/projects/
release_email:
      host: smtp.emailhost.com
      port: 587
      sender: release_email@email.com
      password: release_email_password
      receiver: release_email_receiver@email.com

tailscale:
      api_key: tskey-123456789
      url: <tailscale api URL, something like: https://api.tailscale.com/api/v2/tailnet/{user}>
      credentials:
            user: common_account_name
            password: common_account_password

Usage

You’ll now be able to use the sw command line tool. The following will list the available sw commands:

sw -l

Update

To update Steinwurf Tasker use pip:

python -m pip install steinwurf-tasker

Please make sure to also extend the config file with required information.

Development

When developing a new feature for Steinwurf Tasker it can be nice to install the local version in editable mode. This can done using the following command:

cd steinwurf-tasker
python3 -m pip install -e .

To revert this and use the pip package use this command:

cd steinwurf-tasker
python3 -m pip uninstall steinwurf-tasker
python -m pip install steinwurf-tasker

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

steinwurf_tasker-3.0.0-py2.py3-none-any.whl (15.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file steinwurf_tasker-3.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for steinwurf_tasker-3.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b91edc4df9be9f4a96367ae59a20d27c9efd51bd60a659e18ed964a0c089e628
MD5 b495981c7f9f6e49bb51dc28b16a4364
BLAKE2b-256 a605c6ac172d34ed2f3506099726833cfb88ad4501fab3fe001130355e74196d

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