diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 9d3e65f..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,52 +0,0 @@ -platform: - - x64 - -environment: - CONDA_RECIPE: conda - CONDA_VERSION: 3 - - matrix: - - CONDA_PY: 37 - CONDA_NPY: 111 - - CONDA_PY: 38 - CONDA_NPY: 116 - - CONDA_PY: 39 - CONDA_NPY: 119 - - -install: - - git clone https://github.com/OpenAlea/appveyor-ci.git - - cd appveyor-ci - - call install.bat - - conda config --prepend channels conda-forge - - conda config --prepend channels openalea3 - -before_build: - - call before_build.bat - -build_script: - - call build_script.bat - -after_build: - - call after_build.bat - -deploy: - provider: Script - -before_deploy: - - call before_deploy.bat - -deploy_script: - - call deploy_script.bat - -after_deploy: - - call after_deploy.bat - -on_success: - - call on_success.bat - -on_failure: - - call on_failure.bat - -on_finish: - - call on_finish.bat \ No newline at end of file diff --git a/conda/meta.yaml b/conda/meta.yaml index 4cf1c8f..a41b4a4 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -8,7 +8,6 @@ source: path: .. build: - noarch: python preserve_egg_dir: True number: 0 script: {{PYTHON}} setup.py install diff --git a/doc/environment.yml b/doc/environment.yml index 66e477c..0ea7983 100755 --- a/doc/environment.yml +++ b/doc/environment.yml @@ -8,4 +8,4 @@ dependencies: - sphinx_rtd_theme - openalea.strawberry - nbsphinx - - nbsphinx-link \ No newline at end of file + - nbsphinx-link diff --git a/doc/requirements.txt b/doc/requirements.txt deleted file mode 100644 index 0b5e76a..0000000 --- a/doc/requirements.txt +++ /dev/null @@ -1,19 +0,0 @@ - -python=3.8 -pandas -k3d -jupyter -voila -voila-vuetify -nodejs -cufflinks-py -ipyvuetify -qgrid -plotly -pyvis -matplotlib - -openalea.deploy -openalea.mtg -openalea.plantgl -openalea.lpy diff --git a/doc/source/conf.py b/doc/source/conf.py index a181b5f..4cbc3cf 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -22,7 +22,7 @@ author = 'Marc Labadie, Christophe Pradal, Gaetan Heidsieck' # The full version, including alpha/beta/rc tags -release = '1.1.1' +release = '1.2.0' # -- General configuration --------------------------------------------------- diff --git a/metainfo.ini b/metainfo.ini deleted file mode 100644 index d801a91..0000000 --- a/metainfo.ini +++ /dev/null @@ -1,18 +0,0 @@ - -[metainfo] -version = 1.0.0 -release = 1.0 -; must be in [openalea, vplants, alinea] -project = openalea -; the filename of the egg -name = OpenAlea.Strawberry -; default namespace -namespace = openalea -; package is going to be used by Sphinx to create the title -package = OpenAlea.Strawberry -description= Strawberry package for . -long_description= The Strawberry package is a typical package example to help developper to create their own package, compatible with OpenAlea standards. -authors= XXX -authors_email = XXX@XXX -url = http://openalea.gforge.inria.fr -license = Cecill-C diff --git a/setup.py b/setup.py index b9dbdae..b3248c2 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from setuptools import setup, find_namespace_packages name = 'OpenAlea.Strawberry' -version = '1.1.1' +version = '1.2.0' description = "Strawberry is a package for architecture analysis and 2D/3D reconstruction." long_description = open('README.md').read() @@ -57,5 +57,10 @@ package_data={'': ['*.csv', '*.mtg', '*.R*', '*.ipynb']}, # Declare scripts and wralea as entry_points (extensions) of your package - entry_points={'wralea': ['strawberry = openalea.strawberry_wralea']}, + entry_points={ + 'wralea': ['strawberry = openalea.strawberry_wralea'], + 'console_scripts': [ + 'strawberry = openalea.strawberry.application.run:main' # Define a console script to run your VoilĂ  app + ] + }, ) diff --git a/src/openalea/strawberry/application/run.py b/src/openalea/strawberry/application/run.py new file mode 100644 index 0000000..d9626a6 --- /dev/null +++ b/src/openalea/strawberry/application/run.py @@ -0,0 +1,26 @@ +from pathlib import Path +from voila.app import Voila +from voila.configuration import VoilaConfiguration + +def main(): + config = VoilaConfiguration() + + + + config.template = 'vuetify-default' + config.enable_nbextensions = True + config.file_whitelist = [r".*\.(png|jpg|gif|svg|mp4|avi|ogg|html|py|js)"] + + app = Voila() + app.voila_configuration = config + + nb_file = Path(__file__)/'..'/r"Strawberry Application.ipynb" + nb_file = str(nb_file.resolve()) + app.notebook_path=nb_file + app.setup_template_dirs() + # Launch your VoilĂ  app here + + app.start() + +if __name__ == "__main__": + main()