Skip to content

Commit 1083274

Browse files
author
Xing Han Lu
authored
Merge pull request #12 from plotly/dev
[v0.0.2] Update docs, fix imports, fix unpkg links, move data files
2 parents fc992c5 + 1d6cc4e commit 1083274

File tree

14 files changed

+127
-50365
lines changed

14 files changed

+127
-50365
lines changed

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
# 0.0.1 - 2018-11-03
2-
First pre-release version of dash-cytoscape. Still WIP, so prepare to see it break 🔧
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
## [0.0.1] - 2018-11-03
10+
### Added
11+
- First pre-release version of dash-cytoscape. Still WIP, so prepare to see it break 🔧

CONTRIBUTING.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,35 @@ To publish or create a prerelease:
3030
2. Bump version numbers in `package.json`, update the `CHANGELOG.md`, and make a pull request
3131
3. Once the pull request is merged into master:
3232
4. Build
33-
```npm run build:all```
33+
```
34+
npm run build:all
35+
```
3436
5. Create distribution tarball
35-
```python setup.py sdist```
37+
```
38+
python setup.py sdist
39+
```
3640
6. Copy the tarball into a separate folder and try to install it and run the examples:
37-
```cp dist/dash-cytoscape-0.0.1.tar.gz ../temp
41+
```
42+
cp dist/dash-cytoscape-0.0.1.tar.gz ../temp
3843
cp usage.py ../temp
3944
cd ../temp
4045
source venv/bin/activate
4146
pip install dash-cytoscape-0.0.1.tar.gz
4247
python usage.py
4348
```
4449
7. If the examples work, then publish:
45-
```npm publish
50+
```
51+
npm publish
4652
twine upload dist/dash-cytoscape-0.0.1.tar.gz
4753
```
4854
8. Tag your release with git:
49-
```git tag -a 'v0.0.1' -m 'v0.0.1'
55+
```
56+
git tag -a 'v0.0.1' -m 'v0.0.1'
5057
git push origin master --follow-tags
5158
```
5259
9. Verify that the publish worked by installing it:
53-
```cd ../temp
60+
```
61+
cd ../temp
5462
pip install dash-cytoscape==0.0.1
5563
python usage.py
5664
```

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ $ git clone https://github.com/plotly/dash-cytoscape.git
6565
```
6666
2. Install the dependencies and build the code:
6767
```commandline
68-
$ npm i
69-
$ npm run build:all
68+
$ yarn
69+
$ yarn run build:all
7070
```
7171

7272
3. Install the library

dash_cytoscape/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{
3434
'relative_package_path': 'bundle.js',
3535
'external_url': (
36-
'https://unpkg.com/dash_cytoscape'
36+
'https://unpkg.com/dash-cytoscape@{}'
3737
'/' + package_name + '/bundle.js'
3838
).format(__version__),
3939
'namespace': package_name

dash_cytoscape/bundle.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_cytoscape/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lodash": "^4.17.11",
1818
"ramda": "^0.25.0",
1919
"react": "15.4.2",
20-
"react-cytoscapejs": "1.0.0",
20+
"react-cytoscapejs": "1.0.1",
2121
"react-dom": "15.4.2"
2222
},
2323
"devDependencies": {

demos/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@ The following demos were created in addition to the existing usage files:
55

66
## Requirements
77

8-
The examples here use the official dash-cytoscape distribution rather than the repository version. If you wish to use the local version, please move the demo into the parent folder, and run from there.
8+
The examples here use the PyPi release of dash-cytoscape currently installed, rather than the latest development version. If you wish to use the latter, please move your demo (and its associated data files) into the parent folder, and run from there.
99

1010
To run `usage-phylogeny.py`, you need to install biopython:
1111
```commandline
1212
$ pip install biopython
1313
```
1414

15+
## Data
16+
17+
The phylogeny data was taken from the [Biopython Github Repo](https://github.com/biopython/biopython/blob/master/Tests/PhyloXML/apaf.xml).
18+
19+
The sample network for social science was taken from the [Google Plus Ego dataset](http://snap.stanford.edu/data/) collected by the SNAP Group at Stanford.
20+
21+
All the other datasets were taken from the [Cytoscape.js Official Documentation Demos](https://github.com/cytoscape/cytoscape.js/tree/master/documentation/demos).
22+
1523
## Demos reproduced from Cytoscape.js
1624

1725
The demos in this folder were all originally written in JavaScript, using the Cytoscape.js library. They were rewritten in Python as extensive example of the Dash Cytoscape API.
File renamed without changes.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dash-cytoscape",
33
"version": "0.0.1",
4-
"description": "dash-cytoscape",
4+
"description": "A Component Library for Dash aimed at facilitating network visualization in Python, wrapped around Cytoscape.js",
55
"main": "build/index.js",
66
"scripts": {
77
"start": "webpack-serve ./webpack.serve.config.js --open",
@@ -12,12 +12,13 @@
1212
"build:all-dev": "npm run build:js-dev & npm run build:py"
1313
},
1414
"author": "The Plotly Team",
15+
"author-email": "[email protected]",
1516
"license": "MIT",
1617
"dependencies": {
1718
"lodash": "^4.17.11",
1819
"ramda": "^0.25.0",
1920
"react": "15.4.2",
20-
"react-cytoscapejs": "1.0.0",
21+
"react-cytoscapejs": "1.0.1",
2122
"react-dom": "15.4.2"
2223
},
2324
"devDependencies": {

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
name=package_name,
1313
version=package["version"],
1414
author=package['author'],
15+
author_email=package['author-email'],
1516
packages=[package_name],
1617
include_package_data=True,
1718
license=package['license'],
1819
description=package['description'] if 'description' in package else package_name,
1920
install_requires=[
20-
'colour==0.1.5'
21+
'dash',
22+
'dash-html-components',
23+
'dash_renderer',
2124
]
2225
)

0 commit comments

Comments
 (0)