Skip to content

Commit

Permalink
Merge tag '0.8.4' into fusionapp-integration
Browse files Browse the repository at this point in the history
Mantissa 0.8.4 release.
  • Loading branch information
mithrandi committed Feb 20, 2016
2 parents f9a1914 + d61b736 commit 3c153a2
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 59 deletions.
39 changes: 13 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,26 @@ branches:
only:
- master

python:
- "2.7"
#- "pypy"

env:
- MODE=inplace
- MODE=sdist
- MODE=wheel
- TOXENV=py27-twlatest
- TOXENV=py27-twtrunk
- TOXENV=py27-tw14
# Test inplace on one variant
- TOXENV=py27-twlatest DEVELOP=--develop

matrix:
allow_failures:
- env: TOXENV=py27-twtrunk

install:
# Upgrade pip/setuptools
- pip install -U pip setuptools
# Tools for checking coverage and uploading to coveralls
- pip install coveralls coverage
- |
python setup.py --version
if [ "${MODE}" == "inplace" ]; then
pip install --editable .
elif [ "${MODE}" == "sdist" ]; then
python setup.py sdist
pip install dist/Mantissa-"$(python setup.py --version)".tar.gz
elif [ "${MODE}" == "wheel" ]; then
pip install wheel
python setup.py bdist_wheel
pip install dist/Mantissa-"$(python setup.py --version)"-py2-none-any.whl
fi
- pip install -U pip setuptools wheel
- pip install tox codecov

script:
- cd /tmp && coverage run --branch --source=xmantissa $(type -p trial) xmantissa
- cd /tmp && coverage report -m
- tox ${DEVELOP}

after_success:
- cd "${TRAVIS_BUILD_DIR}" && mv /tmp/.coverage . && coveralls
- mv .tox/.coverage . && codecov

notifications:
email: false
Expand Down
8 changes: 8 additions & 0 deletions NEWS.txt → NEWS.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
0.8.4 (2016-02-17):
- Remove unused `nevow.livepage` support code; fixes compatibility with Nevow
0.13.0.
- `StringEndpointPort` ports are now deletable from the commandline (with
the `axiomatic port delete` command).
- Mantissa's CI now tests against Twisted trunk, for early warnings of
breakage.

0.8.3 (2015-10-23):
- StringEndpointPort was still broken, somehow. It really works now, promise!

Expand Down
11 changes: 4 additions & 7 deletions README.txt → README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.. image:: https://travis-ci.org/twisted/mantissa.svg?branch=master
:target: https://travis-ci.org/twisted/mantissa

Divmod Mantissa
===============
.. image:: https://codecov.io/github/twisted/mantissa/coverage.svg?branch=master
:target: https://codecov.io/github/twisted/mantissa?branch=master

Divmod Mantissa is an application server with a web interface built using Axiom
and Nevow.
Expand All @@ -16,8 +18,3 @@ administrative tools, a web server, and a system for different plugins which
provide facets of functionality to advertise themselves to the administrator,
install themselves on the site database, and be installed and removed from
users' accounts.

More information is available at:

http://www.divmod.org/trac/wiki/DivmodMantissa

2 changes: 1 addition & 1 deletion doc/listings/interstore/cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Busy(Exception):
class MakeAppointment(Command):
arguments = [("whom", SenderArgument()), ("when", String())]
response = [("appointmentID", Unicode())]
errors = {"busy": Busy}
errors = {Busy: "busy"}


class Appointment(Item, AMPReceiver):
Expand Down
19 changes: 19 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[tox]
envlist={py27}-{twtrunk,twlatest,tw14}

[testenv]
# Remove this once the PyPy branch lands:
setenv =
PYTHONHASHSEED = 0
changedir={toxworkdir}
deps=
twlatest: Twisted
twtrunk: https://github.com/twisted/twisted/archive/trunk.zip
tw14: Twisted==14.0.0
coverage
commands=
pip list
coverage run {envdir}/bin/trial \
--temp-directory={envdir}/_trial_temp {posargs:xmantissa}
coverage report --rcfile={toxinidir}/.coveragerc
coverage html --rcfile={toxinidir}/.coveragerc --directory {envdir}/_coverage
2 changes: 1 addition & 1 deletion xmantissa/test/test_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def test_publicPage(self):

def test_navPage(self):
"""
Test that L{webapp.GenericNavigationLivePage} supports theming of
Test that L{webapp.GenericNavigationAthenaPage} supports theming of
Athena's unsupported-browser page based on an L{ITemplateNameResolver}
installed on the viewing user's store.
"""
Expand Down
25 changes: 1 addition & 24 deletions xmantissa/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from axiom.userbase import getAccountNames

from nevow.rend import Page
from nevow import livepage, athena
from nevow import athena
from nevow.inevow import IRequest
from nevow import tags as t
from nevow import url
Expand Down Expand Up @@ -331,29 +331,6 @@ def __init__(self, webapp, fragment, pageComponents, username):
_FragmentWrapperMixin.__init__(self, fragment, pageComponents)


class GenericNavigationLivePage(_FragmentWrapperMixin, livepage.LivePage, _ShellRenderingMixin):
def __init__(self, webapp, fragment, pageComponents, username):
livepage.LivePage.__init__(self, docFactory=webapp.getDocFactory('shell'))
_ShellRenderingMixin.__init__(self, webapp, pageComponents, username)
_FragmentWrapperMixin.__init__(self, fragment, pageComponents)

# XXX TODO: support live nav, live fragments somehow
def render_head(self, ctx, data):
ctx.tag[t.invisible(render=t.directive("liveglue"))]
return _FragmentWrapperMixin.render_head(self, ctx, data)

def goingLive(self, ctx, client):
getattr(self.fragment, 'goingLive', lambda x, y: None)(ctx, client)

def locateHandler(self, ctx, path, name):
handler = getattr(self.fragment, 'locateHandler', None)

if handler is None:
return getattr(self.fragment, 'handle_' + name)
else:
return handler(ctx, path, name)



class GenericNavigationAthenaPage(_FragmentWrapperMixin,
MantissaLivePage,
Expand Down

0 comments on commit 3c153a2

Please sign in to comment.