# HG changeset patch # User Franz Glasner # Date 1457337798 -3600 # Node ID 53ea2bc254e79ef0d3f56b8ffe52d4593358c3cb Begin a package to abstract some of the important configuration handling stuff. - My first package with a "setup.py" installer. BUGS: - licensing diff -r 000000000000 -r 53ea2bc254e7 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Mon Mar 07 09:03:18 2016 +0100 @@ -0,0 +1,7 @@ +syntax: glob + +*.pyc +*.pyo +*.egg-info +build/ +dist/ diff -r 000000000000 -r 53ea2bc254e7 README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README Mon Mar 07 09:03:18 2016 +0100 @@ -0,0 +1,26 @@ +.. -*- coding: utf-8; mode: rst; -*- + +=========== + MixConfig +=========== + +:Author: Franz Glasner +:Path: $HG(sw/libs/py/MixConfig.hg)$ + + +"MixConfig" is a library for helping with configuration files. + + +Links +===== + +Search for "yaml" on `PyPi` + +- https://pypi.python.org/pypi/layered-yaml-attrdict-config/16.1.0 + + The package and it's "Links" section + + +- https://configloader.readthedocs.org/en/latest/ + + For the API diff -r 000000000000 -r 53ea2bc254e7 mixconfig/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mixconfig/__init__.py Mon Mar 07 09:03:18 2016 +0100 @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +# +# NOTE: ONLY STANDARDLIB-IMPORTS IN THIS MODULE. +# ITS JUST FOR BOOTSTRAPPING WITH PYTHON2 and PYTHON3. +# NO `future`, `six`, ... +# + +from __future__ import division, print_function, absolute_import + + +__version__ = "0.0.dev0" + + +__all__ = [] diff -r 000000000000 -r 53ea2bc254e7 setup.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.cfg Mon Mar 07 09:03:18 2016 +0100 @@ -0,0 +1,10 @@ +[egg_info] +tag_build = +tag_date = 0 +tag_svn_revision = 0 + +[bdist_wheel] +universal = 1 + +[sdist] +formats = gztar diff -r 000000000000 -r 53ea2bc254e7 setup.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py Mon Mar 07 09:03:18 2016 +0100 @@ -0,0 +1,61 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import re +import os +import sys +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + + +if (sys.version_info[0] < 2) or \ + ((sys.version_info[0] == 2) and (sys.version_info[1] < 6)): + raise ValueError("Need at least Python 2.6") + + +pkg_root = os.path.dirname(__file__) + +_version_re = re.compile(br"^\s*__version__\s*=\s*(\"|')(.*)\1\s*(#.*)?$", + re.MULTILINE) + +with open(os.path.join(pkg_root, "mixconfig", "__init__.py"), "rb") as vf: + version = _version_re.search(vf.read()).group(2).decode("utf-8") + +with open(os.path.join(pkg_root, "README"), "rt") as rf: + long_description = rf.read() + +setup( + name="MixConfig", + version=version, + author="Franz Glasner", +# license='BSD', + url="https://pypi.dom66.de/simple/mixconfig/", + description="Library for extended configuration files", + long_description=long_description, + packages=["mixconfig"], + include_package_data=False, + zip_safe=True, + platforms="any", + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Developers", +# 'License :: OSI Approved :: BSD License', + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.6", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.0", + "Programming Language :: Python :: 3.1", + "Programming Language :: Python :: 3.2", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Topic :: Software Development :: Libraries :: Python Modules" + ], + install_requires = ["PyYAML>=3.0"], +)