Skip to content

bumping JS to 1.52pre #2038

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

Closed
wants to merge 2 commits into from
Closed

bumping JS to 1.52pre #2038

wants to merge 2 commits into from

Conversation

nicolaskruchten
Copy link
Contributor

No description provided.

@@ -35,7 +35,7 @@
"typescript": "~3.1.1"
},
"dependencies": {
"plotly.js": "^1.51.2",
"plotly.js": "https://64237-45646037-gh.circle-artifacts.com/0/plotly.js.tgz",
Copy link
Contributor

Choose a reason for hiding this comment

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

was this changed when running the setup.py or did you change it manually? I'm asking because I had first tried to change this line manually by giving a URL as here, but then when I ran npm install npm was throwing an error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

setup.py did this.

@emmanuelle
Copy link
Contributor

So the CI failure here is related to the name of the plotly.js version, I expect the test did not expect that we use something else than a release of plotly.js. We might want to fox this in the future if it becomes a pattern to work on pre-releases in the interest of time.

@emmanuelle
Copy link
Contributor

Percy changes correspond to the new zoom in/out modebar buttons for mapbox, so it's ok. The doc build CI job passed, so it will still be possible to deploy the doc even with the failing tests on the other jobs.

@emmanuelle
Copy link
Contributor

However, since failing CI builds are a pain, you might want to fix manually one of package.json or _plotlyjs_version.py so that they agree. The failing test is

@attr("nodev")
    def test_plotlyjs_version(self):
        path = os.path.join(packages_root, "javascript", "plotlywidget", "package.json")
        with open(path, "rt") as f:
            package_json = json.load(f)
            expected_version = package_json["dependencies"]["plotly.js"]
            if expected_version[0] == "^":
                expected_version = expected_version[1:]

        self.assertEqual(expected_version, plotly.offline.get_plotlyjs_version())

and indeed there are not the same.

@nicolaskruchten
Copy link
Contributor Author

OK well it's pretty easy to loosen the test so that it ignores this check when we're building from a circleci artifact.

@nicolaskruchten
Copy link
Contributor Author

Maybe not worth doing this time around, as 1.52 will come out very soon.

@emmanuelle
Copy link
Contributor

closed by #2047.

@emmanuelle emmanuelle closed this Jan 8, 2020
@nicolaskruchten nicolaskruchten deleted the js_1.52_pre branch June 19, 2020 16:15
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.

2 participants