Skip to content

Commit

Permalink
Merge pull request #301 from hakonanes/fix-300
Browse files Browse the repository at this point in the history
Fix release version links used by Binder and nbsphinx
  • Loading branch information
hakonanes authored Jan 22, 2021
2 parents 1bc6a9d + dac8c86 commit c934b0e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
4 changes: 3 additions & 1 deletion RELEASE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ How to make a new release of ``kikuchipy``
with `-rc.1` added to the version name, like v0.42.0-rc.1, merge the PR after
all checks pass, and publish an RC release off of the release branch. See that
it is made available via PyPI, download it with the `dev` dependencies, and
run the tests to make sure everything is as it should be.
run the tests to make sure everything is as it should be. Also check that
Binder can build the repository successfully by going to the Read the Docs PR
check in the RC PR above after the RC release.
- Create a release draft (tag) via the GitHub repo from the release branch with
the correct tag version name, e.g. v0.42.x and release title (see previous
releases). Add the new release notes from the changelog. Publish the release.
Expand Down
12 changes: 12 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
Contributors to each release are listed in alphabetical order by first name.
List entries are sorted in descending chronological order.

0.3.1 (2021-01-22)
==================

Contributors
------------
- Håkon Wiik Ånes

Fixed
-----
- Version link Binder uses to make the Jupyter Notebooks run in the browser.
(`#301 <https://github.com/pyxem/kikuchipy/pull/300>`_)

0.3.0 (2021-01-22)
==================

Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
if "dev" in version:
release_version = "master"
else:
release_version = version
release_version = "v" + version
# This is processed by Jinja2 and inserted before each notebook
nbsphinx_prolog = (
r"""
Expand Down
3 changes: 2 additions & 1 deletion doc/pattern_matching.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
"import kikuchipy as kp\n",
"\n",
"\n",
"s = kp.data.nickel_ebsd_large() # Use kp.load(\"data.h5\") to load your own data\n",
"# Use kp.load(\"data.h5\") to load your own data\n",
"s = kp.data.nickel_ebsd_large(allow_download=True) # External download\n",
"s"
]
},
Expand Down
2 changes: 1 addition & 1 deletion kikuchipy/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
name = "kikuchipy"
platforms = ["Linux", "MacOS X", "Windows"]
status = "Development"
version = "0.4.0dev"
version = "0.3.1"

0 comments on commit c934b0e

Please sign in to comment.