From 72ad0e4bf54bb8a06445d2ca55488ffc11c836a7 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Sun, 26 Aug 2018 07:40:13 -0400 Subject: [PATCH] Added conda recipe and installation instructions. This recipe will be used to publish plotly.py to the plotly channel on anaconda cloud. --- contributing.md | 29 +++++++++++++++++++++++++++ recipe/LICENSE.txt | 21 +++++++++++++++++++ recipe/meta.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 recipe/LICENSE.txt create mode 100644 recipe/meta.yaml diff --git a/contributing.md b/contributing.md index c938343b1d..e20550b2a0 100644 --- a/contributing.md +++ b/contributing.md @@ -378,6 +378,35 @@ cd ./js npm publish --access public ``` +#### Publishing to the plotly conda channel +After publishing to PyPI, update the `set version` number to match the PyPI +version. + +Compute the new SHA256 hash from the `sdist` package in the local +`dist/` directory. + +``` +$ shasum -a 256 dist/plotly-X.Y.Z.tar.gz +cd301fff6... +``` + +Make sure you have the `conda-build` and `anaconda-client` packages installed +and then perform the conda build. + +``` +$ conda build recipe/ +``` + +When conda-build returns successfully it will display the path to the new +package. + +Next run `anaconda login` and enter the credentials for the plotly anaconda +channel. + +Then run `anaconda upload /path/to/plotly-X.Y.Z.tar.bz2` + +Run `anaconda logout` + #### Post announcement Post a simple announcement to the Plotly Python forum, with links to the README installation instructions and to the CHANGELOG. diff --git a/recipe/LICENSE.txt b/recipe/LICENSE.txt new file mode 100644 index 0000000000..7c4610a4f7 --- /dev/null +++ b/recipe/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016-2017 Plotly, Inc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/recipe/meta.yaml b/recipe/meta.yaml new file mode 100644 index 0000000000..2b571cdae0 --- /dev/null +++ b/recipe/meta.yaml @@ -0,0 +1,50 @@ +{% set version = "3.2.0a2" %} + +package: + name: plotly + version: {{ version }} + +source: + url: https://pypi.io/packages/source/p/plotly/plotly-{{ version }}.tar.gz + sha256: cd301fff68f8d375503754780e3df22f31a3c8cea26fe08046e6222ae15ae9db + +build: + number: 0 + noarch: python + script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv" + +requirements: + build: + - python + - pip + run: + - python + - setuptools + - decorator >=4.0.6 + - nbformat >=4.2 + - pytz + - requests + - retrying >=1.3.3 + - six + +test: + imports: + - plotly + +about: + home: https://plot.ly/python/ + license: MIT + license_file: '{{ environ["RECIPE_DIR"] }}/LICENSE.txt' + summary: 'An interactive JavaScript-based visualization library for Python' + description: | + plotly.py is an interactive, open-source, and JavaScript-based graphing + library for Python. Built on top of plotly.js, plotly.py is a high-level, + declarative charting library that includes over 30 chart types, + including scientific charts, 3D graphs, statistical charts, SVG maps, + financial charts, and more. + doc_url: https://plot.ly/python/ + dev_url: https://github.com/plotly/plotly.py + +extra: + recipe-maintainers: + - jonmmease \ No newline at end of file