A module for parsing and discovery of frigg settings file
Project description
A python module for parsing and discovery of frigg settings file
Installation
pip install frigg-settings
Usage
The same content as t.py, thus run python t.py to se the output.
from frigg_settings.helpers import FileSystemWrapper
from frigg_settings import build_tasks, load_settings_file, build_settings
path = os.getcwd()
runner = FileSystemWrapper()
print('Tasks: {}'.format(build_tasks(path, runner)))
print('Settings-file: {}'.format(load_settings_file('{}/.frigg.yml'.format(path), runner)))
print('Build-settings: {}'.format(build_settings(path, runner)))
The script prints the following:
Tasks: ['tox', 'flake8']
Settings-file: {'tasks': ['tox -e py34', 'tox -e flake8', 'tox -e isort', 'coverage report -m && coverage xml'], 'coverage': {'parser': 'python', 'path': 'coverage.xml'}}
Build-settings: {'webhooks': [], 'services': [], 'tasks': ['tox -e py34', 'tox -e flake8', 'tox -e isort', 'coverage report -m && coverage xml'], 'coverage': {'parser': 'python', 'path': 'coverage.xml'}}
MIT © frigg.io
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
frigg-settings-1.0.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for frigg_settings-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccdb3b21a5eab39ecbed3d815e940ca999a90c4c74b0ee34e38cca1e24f2764d |
|
MD5 | 0d61140c2940301e7784fcb3cb78dd5a |
|
BLAKE2b-256 | 36967bb505da0fd5523e731689f9ba4bd2f7d486549f09a05505d19758a010e8 |