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

Build & slew of minor improvements #555

Merged
merged 9 commits into from
May 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
include dash_core_components/[email protected]
include dash_core_components/plotly-*.min.js
Expand All @@ -11,3 +10,4 @@ include dash_core_components/[email protected]
include dash_core_components/[email protected]
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