Skip to content

Commit 72ad0e4

Browse files
committed
Added conda recipe and installation instructions.
This recipe will be used to publish plotly.py to the plotly channel on anaconda cloud.
1 parent 93bcd69 commit 72ad0e4

File tree

3 files changed

+100
-0
lines changed

3 files changed

+100
-0
lines changed

Diff for: contributing.md

+29
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,35 @@ cd ./js
378378
npm publish --access public
379379
```
380380

381+
#### Publishing to the plotly conda channel
382+
After publishing to PyPI, update the `set version` number to match the PyPI
383+
version.
384+
385+
Compute the new SHA256 hash from the `sdist` package in the local
386+
`dist/` directory.
387+
388+
```
389+
$ shasum -a 256 dist/plotly-X.Y.Z.tar.gz
390+
cd301fff6...
391+
```
392+
393+
Make sure you have the `conda-build` and `anaconda-client` packages installed
394+
and then perform the conda build.
395+
396+
```
397+
$ conda build recipe/
398+
```
399+
400+
When conda-build returns successfully it will display the path to the new
401+
package.
402+
403+
Next run `anaconda login` and enter the credentials for the plotly anaconda
404+
channel.
405+
406+
Then run `anaconda upload /path/to/plotly-X.Y.Z.tar.bz2`
407+
408+
Run `anaconda logout`
409+
381410
#### Post announcement
382411
Post a simple announcement to the Plotly Python forum, with links to the
383412
README installation instructions and to the CHANGELOG.

Diff for: recipe/LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016-2017 Plotly, Inc
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

Diff for: recipe/meta.yaml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{% set version = "3.2.0a2" %}
2+
3+
package:
4+
name: plotly
5+
version: {{ version }}
6+
7+
source:
8+
url: https://pypi.io/packages/source/p/plotly/plotly-{{ version }}.tar.gz
9+
sha256: cd301fff68f8d375503754780e3df22f31a3c8cea26fe08046e6222ae15ae9db
10+
11+
build:
12+
number: 0
13+
noarch: python
14+
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv"
15+
16+
requirements:
17+
build:
18+
- python
19+
- pip
20+
run:
21+
- python
22+
- setuptools
23+
- decorator >=4.0.6
24+
- nbformat >=4.2
25+
- pytz
26+
- requests
27+
- retrying >=1.3.3
28+
- six
29+
30+
test:
31+
imports:
32+
- plotly
33+
34+
about:
35+
home: https://plot.ly/python/
36+
license: MIT
37+
license_file: '{{ environ["RECIPE_DIR"] }}/LICENSE.txt'
38+
summary: 'An interactive JavaScript-based visualization library for Python'
39+
description: |
40+
plotly.py is an interactive, open-source, and JavaScript-based graphing
41+
library for Python. Built on top of plotly.js, plotly.py is a high-level,
42+
declarative charting library that includes over 30 chart types,
43+
including scientific charts, 3D graphs, statistical charts, SVG maps,
44+
financial charts, and more.
45+
doc_url: https://plot.ly/python/
46+
dev_url: https://github.com/plotly/plotly.py
47+
48+
extra:
49+
recipe-maintainers:
50+
- jonmmease

0 commit comments

Comments
 (0)