Skip to content

Commit

Permalink
Added conda recipe and installation instructions.
Browse files Browse the repository at this point in the history
This recipe will be used to publish plotly.py to the plotly
channel on anaconda cloud.
  • Loading branch information
jonmmease committed Aug 26, 2018
1 parent 93bcd69 commit 72ad0e4
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
29 changes: 29 additions & 0 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions recipe/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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.
50 changes: 50 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 72ad0e4

Please sign in to comment.