Skip to content

Commit 3def701

Browse files
Issue 235 - Fix regressions introduced to PyPi and NPM packaging (#237)
1 parent 91bb456 commit 3def701

File tree

7 files changed

+30
-26
lines changed

7 files changed

+30
-26
lines changed

Diff for: packages/dash-table/.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242

4343
- run:
4444
name: Run build:js
45-
command: npm run build:js-test
45+
command: npm run private::build:js-test
4646

4747
- run:
4848
name: Run build:py
49-
command: npm run build:py
49+
command: npm run private::build:py
5050

5151
- run:
5252
name: Run tests
@@ -76,7 +76,7 @@ jobs:
7676

7777
- run:
7878
name: Run build:js
79-
command: npm run build:js
79+
command: npm run private::build:js
8080

8181
- run:
8282
name: Run visual tests

Diff for: packages/dash-table/.config/webpack/base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = (preprocessor = {}, mode = 'development') => {
1616
},
1717
mode: mode,
1818
output: {
19-
path: path.resolve(__dirname, './../../lib'),
19+
path: path.resolve(__dirname, `./../../${dashLibraryName}`),
2020
filename: '[name].js',
2121
library: dashLibraryName,
2222
libraryTarget: 'umd'

Diff for: packages/dash-table/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [3.1.5] - 2018-11-09
6+
### Fixed
7+
- Fix python package regression [#235](https://github.com/plotly/dash-table/issues/235)
8+
59
## [3.1.4] - 2018-11-06
610
### Added
711
- New derived props for `selected_rows` [#147](https://github.com/plotly/dash-table/issues/147)

Diff for: packages/dash-table/MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include dash_table/bundle.js
22
include dash_table/metadata.json
3-
include dash_table/package.json
3+
include dash_table/package-info.json
44
include README.md
55
include package.json

Diff for: packages/dash-table/dash_table/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
_sys.exit(1)
1414

1515
_basepath = _os.path.dirname(__file__)
16-
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package.json'))
16+
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package-info.json'))
1717
with open(_filepath) as f:
1818
package = json.load(f)
1919

Diff for: packages/dash-table/dash_table/package.json renamed to packages/dash-table/dash_table/package-info.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"name": "dash-table",
3-
"version": "3.1.4",
3+
"version": "3.1.5",
44
"description": "Dash table",
5-
"main": "lib/bundle.js",
5+
"main": "dash_table/bundle.js",
66
"scripts": {
77
"preprivate::opentests": "run-s private::wait*",
88
"preprivate::runtests": "run-s private::wait*",
99
"private::build": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack --display-reasons --bail",
10-
"postprivate::build": "cp -R lib/* dash_table",
10+
"private::build:js": "run-s \"private::build -- --mode production\"",
11+
"private::build:js-dev": "run-s \"private::build -- --mode development\"",
12+
"private::build:js-test": "run-s \"private::build -- --config webpack.test.config.js\"",
13+
"private::build:js-test-watch": "run-s \"private::build -- --config webpack.test.config.js --watch\"",
14+
"private::build:py": "./extract-meta src/dash-table/DataTable.js > dash_table/metadata.json && cp package.json dash_table/package-info.json",
1115
"private::host_dash8081": "python tests/cypress/dash/v_be_page.py",
1216
"private::host_dash8082": "python tests/cypress/dash/v_copy_paste.py",
1317
"private::host_dash8083": "python tests/cypress/dash/v_fe_page.py",
@@ -21,16 +25,12 @@
2125
"private::opentests": "cypress open",
2226
"private::runtests": "cypress run --browser chrome",
2327
"build.watch": "webpack-dev-server --content-base dash_table --mode development",
24-
"build:js": "run-s \"private::build -- --mode production\"",
25-
"build:js-dev": "run-s \"private::build -- --mode development\"",
26-
"build:js-test": "run-s \"private::build -- --config webpack.test.config.js\"",
27-
"build:js-test-watch": "run-s \"private::build -- --config webpack.test.config.js --watch\"",
28-
"build:py": "./extract-meta src/dash-table/DataTable.js > dash_table/metadata.json && cp package.json dash_table",
28+
"build": "run-s private::build:js private::build:py",
2929
"lint": "run-s private::lint.js private::lint.ts",
3030
"test": "run-p --race private::host* private::runtests",
3131
"test.visual": "build-storybook && percy-storybook",
3232
"test.visual-local": "build-storybook",
33-
"test.watch": "run-p --race \"build:js-test-watch\" --race private::host* private::opentests"
33+
"test.watch": "run-p --race \"private::build:js-test-watch\" --race private::host* private::opentests"
3434
},
3535
"author": "Chris P <[email protected]",
3636
"license": "MIT",
@@ -81,7 +81,7 @@
8181
"webpack-preprocessor": "^0.1.12"
8282
},
8383
"files": [
84-
"/lib/bundle.js"
84+
"/dash_table/bundle*.js"
8585
],
8686
"peerDependencies": {
8787
"react": ">=0.14",

Diff for: packages/dash-table/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"name": "dash-table",
3-
"version": "3.1.4",
3+
"version": "3.1.5",
44
"description": "Dash table",
5-
"main": "lib/bundle.js",
5+
"main": "dash_table/bundle.js",
66
"scripts": {
77
"preprivate::opentests": "run-s private::wait*",
88
"preprivate::runtests": "run-s private::wait*",
99
"private::build": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack --display-reasons --bail",
10-
"postprivate::build": "cp -R lib/* dash_table",
10+
"private::build:js": "run-s \"private::build -- --mode production\"",
11+
"private::build:js-dev": "run-s \"private::build -- --mode development\"",
12+
"private::build:js-test": "run-s \"private::build -- --config webpack.test.config.js\"",
13+
"private::build:js-test-watch": "run-s \"private::build -- --config webpack.test.config.js --watch\"",
14+
"private::build:py": "./extract-meta src/dash-table/DataTable.js > dash_table/metadata.json && cp package.json dash_table/package-info.json",
1115
"private::host_dash8081": "python tests/cypress/dash/v_be_page.py",
1216
"private::host_dash8082": "python tests/cypress/dash/v_copy_paste.py",
1317
"private::host_dash8083": "python tests/cypress/dash/v_fe_page.py",
@@ -21,16 +25,12 @@
2125
"private::opentests": "cypress open",
2226
"private::runtests": "cypress run --browser chrome",
2327
"build.watch": "webpack-dev-server --content-base dash_table --mode development",
24-
"build:js": "run-s \"private::build -- --mode production\"",
25-
"build:js-dev": "run-s \"private::build -- --mode development\"",
26-
"build:js-test": "run-s \"private::build -- --config webpack.test.config.js\"",
27-
"build:js-test-watch": "run-s \"private::build -- --config webpack.test.config.js --watch\"",
28-
"build:py": "./extract-meta src/dash-table/DataTable.js > dash_table/metadata.json && cp package.json dash_table",
28+
"build": "run-s private::build:js private::build:py",
2929
"lint": "run-s private::lint.js private::lint.ts",
3030
"test": "run-p --race private::host* private::runtests",
3131
"test.visual": "build-storybook && percy-storybook",
3232
"test.visual-local": "build-storybook",
33-
"test.watch": "run-p --race \"build:js-test-watch\" --race private::host* private::opentests"
33+
"test.watch": "run-p --race \"private::build:js-test-watch\" --race private::host* private::opentests"
3434
},
3535
"author": "Chris P <[email protected]",
3636
"license": "MIT",
@@ -81,7 +81,7 @@
8181
"webpack-preprocessor": "^0.1.12"
8282
},
8383
"files": [
84-
"/lib/bundle.js"
84+
"/dash_table/bundle*.js"
8585
],
8686
"peerDependencies": {
8787
"react": ">=0.14",

0 commit comments

Comments
 (0)