Flexible reading and writing of namespaced configuration options
Project description
[![Travis](https://travis-ci.org/mozilla/configman.png?branch=master)](https://travis-ci.org/mozilla/configman)
Copyright Mozilla, 2013 - 2015
General tool for setting up configuration options per namespaces. Supports reading and writing configs generally from and into config files.
Running tests
We use [nose](http://code.google.com/p/python-nose/) to run all the unit tests and [tox](http://tox.testrun.org/latest/) to test multiple python versions. To run the whole suite just run:
tox
tox will pass arguments after – to nosetests. To run with test coverage calculation, run tox like this:
tox – –with-coverage –cover-html –cover-package=configman
If you want to run a specific test in a testcase class, though, you might consider just using nosetests:
nosetests configman.tests.test_config_manager:TestCase.test_write_flat
Making a release
Because our .travis.yml has all the necessary information to automatically make a release, all you need to do is to push a commit onto master. Most likely you will only want to do this after you have edited the configman/version.txt file. Suppose you make some changes:
git add configman/configman.py git commit -m “fixed something”
You might want to push that to your fork and make a pull request. Then, to update the version and make a release, first do this:
vim configman/version.txt git add configman/version.txt git commit -m “bump to version x.y.z” git push origin master
After that travis, upon a successful build will automatically make a new tarball and wheel and upload it to [PyPI](https://pypi.python.org/pypi/configman)
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 Distributions
Hashes for configman-1.2.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9123ef113cd9d1517a384fd3fb167fac72982346693c59fdba108c44fdea7e87 |
|
MD5 | 2f077a574a2d591f745c66ac740e3f15 |
|
BLAKE2b-256 | f7aac6d059b954ac2472b4139ed54d04ca2a3b7065cf52256f3c0eecd61c0c52 |
Hashes for configman-1.2.13-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6242f129cdced6bf0cf930e1b8a13cac67a15fc19b50a48c02f9d8dad76e9b2c |
|
MD5 | 2092d7109e5275ec2c1871c6203641da |
|
BLAKE2b-256 | 6b60c0bd74a7cff7d02a7ed46103fc00374121283cfa217d5e3818cfe50d8f93 |