Skip to content

Commit 6fbdc63

Browse files
committed
Dont scope package to organization
1 parent a3ed5b3 commit 6fbdc63

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,7 @@ repository, and push it to github. A github action will build and publish the py
113113
The components are currently published in the test index, so you'll need to specify the url of
114114
the index when you install the package
115115
`pip install --index-url https://test.pypi.org/simple/ dash-mp-components`
116+
117+
118+
The npm package is NOT scoped to materialsProject org.
119+
Dash does not build correctly component

dash_mp_components/__init__.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
from ._imports_ import __all__
1212

1313
if not hasattr(_dash, 'development'):
14-
print('Dash was not successfully imported. '
15-
'Make sure you don\'t have a file '
16-
'named \n"dash.py" in your current directory.', file=_sys.stderr)
14+
print(
15+
'Dash was not successfully imported. '
16+
'Make sure you don\'t have a file '
17+
'named \n"dash.py" in your current directory.',
18+
file=_sys.stderr)
1719
_sys.exit(1)
1820

1921
_basepath = _os.path.dirname(__file__)
@@ -28,13 +30,17 @@
2830

2931
_this_module = _sys.modules[__name__]
3032

33+
print(package_name)
3134

3235
_js_dist = [
3336
{
34-
'relative_package_path': 'dash_mp_components.min.js',
35-
'external_url': 'https://unpkg.com/{0}@{2}/{1}/{1}.min.js'.format(
37+
'relative_package_path':
38+
'dash_mp_components.min.js',
39+
'external_url':
40+
'https://unpkg.com/{0}@{2}/{1}/{1}.min.js'.format(
3641
package_name, __name__, __version__),
37-
'namespace': package_name
42+
'namespace':
43+
package_name
3844
},
3945
#{
4046
# 'relative_package_path': 'dash_mp_components.min.js.map',
@@ -46,7 +52,6 @@
4652

4753
_css_dist = []
4854

49-
5055
for _component in __all__:
5156
setattr(locals()[_component], '_js_dist', _js_dist)
5257
setattr(locals()[_component], '_css_dist', _css_dist)

dash_mp_components/package-info.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,8 @@
7777
"hooks": {
7878
"pre-commit": "pretty-quick --staged"
7979
}
80+
},
81+
"publishConfig": {
82+
"access": "public"
8083
}
8184
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@materialsproject/dash_mp_components",
2+
"name": "dash_mp_components",
33
"version": "0.0.22",
44
"description": "Dash components for the Materials Project",
55
"repository": {

0 commit comments

Comments
 (0)