From 6ee2d9406b5f37d83d8205402dac190b76447fdc Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 9 Dec 2015 08:45:41 +0100 Subject: [PATCH] [fix] make this damn setup.py accept my static files. --- MANIFEST.in | 4 +++- prosopopee/__init__.py | 0 prosopopee => prosopopee/prosopopee.py | 0 {static => prosopopee/static}/LICENSE | 0 {static => prosopopee/static}/README.md | 0 .../static}/css/baguetteBox.min.css | 0 {static => prosopopee/static}/css/style-page.css | 0 {static => prosopopee/static}/css/style.css | 0 {static => prosopopee/static}/img/logo.svg | 0 {static => prosopopee/static}/js/baguetteBox.min.js | 0 {templates => prosopopee/templates}/1-small.png | Bin {templates => prosopopee/templates}/1.png | Bin {templates => prosopopee/templates}/2-small.png | Bin {templates => prosopopee/templates}/2.png | Bin {templates => prosopopee/templates}/example.html | 0 .../templates}/gallery-index.html | 0 {templates => prosopopee/templates}/index.html | 0 .../templates}/page-example.html | 0 .../templates}/sections/bordered-picture.html | 0 .../templates}/sections/full-picture.html | 0 .../templates}/sections/pictures-group.html | 0 .../templates}/sections/text.html | 0 setup.py | 10 ++++++---- 23 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 prosopopee/__init__.py rename prosopopee => prosopopee/prosopopee.py (100%) mode change 100755 => 100644 rename {static => prosopopee/static}/LICENSE (100%) rename {static => prosopopee/static}/README.md (100%) rename {static => prosopopee/static}/css/baguetteBox.min.css (100%) rename {static => prosopopee/static}/css/style-page.css (100%) rename {static => prosopopee/static}/css/style.css (100%) rename {static => prosopopee/static}/img/logo.svg (100%) rename {static => prosopopee/static}/js/baguetteBox.min.js (100%) rename {templates => prosopopee/templates}/1-small.png (100%) rename {templates => prosopopee/templates}/1.png (100%) rename {templates => prosopopee/templates}/2-small.png (100%) rename {templates => prosopopee/templates}/2.png (100%) rename {templates => prosopopee/templates}/example.html (100%) rename {templates => prosopopee/templates}/gallery-index.html (100%) rename {templates => prosopopee/templates}/index.html (100%) rename {templates => prosopopee/templates}/page-example.html (100%) rename {templates => prosopopee/templates}/sections/bordered-picture.html (100%) rename {templates => prosopopee/templates}/sections/full-picture.html (100%) rename {templates => prosopopee/templates}/sections/pictures-group.html (100%) rename {templates => prosopopee/templates}/sections/text.html (100%) diff --git a/MANIFEST.in b/MANIFEST.in index 3477884..747ba0e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,3 @@ -include templates/* static/* +recursive-include templates * +recursive-include static * +include requirements.txt diff --git a/prosopopee/__init__.py b/prosopopee/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/prosopopee b/prosopopee/prosopopee.py old mode 100755 new mode 100644 similarity index 100% rename from prosopopee rename to prosopopee/prosopopee.py diff --git a/static/LICENSE b/prosopopee/static/LICENSE similarity index 100% rename from static/LICENSE rename to prosopopee/static/LICENSE diff --git a/static/README.md b/prosopopee/static/README.md similarity index 100% rename from static/README.md rename to prosopopee/static/README.md diff --git a/static/css/baguetteBox.min.css b/prosopopee/static/css/baguetteBox.min.css similarity index 100% rename from static/css/baguetteBox.min.css rename to prosopopee/static/css/baguetteBox.min.css diff --git a/static/css/style-page.css b/prosopopee/static/css/style-page.css similarity index 100% rename from static/css/style-page.css rename to prosopopee/static/css/style-page.css diff --git a/static/css/style.css b/prosopopee/static/css/style.css similarity index 100% rename from static/css/style.css rename to prosopopee/static/css/style.css diff --git a/static/img/logo.svg b/prosopopee/static/img/logo.svg similarity index 100% rename from static/img/logo.svg rename to prosopopee/static/img/logo.svg diff --git a/static/js/baguetteBox.min.js b/prosopopee/static/js/baguetteBox.min.js similarity index 100% rename from static/js/baguetteBox.min.js rename to prosopopee/static/js/baguetteBox.min.js diff --git a/templates/1-small.png b/prosopopee/templates/1-small.png similarity index 100% rename from templates/1-small.png rename to prosopopee/templates/1-small.png diff --git a/templates/1.png b/prosopopee/templates/1.png similarity index 100% rename from templates/1.png rename to prosopopee/templates/1.png diff --git a/templates/2-small.png b/prosopopee/templates/2-small.png similarity index 100% rename from templates/2-small.png rename to prosopopee/templates/2-small.png diff --git a/templates/2.png b/prosopopee/templates/2.png similarity index 100% rename from templates/2.png rename to prosopopee/templates/2.png diff --git a/templates/example.html b/prosopopee/templates/example.html similarity index 100% rename from templates/example.html rename to prosopopee/templates/example.html diff --git a/templates/gallery-index.html b/prosopopee/templates/gallery-index.html similarity index 100% rename from templates/gallery-index.html rename to prosopopee/templates/gallery-index.html diff --git a/templates/index.html b/prosopopee/templates/index.html similarity index 100% rename from templates/index.html rename to prosopopee/templates/index.html diff --git a/templates/page-example.html b/prosopopee/templates/page-example.html similarity index 100% rename from templates/page-example.html rename to prosopopee/templates/page-example.html diff --git a/templates/sections/bordered-picture.html b/prosopopee/templates/sections/bordered-picture.html similarity index 100% rename from templates/sections/bordered-picture.html rename to prosopopee/templates/sections/bordered-picture.html diff --git a/templates/sections/full-picture.html b/prosopopee/templates/sections/full-picture.html similarity index 100% rename from templates/sections/full-picture.html rename to prosopopee/templates/sections/full-picture.html diff --git a/templates/sections/pictures-group.html b/prosopopee/templates/sections/pictures-group.html similarity index 100% rename from templates/sections/pictures-group.html rename to prosopopee/templates/sections/pictures-group.html diff --git a/templates/sections/text.html b/prosopopee/templates/sections/text.html similarity index 100% rename from templates/sections/text.html rename to prosopopee/templates/sections/text.html diff --git a/setup.py b/setup.py index def42f6..010f71e 100644 --- a/setup.py +++ b/setup.py @@ -11,14 +11,16 @@ setup(name='prosopopee', author_email='cortex@worlddomination.be', url='https://github.com/Psycojoker/prosopopee', install_requires=open("./requirements.txt", "r").read().split(), - packages=[], + packages=['prosopopee'], py_modules=[], license= 'GPLv3+', - scripts=['prosopopee'], + scripts=[], + entry_points={ + 'console_scripts': ['prosopopee = prosopopee.prosopopee:main'] + }, keywords='', include_package_data=True, package_data={ - 'static': ['*.css', '*.js'], - 'templates': ['*.html'], + 'prosopopee': ['static/css/*', 'static/js/*', 'static/img/*', 'templates/*.html', 'templates/sections/*'], }, )