Skip to content

Commit fae2e7d

Browse files
authored
Prepare release (#35)
* add a warning about the package status * add a release guide * fill in the release date in whats-new.rst * update the release guide to mention the build CI
1 parent 257d51a commit fae2e7d

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

HOW_TO_RELEASE.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Release process
2+
===============
3+
1. the release happens from `master` so make sure it is up-to-date:
4+
5+
.. code:: sh
6+
7+
git pull origin master
8+
9+
2. look at `whats-new.rst` and make sure it is complete and with
10+
references to issues and pull requests
11+
12+
3. open and merge a pull request with these changes and the filled in release date
13+
14+
4. run the test suite
15+
16+
5. check that the documentation is building
17+
18+
6. Commit the release:
19+
20+
.. code:: sh
21+
22+
git commit --allow-empty -am "Release v0.X.Y"
23+
24+
7. Tag the release and push to master:
25+
26+
.. code:: sh
27+
28+
git tag -a v0.X.Y -m "v0.X.Y"
29+
git push origin --tags
30+
31+
8. Draft a release for the new tag on github. A CI will pick that up, build the project
32+
and push to PyPI. Be careful, this can't be undone.
33+
34+
9. Update stable:
35+
36+
.. code:: sh
37+
38+
git checkout stable
39+
git merge v0.X.Y
40+
git push origin stable
41+
42+
10. Make sure readthedocs builds both `stable` and the new tag
43+
44+
11. Add a new section to `whats-new.rst` and push directly to master

docs/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ A convenience wrapper for using `pint`_ in `xarray`_ objects.
55
.. _pint: https://pint.readthedocs.io/en/stable
66
.. _xarray: https://xarray.pydata.org/en/stable
77

8+
.. warning::
9+
10+
This package is experimental, and new versions might introduce backwards incompatible
11+
changes.
12+
813
Documentation
914
-------------
1015

docs/whats-new.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
What's new
22
==========
33

4-
0.1 (*unreleased*)
5-
------------------
4+
0.1 (October 26 2020)
5+
---------------------
66
- add initial draft of documentation (:pull:`13`, :pull:`20`)
77
- implement :py:meth:`DataArray.pint.to` and :py:meth:`Dataset.pint.to`
88
(:pull:`11`)

0 commit comments

Comments
 (0)