Pilsburgh / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

setuptools doesn't copy templates to forum packages. #79

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. python setup.py install

What is the expected output? What do you see instead?
/path/to/python/site-packages/forumpath/forum/templates
The templates are not found by find_packages because they aren't a python
package.

What version of the product are you using? On what operating system?
r54

Please provide any additional information below.
Adding this to setup.py seems to fix the issue:

--- setup.py    (revision 54)
+++ setup.py    (working copy)
@@ -30,6 +30,7 @@
     url='http://code.google.com/p/django-forum/',
     license='BSD',
     packages=find_packages(),
+    package_data={'forum':['templates/*.html',
'templates/forum/*.html','templates/forum/feeds/*.html']},
     include_package_data=True,
     zip_safe=False,
     install_requires=['setuptools'],

There is probably an easier way to search for the templates though without
explicitly naming them.

Original issue reported on code.google.com by djmuhles...@gmail.com on 15 Sep 2009 at 5:58

GoogleCodeExporter commented 9 years ago
Needs 'templates/forum/*.txt' as well for the notify.txt file.

Original comment by djmuhles...@gmail.com on 15 Sep 2009 at 6:12

GoogleCodeExporter commented 9 years ago
The above patch fixed this issue for me.

Original comment by dafr...@gmail.com on 23 Jul 2010 at 2:08