ome / omero-web-apps-examples

Example Setup for Web Apps
1 stars 4 forks source link

Add MANIFEST.in #9

Closed will-moore closed 1 year ago

will-moore commented 2 years ago

Add missing MANIFEST.in, similar to other webapps, required to include templates etc in the python build. See https://forum.image.sc/t/omero-web-app-development/67512

To test:

$ pip install git+https://github.com/will-moore/omero-web-apps-examples.git@manifest#subdirectory=minimal-webapp
$ pip show minimal-webapp

Then check that path/to/site-packages/minimal_webapp should contain minimal_webapp/templates/minimal_webapp/index.html

jburel commented 2 years ago

With and without this PR

ls  /Users/jmarie/opt/anaconda3/envs/test_manifest/lib/python3.8/site-packages/minimal_webapp/                        
__init__.py __pycache__ urls.py     views.py

i.e. no templates folder

will-moore commented 1 year ago

Just tested

pip install git+https://github.com/will-moore/omero-web-apps-examples.git@manifest#subdirectory=minimal-webapp

Same result as @jburel -

ls /Users/wmoore/opt/anaconda3/envs/omeroweb2/lib/python3.9/site-packages/minimal_webapp/
__init__.py __pycache__ urls.py     views.py

No templates folder.