Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets #597 #881

Merged
merged 11 commits into from
Aug 26, 2019
Merged

Assets #597 #881

merged 11 commits into from
Aug 26, 2019

Conversation

byronz
Copy link
Contributor

@byronz byronz commented Aug 22, 2019

this PR is needed to continue wtih plotly/dash-core-components#597

mainly make the build process code more DRY, so the build has a clean abstraction pipeline defined in the base class.

@byronz byronz marked this pull request as ready for review August 22, 2019 02:50
@@ -27,14 +27,14 @@ def read_req_file(req_type):
long_description_content_type="text/markdown",
install_requires=read_req_file("install"),
extras_require={
"ci": read_req_file("ci"),
"dev": read_req_file("dev"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're changing ci to dev it means all projects pulling / installing dash explicitly in core will now fail. This PR needs siblings to update usage.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dcc, has been changed
I think another one is dash-docs

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we publicly documented install dash[ci]? would we be better off keeping it for one minor version as "ci": read_req_file("dev") and perhaps adding a deprecation notice somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, ci was mainly used by circleci setup, we did mention dash[testing] though

@@ -0,0 +1,179 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet Aug 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not fully structured thoughts but I feel tying ourselves even more to Python for code generation is an anti-pattern for Dash.

While this clean up is advantageous in the short term, if we truly want to support multiple environments and not expect, say, an R or xyz developer in the future to have an environment setup for generating the other (n-1) languages / platforms supported, we should try and do our build with the only mandatory environment & language Dash requires: NodeJS

I realize I'm late in this but I don't feel fully comfortable with the direction we are taking generation towards.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the concern here, but unless we can get rid of the entire dash/development in python code. the script is created for fixing the current problem, I had no intention to hijack the JS driven direction.

Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code cleanup looks good. As mentioned here: plotly/dash-core-components#611, we'll put usage in other repos on hold for now.

Would like to see sibling PRs that modify CI usage in table / dcc / html so as to use dev instead of ci for approval.

@byronz
Copy link
Contributor Author

byronz commented Aug 26, 2019

@Marc-Andre-Rivet @alexcjohnson I would like to have this merge first before I create other PRs in dcc, html, and table. so I don't need to refer to this particular branch and revert it back afterwards.

Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃

@Marc-Andre-Rivet Marc-Andre-Rivet self-requested a review August 26, 2019 18:47
@byronz byronz merged commit 556890e into dev Aug 26, 2019
@byronz byronz deleted the assets-#597 branch August 26, 2019 18:47
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this pull request May 28, 2021
HammadTheOne pushed a commit that referenced this pull request Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants