Permalink
Browse files

creating the correct package to pypi

  • Loading branch information...
1 parent d9ec7e1 commit 208393dd24097dc802c5fc4f1c6363200177218c @rafaelcaricio rafaelcaricio committed Oct 16, 2012
Showing with 7 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 MANIFEST.in
  3. +3 −4 setup.py
  4. +1 −1 tapioca/rest_api.py
  5. 0 tapioca/templates/{rest_api → tapioca}/resource.html
View
@@ -6,3 +6,4 @@ build
.venvs/
*.egg-info/
dist/
+MANIFEST
View
@@ -0,0 +1,2 @@
+include tapioca/templates/*.html
+include tapioca/templates/tapioca/*.html
View
@@ -1,9 +1,10 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
+from glob import glob
from setuptools import setup
-__version__ = '0.1.1'
+__version__ = '0.1.9'
setup(
@@ -31,9 +32,7 @@
packages = ['tapioca'],
package_dir = {"tapioca": "tapioca"},
include_package_data = True,
- package_data = {
- '': ['*.html'],
- },
+ data_files = [('templates', glob('tapioca/templates/*'))],
install_requires=[
"tornado>=2.4",
"mimeparse>=0.1.3"
View
@@ -69,7 +69,7 @@ class HtmlEncoder(Encoder):
def encode(self, data):
pprint_data = json.dumps(data, sort_keys=True, indent=4)
return self.handler.render_string(
- 'templates/rest_api/resource.html',
+ 'templates/tapioca/resource.html',
resource_content=pprint_data)

0 comments on commit 208393d

Please sign in to comment.