From 38e06d50371d7b66eaf14b8428b16e8530b8b464 Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Thu, 7 Jan 2016 12:54:13 -0600 Subject: [PATCH 1/3] create a conda skeleton --- bld.bat | 8 ++++++++ build.sh | 4 ++++ meta.yaml | 28 ++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 bld.bat create mode 100644 build.sh create mode 100644 meta.yaml diff --git a/bld.bat b/bld.bat new file mode 100644 index 00000000000..87b1481d740 --- /dev/null +++ b/bld.bat @@ -0,0 +1,8 @@ +"%PYTHON%" setup.py install +if errorlevel 1 exit 1 + +:: Add more build steps here, if they are necessary. + +:: See +:: http://docs.continuum.io/conda/build.html +:: for a list of environment variables that are set during the build process. diff --git a/build.sh b/build.sh new file mode 100644 index 00000000000..97b1e51cd4b --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +${PYTHON} setup.py install || exit 1; + diff --git a/meta.yaml b/meta.yaml new file mode 100644 index 00000000000..22e729730c2 --- /dev/null +++ b/meta.yaml @@ -0,0 +1,28 @@ +package: + name: plotly + version: "1.9.3" + +source: + git_url: https://github.com/plotly/plotly.py + +build: + number: 0 + +requirements: + build: + - python + - setuptools + - requests + - six + - pytz + run: + - python + - setuptools + - requests + - six + - pytz + +about: + home: https://plot.ly + license: MIT + summary: Python plotting library for collaborative, interactive, publication-quality graphs. From 6305c5bdf2751185bc18bc6c2a3523c1ff2b3f39 Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Thu, 7 Jan 2016 12:58:35 -0600 Subject: [PATCH 2/3] more skeletons for the skeleton gods --- build.sh | 7 ++++++- meta.yaml | 60 +++++++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 60 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 97b1e51cd4b..4d7fc032b8c 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,9 @@ #!/bin/bash -${PYTHON} setup.py install || exit 1; +$PYTHON setup.py install +# Add more build steps here, if they are necessary. + +# See +# http://docs.continuum.io/conda/build.html +# for a list of environment variables that are set during the build process. diff --git a/meta.yaml b/meta.yaml index 22e729730c2..d6cfb6f274a 100644 --- a/meta.yaml +++ b/meta.yaml @@ -3,10 +3,28 @@ package: version: "1.9.3" source: - git_url: https://github.com/plotly/plotly.py + fn: plotly-1.9.3.tar.gz + url: https://pypi.python.org/packages/source/p/plotly/plotly-1.9.3.tar.gz + md5: f40ac2d3f0b1212f59c9a74d8f44067a +# patches: + # List any patch files here + # - fix.patch -build: - number: 0 +# build: + # noarch_python: True + # preserve_egg_dir: True + # entry_points: + # Put any entry points (scripts to be generated automatically) here. The + # syntax is module:function. For example + # + # - plotly = plotly:main + # + # Would create an entry point called plotly that calls plotly.main() + + + # If this is a new build for the same version, increment the build + # number. If you do not include this key, it defaults to 0. + # number: 1 requirements: build: @@ -15,14 +33,44 @@ requirements: - requests - six - pytz + run: - python - - setuptools - requests - six - pytz +test: + # Python imports + imports: + - plotly + - plotly/graph_objs + - plotly/grid_objs + - plotly/matplotlylib + - plotly/matplotlylib/mplexporter + - plotly/matplotlylib/mplexporter/renderers + - plotly/offline + - plotly/plotly + - plotly/plotly/chunked_requests + - plotly/widgets + + # commands: + # You can put test commands to be run here. Use this to test that the + # entry points work. + + + # You can also put a file called run_test.py in the recipe that will be run + # at test time. + + # requires: + # Put any additional test requirements here. For example + # - nose + about: - home: https://plot.ly + home: https://plot.ly/python/ license: MIT - summary: Python plotting library for collaborative, interactive, publication-quality graphs. + summary: 'Python plotting library for collaborative, interactive, publication-quality graphs.' + +# See +# http://docs.continuum.io/conda/build.html for +# more information about meta.yaml From 9113aa85aab243d8e83a15eddad0dcc04f8dbe2f Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Thu, 7 Jan 2016 13:09:44 -0600 Subject: [PATCH 3/3] Trim out unneccessary comment boilerplate. --- meta.yaml | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/meta.yaml b/meta.yaml index d6cfb6f274a..be43d66b5b9 100644 --- a/meta.yaml +++ b/meta.yaml @@ -6,25 +6,10 @@ source: fn: plotly-1.9.3.tar.gz url: https://pypi.python.org/packages/source/p/plotly/plotly-1.9.3.tar.gz md5: f40ac2d3f0b1212f59c9a74d8f44067a -# patches: - # List any patch files here - # - fix.patch -# build: +build: # noarch_python: True - # preserve_egg_dir: True - # entry_points: - # Put any entry points (scripts to be generated automatically) here. The - # syntax is module:function. For example - # - # - plotly = plotly:main - # - # Would create an entry point called plotly that calls plotly.main() - - - # If this is a new build for the same version, increment the build - # number. If you do not include this key, it defaults to 0. - # number: 1 + number: 0 requirements: build: @@ -41,7 +26,6 @@ requirements: - pytz test: - # Python imports imports: - plotly - plotly/graph_objs @@ -54,23 +38,7 @@ test: - plotly/plotly/chunked_requests - plotly/widgets - # commands: - # You can put test commands to be run here. Use this to test that the - # entry points work. - - - # You can also put a file called run_test.py in the recipe that will be run - # at test time. - - # requires: - # Put any additional test requirements here. For example - # - nose - about: home: https://plot.ly/python/ license: MIT summary: 'Python plotting library for collaborative, interactive, publication-quality graphs.' - -# See -# http://docs.continuum.io/conda/build.html for -# more information about meta.yaml