Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Build & slew of minor improvements (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andre-Rivet committed May 21, 2019
1 parent 2932409 commit dc67efc
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 259,534 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
. venv/bin/activate
pip install -e ./dash --quiet
cd dash-html-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
cd dash-renderer && npm install --ignore-scripts && npm run build && npm run build:dev && pip install -e . && cd ..
cd dash-renderer && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
- run:
name: Build
command: |
Expand Down
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
include dash_core_components/dash_core_components.min.js
include dash_core_components/dash_core_components.min.js.map
include dash_core_components/dash_core_components.dev.js
include dash_core_components/dash_core_components.dev.js.map
include dash_core_components/metadata.json
include dash_core_components/package-info.json
include dash_core_components/rc-slider@6.1.2.css
include dash_core_components/react-select@1.0.0-rc.3.min.css
include dash_core_components/plotly-*.min.js
Expand All @@ -11,3 +10,4 @@ include dash_core_components/react-virtualized@9.9.0.css
include dash_core_components/react-dates@12.3.0.css
include README.md
include LICENSE.txt
include package.json
11 changes: 8 additions & 3 deletions dash_core_components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@

from __future__ import print_function as _

import json
import os as _os
import sys as _sys
import dash as _dash

from .version import __version__
_basepath = _os.path.dirname(__file__)
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package-info.json'))
with open(_filepath) as f:
package = json.load(f)

package_name = package['name'].replace(' ', '_').replace('-', '_')
__version__ = package['version']

# Module imports trigger a dash.development import, need to check this first
if not hasattr(_dash, 'development'):
Expand Down Expand Up @@ -41,7 +48,6 @@
},
{
'relative_package_path': '{}.min.js'.format(__name__),
'dev_package_path': '{}.dev.js'.format(__name__),
'external_url': (
'https://unpkg.com/dash-core-components@{}'
'/dash_core_components/dash_core_components.min.js'
Expand All @@ -50,7 +56,6 @@
},
{
'relative_package_path': '{}.min.js.map'.format(__name__),
'dev_package_path': '{}.dev.js.map'.format(__name__),
'external_url': (
'https://unpkg.com/dash-core-components@{}'
'/dash_core_components/dash_core_components.min.js.map'
Expand Down
Loading

0 comments on commit dc67efc

Please sign in to comment.