mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 13:56:49 +00:00
bumping version for 1.9.2
This commit is contained in:
parent
4c086dcb30
commit
c09cdd4544
@ -1,53 +0,0 @@
|
||||
In cement2, everything is broken out into handlers... such as:
|
||||
|
||||
log_handler
|
||||
option_handler
|
||||
config_handler
|
||||
output_handler
|
||||
command_handler
|
||||
extension_handler
|
||||
plugin_handler
|
||||
etc
|
||||
|
||||
|
||||
A handler is an implementation of a 'handler interface'... for example
|
||||
IConfigHandler is an interface that defines what a config handler must
|
||||
implement. The, ConfigParserConfigHandler is the default which implements the
|
||||
interface using the standard ConfigParser library. I can then write a
|
||||
framework extension for ConfigObj (which I prefer, but has an external dep on
|
||||
configobj)... where ConfigObjConfigHandler implements the same interface, and
|
||||
to the framework does exactly the same thing though in my app I can access the
|
||||
extra ConfigObj features like calling my config objects as a dict, and so on.
|
||||
|
||||
I have not yet written the interfaces or the handlers for option parsing, and
|
||||
command dispatch... but those are the last two things before you can really
|
||||
start using and testing cement2 beta. I'll be writing two extension for
|
||||
option parsing... one for ArgParseOptionHandler and the other for
|
||||
OptParseOptionHandler. That said, if you're anxious to see it (no docs, or
|
||||
anything) its available in the 'portland' branch:
|
||||
|
||||
https://github.com/derks/cement/tree/portland/src/
|
||||
|
||||
|
||||
cement2 is the core library, and cement2.ext.XXXXXX are framework extensions
|
||||
that implement different handlers... configobj is the primary extension that
|
||||
I would reference as it is complete and the others not so much. Additionally,
|
||||
there is a test.py in there that might help:
|
||||
|
||||
https://github.com/derks/cement/blob/portland/src/cement2/test.py
|
||||
|
||||
|
||||
Some things I need to do still:
|
||||
|
||||
Write option and command dispatch interfaces and handlers
|
||||
Figure out application 'plugin' support
|
||||
Write the documentation
|
||||
Write cement2.devtools which pastes a functional, working app from template.
|
||||
Ensure Python 3 compatibility
|
||||
|
||||
|
||||
One of my goals for cement2 was that you could do everything from one file
|
||||
(a script) the same as you can from a full blown MVC app (like cement 0.8
|
||||
does now). I haven't gotten to that yet... just testing things out of one
|
||||
file so far and focussing on nosetest coverage.
|
||||
|
||||
16
ChangeLog
16
ChangeLog
@ -10,23 +10,15 @@ All bugs/feature details can be found at:
|
||||
Where XXXXX is the 'Issue #' referenced below. Additionally, this change log
|
||||
is available online at:
|
||||
|
||||
http://builtoncement.org/cement/0.9/doc/changes.html
|
||||
http://cement.readthedocs.org/en/portland/changes/
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<BR><BR>
|
||||
|
||||
|
||||
0.9.1 - development (will be released as 0.9.2)
|
||||
1.9.2 - Wed Nov 02, 2011
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
Bug Fixes
|
||||
^^^^^^^^^
|
||||
|
||||
- None
|
||||
|
||||
|
||||
Feature Enhancements
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
- None
|
||||
This is an initial beta release of Cement2, and therefore no bugs or features
|
||||
are listed. Future releases will detail all changes.
|
||||
@ -11,6 +11,9 @@
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
VERSION = '1.9'
|
||||
RELEASE = '1.9.2'
|
||||
|
||||
import sys, os
|
||||
sys.path.insert(0, os.path.abspath('../../src/cement2/'))
|
||||
|
||||
@ -58,9 +61,10 @@ copyright = u'2011, BJ Dierkes'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '1.9.1'
|
||||
version = VERSION
|
||||
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '1.9.1'
|
||||
release = RELEASE
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
||||
@ -196,7 +196,7 @@ Cement Framework Hooks
|
||||
Cement has a number of hooks that tie into the framework.
|
||||
|
||||
cement_setup_hook
|
||||
^^^^^^^^^^^^^^^^
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
Run when CementApp.setup() is called. No arguments are passed to this hook,
|
||||
and nothing is expected in return.
|
||||
|
||||
@ -0,0 +1 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
@ -4,7 +4,7 @@
|
||||
from setuptools import setup, find_packages
|
||||
import sys, os
|
||||
|
||||
VERSION = '1.9.1'
|
||||
VERSION = '1.9.2'
|
||||
|
||||
LONG = """
|
||||
Cement is an advanced CLI Application Framework for Python. This package
|
||||
|
||||
@ -0,0 +1 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
@ -4,7 +4,7 @@
|
||||
from setuptools import setup, find_packages
|
||||
import sys, os
|
||||
|
||||
VERSION = '1.9.1'
|
||||
VERSION = '1.9.2'
|
||||
|
||||
LONG = """
|
||||
Cement is an advanced CLI Application Framework for Python. This package
|
||||
|
||||
@ -0,0 +1 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
@ -2,7 +2,7 @@
|
||||
from setuptools import setup, find_packages
|
||||
import sys, os
|
||||
|
||||
VERSION = '1.9.1'
|
||||
VERSION = '1.9.2'
|
||||
|
||||
LONG = """
|
||||
Cement is an advanced CLI Application Framework for Python. This package
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
from setuptools import setup, find_packages
|
||||
import sys, os
|
||||
|
||||
VERSION = '1.9.1'
|
||||
VERSION = '1.9.2'
|
||||
|
||||
LONG = """
|
||||
Cement2 is an advanced CLI Application Framework for Python. This package
|
||||
|
||||
@ -1,23 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
previous=$(git describe | awk -F '-' {' print $1 '})
|
||||
version=$(python -c "from pkg_resources import get_distribution ; print get_distribution('cement').version")
|
||||
date=$(date)
|
||||
tmpfile=$(mktemp /tmp/cementXXXXX)
|
||||
status=$(git status --porcelain)
|
||||
|
||||
if [ "${status}" != "" ]; then
|
||||
echo
|
||||
echo "WARNING: not all changes committed"
|
||||
fi
|
||||
|
||||
changes=$(git --no-pager log --pretty=" - %s [%h]" ${previous}..)
|
||||
cat <<EOF
|
||||
|
||||
${version} - $date
|
||||
------------------------------------------------------------------------------
|
||||
${changes}
|
||||
|
||||
|
||||
EOF
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
status=$(git status --porcelain)
|
||||
version=$(python -c "from pkg_resources import get_distribution ; print get_distribution('cement').version")
|
||||
version=$(cat src/cement2/setup.py | grep VERSION | head -n1 | awk -F \' {' print $2 '})
|
||||
short=$(echo $version | awk -F . {' print $1"."$2 '})
|
||||
dir=~/cement-${version}
|
||||
dir=~/cement2-${version}
|
||||
|
||||
if [ "${status}" != "" ]; then
|
||||
echo
|
||||
@ -16,10 +16,10 @@ mkdir ${dir}/downloads
|
||||
mkdir ${dir}/pypi
|
||||
|
||||
# all
|
||||
git archive HEAD --prefix=cement-${version}/ | gzip > ${dir}/downloads/cement-${version}.tar.gz
|
||||
git archive HEAD --prefix=cement2-${version}/ | gzip > ${dir}/downloads/cement2-${version}.tar.gz
|
||||
|
||||
# individual
|
||||
for i in cement cement.devtools cement.test; do
|
||||
for i in cement2 cement2.ext.configobj cement2.ext.json cement2.ext.yaml; do
|
||||
pushd src/$i
|
||||
git archive HEAD --prefix=${i}-${version}/ | gzip > ${dir}/pypi/${i}-${version}.tar.gz
|
||||
popd
|
||||
|
||||
Loading…
Reference in New Issue
Block a user