Skip to content

Commit

Permalink
Fix packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Warren Smith committed Nov 23, 2016
1 parent e933bad commit a612c11
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include README.md
include LICENSE
include release_notes.rst
include staticmodel.py
recursive-include docs *
recursive-exclude docs/_build *
7 changes: 0 additions & 7 deletions jsonify.py

This file was deleted.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def file_read(filename):
setup(
name="staticmodel",
version=__version__,
py_modules=['staticmodel'],
packages=find_packages(),
install_requires=['six'],
author="Warren A. Smith",
Expand Down
7 changes: 6 additions & 1 deletion staticmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
Model members may be rendered as primitive collections.
>>> # Custom function for formatting primitive collections in doctest
>>> from jsonify import jsonify
>>> from staticmodel import jsonify
>>>
>>>
>>> jsonify(list(HousePet.members.values()))
Expand Down Expand Up @@ -414,6 +414,7 @@
from collections import Iterable, OrderedDict
from compat2.partialmethod import partialmethod
from itertools import chain
import json
from compat2.simplenamespace import SimpleNamespace

from compat2.preparable import Prepareable
Expand Down Expand Up @@ -797,3 +798,7 @@ def __repr__(self):

def _format_kwargs(kwargs):
return ', '.join('{}={!r}'.format(k, v) for k, v in kwargs.items())


def jsonify(obj):
print('\n'.join(line.rstrip() for line in json.dumps(obj, indent=2).splitlines()))

0 comments on commit a612c11

Please sign in to comment.