summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MANIFEST.in2
-rw-r--r--lps_gen.py4
-rw-r--r--lpschedule_generator/__init__.py0
-rw-r--r--lpschedule_generator/templates/lp-sch-2016.jinja2 (renamed from templates/lp-sch-2016.jinja2)0
-rw-r--r--setup.py5
5 files changed, 6 insertions, 5 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index 1735a0a..9f51c25 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,4 +1,4 @@
include COPYING CONTRIBUTORS README.md
-recursive-include templates *
+recursive-include lpschedule_generator *
recursive-include tests *
recursive-exclude tests *.pyc \ No newline at end of file
diff --git a/lps_gen.py b/lps_gen.py
index 74dad03..8f73754 100644
--- a/lps_gen.py
+++ b/lps_gen.py
@@ -30,7 +30,7 @@ from jinja2 import Environment, PackageLoader
from jinja2.exceptions import TemplateNotFound
from mistune import Renderer, Markdown
-__version__ = '0.1.0.dev1'
+__version__ = '0.1.0.dev2'
# unicode magic
reload(sys)
@@ -149,7 +149,7 @@ def RenderHTML(lps_dict, year):
Returns the HTML as a string.
"""
- env = Environment(loader=PackageLoader('lps_gen',
+ env = Environment(loader=PackageLoader('lpschedule_generator',
'templates'),
trim_blocks=True, lstrip_blocks=True)
diff --git a/lpschedule_generator/__init__.py b/lpschedule_generator/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lpschedule_generator/__init__.py
diff --git a/templates/lp-sch-2016.jinja2 b/lpschedule_generator/templates/lp-sch-2016.jinja2
index 4ea99cc..4ea99cc 100644
--- a/templates/lp-sch-2016.jinja2
+++ b/lpschedule_generator/templates/lp-sch-2016.jinja2
diff --git a/setup.py b/setup.py
index c7befb8..12602ac 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@
import lps_gen
try:
- from setuptools import setup
+ from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
@@ -38,7 +38,8 @@ config = {
'author_email': 'rsd@gnu.org',
'install_requires': ['nose', 'mock', 'mistune', 'Jinja2', 'beautifulsoup4'],
'py_modules': ['lps_gen'],
- 'data_files':[('templates',['templates/lp-sch-2016.jinja2'])],
+ 'packages': find_packages(exclude=['tests']),
+ 'package_data': { 'lpschedule_generator': ['templates/*.jinja2'] },
'entry_points': {
'console_scripts': ['lps_gen = lps_gen:main']
},