-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from plotly/dev
Release 1.3.0
- Loading branch information
Showing
118 changed files
with
703 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,3 @@ CI: | |
enhancement: | ||
- "src/*.jl" | ||
- "./*" | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,35 @@ | ||
name: Lint Markdown | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '12.x' | ||
- run: npm install -g markdownlint-cli@0.23.2 | ||
- run: markdownlint '**/*.md' --ignore node_modules | ||
node-version: '18' | ||
- name: "Lint markdown files" | ||
run: | | ||
npm install -g markdownlint-cli | ||
markdownlint '**/*.md' --ignore-path=.gitignore | ||
- name: "No trailing whitespaces at EOLs" | ||
run: | | ||
EXIT_CODE=0 | ||
git --no-pager grep --full-name -I -n -e ' $' . && EXIT_CODE=1 | ||
exit $EXIT_CODE | ||
- name: "No tab characters" | ||
run: | | ||
EXIT_CODE=0 | ||
git --no-pager grep --full-name -I -n -P '\t' . && EXIT_CODE=1 | ||
exit $EXIT_CODE | ||
- name: "Newline at EOF" | ||
run: | | ||
EXIT_CODE=0 | ||
for f in $(git --no-pager grep --full-name -I -l ''); do | ||
tail -c1 "$f" | read -r _ || echo "$f" | ||
tail -c1 "$f" | read -r _ || EXIT_CODE=1 | ||
done | ||
exit $EXIT_CODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ docs/build | |
venv | ||
*.pyc | ||
tmp | ||
gen_resources/build | ||
gen_resources/build | ||
dash-main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ MD026: false | |
|
||
# MD032 Lists should be surrounded by blank lines | ||
MD032: false | ||
|
||
# MD033 Inline HTML | ||
MD033: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[dash_resources] | ||
git-tree-sha1 = "c857e355d2c21dfc458fb315371431dda2506109" | ||
git-tree-sha1 = "cf73063fdfc374bc98925f87ac967051cdee66e5" | ||
|
||
[[dash_resources.download]] | ||
sha256 = "4ff3910a8ff1f5420784397cfc6ad80341bbe03f1010eab38dcb9b8ce2423310" | ||
url = "https://github.com/plotly/DashCoreResources/releases/download/v2.0.0+0/DashCoreResources.v2.0.0.tar.gz" | ||
sha256 = "c0fda20e816034b8f97f779af8b3081d3578164649d9ff6c21a8146d4af52d96" | ||
url = "https://github.com/plotly/DashCoreResources/releases/download/v2.10.2+0/DashCoreResources.v2.10.2.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
# Contributor Guide | ||
|
||
## Git | ||
|
||
We use the `dev` branch for development. All feature branches should be based | ||
off `dev`. | ||
|
||
The `master` branch corresponds to the latest release. We deploy to [Julia | ||
General Registry][jgr] and `git tag -a` off `master`. | ||
|
||
## Running the unit tests (aka Julia tests) | ||
|
||
```sh | ||
git clone git@github.com:plotly/Dash.jl.git | ||
cd Dash.jl | ||
julia | ||
``` | ||
|
||
```jl | ||
julia> import Pkg | ||
julia> Pkg.activate(".") | ||
julia> Pkg.instantiate() | ||
julia> Pkg.update() | ||
julia> Pkg.test() | ||
``` | ||
|
||
To run the unit tests for multiple versions of Julia, we recommend using [`juliaup`][juliaup]. | ||
|
||
## Running the integration tests | ||
|
||
The integration tests make use of the [`dash.testing`][testing] module part of | ||
the Python version of dash. | ||
|
||
Instructions on how to install the required system dependencies can be found | ||
in the [dash Contributor Guide][dash-cg]. | ||
|
||
Then, | ||
|
||
```sh | ||
cd Dash.jl | ||
git clone --depth 1 https://github.com/plotly/dash.git -b dev dash-main | ||
python3 -m venv venv | ||
pip install --upgrade pip wheel | ||
cd dash-main && pip install -e .[ci,dev,testing] && cd ..dash | ||
pytest --headless --nopercyfinalize --percy-assets=test/assets/ test/integration/ | ||
``` | ||
|
||
Alternatively, one can run the integration tests using the same Docker | ||
image as for our CircleCI test runs. See the [Docker image guide][docker-test] | ||
for the details. | ||
|
||
## Updating the resources | ||
|
||
See the [Generate Dash.jl artifacts][resources]. | ||
|
||
## Updating the CircleCI Docker image | ||
|
||
See the [Docker image guide][docker-update]. | ||
|
||
## Code Style | ||
|
||
- indent with 4 spaces (no tabs), | ||
- no whitespaces at EOLs, | ||
- add a single newline at EOFs. | ||
|
||
See the [`lint.yml` workflow][lint] for the details. | ||
|
||
## Making a release | ||
|
||
**Please follow the steps in order!** For example, running `git tag -a` before | ||
`@JuliaRegistrator register` will lead to a failed release! | ||
|
||
In the following steps, note that "X.Y.Z" refers to the new version we are | ||
releasing. | ||
|
||
### step 1 | ||
|
||
Make sure the [unit tests][jltest] and [CircleCI integration tests][circlecI] | ||
are passing. | ||
|
||
### step 2 | ||
|
||
Make a [PR][compare] with `master` as the _base_ branch and `dev` as _compare_ branch. | ||
|
||
For consistency, name the PR: "Release X.Y.Z" | ||
|
||
### step 3 | ||
|
||
Bump the `version` field in the `Project.toml` (following [semver][semver]) and then | ||
|
||
```sh | ||
git commit -m "X.Y.Z" | ||
``` | ||
|
||
**N.B.** use `X.Y.Z` not `vX.Y.Z` in the commit message, the leading `v` is | ||
reserved for git tags. | ||
|
||
### step 4 | ||
|
||
Wait for approval and then merge the PR onto `master`. | ||
|
||
### step 5 | ||
|
||
Navigate on GitHub to the merge commit from the `master` branch e.g. this | ||
[one][ex-commit] and then add the following comment: | ||
|
||
```sh | ||
@JuliaRegistrator register branch=master | ||
``` | ||
|
||
which tells the [Julia Registrator][registrator] to create a PR to the | ||
[General Registry][jgr] e.g. this [one][ex-jgr-pr]. | ||
|
||
### step 6 | ||
|
||
Wait for the Julia Registry PR to be merged. If things go well, this should be | ||
automatic! | ||
|
||
### step 7 | ||
|
||
Off `master`, create and push a new git tag with: | ||
|
||
```sh | ||
git checkout master | ||
git tag -a vX.Y.Z # N.B. leading `v` | ||
git push --tags | ||
``` | ||
|
||
### step 8 | ||
|
||
Go the [release page][releases] and create a new release, | ||
name it "Version X.Y.Z" for consistency and fill out sections: | ||
|
||
- _What's Changed_, which should include items for all the PRs merged since the last release | ||
- _New Contributor_, which should include mention of all the first-time contributors | ||
|
||
finally, place a [GitHub compare link][compare] between the last release and X.Y.Z | ||
e.g. this [one][ex-diff]. | ||
|
||
### step 9 | ||
|
||
you are done :tada: | ||
|
||
[jgr]: https://github.com/JuliaRegistries/General | ||
[juliaup]: https://github.com/JuliaLang/juliaup | ||
[testing]: https://dash.plotly.com/testing#end-to-end-tests | ||
[dash-cg]: https://github.com/plotly/dash/blob/dev/CONTRIBUTING.md#tests | ||
[resources]: ./gen_resources/README.md | ||
[docker-test]: ./build/README.md#local-usage | ||
[docker-update]: ./build/README.md#how-to-update-the-docker-image | ||
[lint]: ./.github/workflows/lint.yml | ||
[jltest]: https://github.com/plotly/Dash.jl/actions/workflows/jl_test.yml?query=branch%3Adev | ||
[circlecI]: https://app.circleci.com/pipelines/github/plotly/Dash.jl?branch=dev | ||
[semver]: https://pkgdocs.julialang.org/v1/toml-files/#The-version-field | ||
[registrator]: https://github.com/JuliaRegistries/Registrator.jl | ||
[releases]: https://github.com/plotly/Dash.jl/releases | ||
[compare]: https://github.com/plotly/Dash.jl/compare/ | ||
[ex-commit]: https://github.com/plotly/Dash.jl/commit/5ec76d9d3360f370097937efd06e5de5a6025888 | ||
[ex-jgr-pr]: https://github.com/JuliaRegistries/General/pull/77586 | ||
[ex-diff]: https://github.com/plotly/Dash.jl/compare/v1.1.2...v1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.