Skip to content

Commit 1812577

Browse files
rpkylexhlulu
andauthored
Bump Dash Cytoscape for Python to v0.3.0 (#139)
* chore: use build:backends * chore: ver => 0.3.0; master already updated * chore: update CHANGELOG.md * Change the package.json loaded in setup.py * Remove old package.json * Add more directories to npmignore Co-authored-by: xhlulu <[email protected]>
1 parent 9dc2efc commit 1812577

File tree

5 files changed

+22
-13
lines changed

5 files changed

+22
-13
lines changed

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ venv
2424
.travis.yml
2525
CHANGELOG.md
2626
README.md
27+
demos
28+
*__pycache__*
29+
build
30+
.vscode
31+
tests
32+
dist
33+
usage*
34+
.circleci
35+
.github

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased]
7+
## [0.3.0] - 2021-05-19
8+
9+
### Added
10+
* Contributed initial build of Julia package.
11+
* R package now includes an example application for `cytoCytoscape`.
812

913
### Changed
1014
* Dash has been upgraded to 1.* in requirements.txt and tests/requirements.txt (#123)
@@ -15,7 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1519
### Fixed
1620
* Various security fixes
1721

18-
## [0.2.0] - 20120-07-09
22+
## [0.2.0] - 2020-07-09
1923

2024
### Added
2125
* Contributed initial build of R package.

dash_cytoscape/package.json renamed to dash_cytoscape/package-info.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-cytoscape",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "A Component Library for Dash aimed at facilitating network visualization in Python, wrapped around Cytoscape.js",
55
"repository": {
66
"type": "git",
@@ -21,10 +21,8 @@
2121
"build:js-dev-extra": "webpack --config webpack.dev.extra.config.js",
2222
"build:js-extra": "webpack --config webpack.prod.extra.config.js",
2323
"build:js-all": "npm run build:js && npm run build:js-dev && npm run build:js-dev-extra && npm run build:js-extra",
24-
"build:py": "dash-generate-components ./src/lib/components dash_cytoscape",
25-
"build:py-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:py)",
26-
"build:r": "dash-generate-components ./src/lib/components dash_cytoscape --r-prefix='cyto'",
27-
"build:all": "npm run build:js-all && npm run build:py",
24+
"build:backends": "dash-generate-components ./src/lib/components dash_cytoscape -p package-info.json --r-prefix 'cyto' --jl-prefix 'cyto'",
25+
"build:all": "npm run build:js-all && npm run build:backends",
2826
"build:all-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:all)"
2927
},
3028
"author": "The Plotly Team <[email protected]>",

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-cytoscape",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "A Component Library for Dash aimed at facilitating network visualization in Python, wrapped around Cytoscape.js",
55
"repository": {
66
"type": "git",
@@ -21,10 +21,8 @@
2121
"build:js-dev-extra": "webpack --config webpack.dev.extra.config.js",
2222
"build:js-extra": "webpack --config webpack.prod.extra.config.js",
2323
"build:js-all": "npm run build:js && npm run build:js-dev && npm run build:js-dev-extra && npm run build:js-extra",
24-
"build:py": "dash-generate-components ./src/lib/components dash_cytoscape",
25-
"build:py-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:py)",
26-
"build:r": "dash-generate-components ./src/lib/components dash_cytoscape --r-prefix='cyto'",
27-
"build:all": "npm run build:js-all && npm run build:py",
24+
"build:backends": "dash-generate-components ./src/lib/components dash_cytoscape -p package-info.json --r-prefix 'cyto' --jl-prefix 'cyto'",
25+
"build:all": "npm run build:js-all && npm run build:backends",
2826
"build:all-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:all)"
2927
},
3028
"author": "The Plotly Team <[email protected]>",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup, find_packages
55

66

7-
with open(os.path.join('dash_cytoscape', 'package.json')) as f:
7+
with open('package.json') as f:
88
package = json.load(f)
99

1010
package_name = package["name"].replace(" ", "_").replace("-", "_")

0 commit comments

Comments
 (0)