PROGramatic conFIGURATION for your infrastructure
Project description
progfiguration
PROGrammatic conFIGURATION. I'm tired of writing YAML when what I want to write is Python.
Building and publishing
# Create a venv
python3 -m venv venv
# Enter the venv
. venv/bin/activate
# Make sure pip is recent - required for our pyproject.toml-only package
python3 -m pip install --upgrade pip
# Install this directory as editable, and include development dependencies
python3 -m pip install --editable '.[development]'
# Run the documentation server on port 8000
pdoc -p 8000 progfiguration &
# Run unit tests
python3 -m unittest
# Run progfiguration itself
progfiguration --help
# Build a source-only distribution of the package
python3 -m build -s
# Upload it to PyPI
twine upload dist/*
We only actually need to build a source version of the package, because progfiguration expects that your progfigsite package will pull in the source code. We avoid building the binary version because it takes longer.
The pdoc webserver will live reload as you make changes.
Testing
After entering the venv (see above), run unit tests with python3 -m unittest
.
You can modify the test run with a few environment variables:
PROGFIGURATION_TEST_DEBUG=1
: Launch a debugger on any test failure or exceptionPROGFIGURATION_TEST_SLOW_ALL=1
: Run all slow testsPROGFIGURATION_TEST_SLOW_PACKAGING=1
: Run slow tests related to packaging (progfiguration build
, etc)
Building the example sites
In the same venv as above:
# Install the example progfigsite
python3 -m pip install --editable 'tests/data/simple[development]'
# Run the documentation server for both progfiguration and the example progfigsite
pdoc -p 8000 progfiguration tests/data/simple/example_site &
# Run the progfigsite itself
progfigsite --help
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
progfiguration-0.0.2a3.tar.gz
(37.1 kB
view hashes)