From 2740728918f4388700d2289893999cfc62f52ad0 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Tue, 10 Feb 2015 15:23:44 -0800 Subject: [PATCH 1/2] Add templates to package Without this, I think templates don't get bundled in the sdist $ tar tvzf dist/kotti_navigation-0.3dev-r0.tar.gz | grep template --- MANIFEST.in | 2 ++ setup.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..576303b --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include *.txt +recursive-include kotti_navigation *.css *.js *.pt diff --git a/setup.py b/setup.py index 59eda4f..5baeef2 100644 --- a/setup.py +++ b/setup.py @@ -34,6 +34,7 @@ def read(*rnames): url='http://pypi.python.org/pypi/kotti_navigation', license='BSD-derived (http://www.repoze.org/LICENSE.txt)', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), + package_data ={'kotti_navigation': ['templates/*.pt']}, include_package_data=True, zip_safe=False, install_requires=[ From c3e828c1f58e6a3f2841246e9da837ca789ac760 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Tue, 10 Feb 2015 15:29:37 -0800 Subject: [PATCH 2/2] Add kotti_navigation/locale/__init__.py to guarantee that `locale` directory gets created. --- kotti_navigation/locale/__init__.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 kotti_navigation/locale/__init__.py diff --git a/kotti_navigation/locale/__init__.py b/kotti_navigation/locale/__init__.py new file mode 100644 index 0000000..8244172 --- /dev/null +++ b/kotti_navigation/locale/__init__.py @@ -0,0 +1 @@ +# Just so that locale directory gets packaged and created on installation