Skip to content

Commit 2aafc20

Browse files
committed
Add minimal release pipeline
1 parent f831ec3 commit 2aafc20

File tree

5 files changed

+123
-0
lines changed

5 files changed

+123
-0
lines changed

.github/workflows/release.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release-pypi:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
run: git fetch --tags
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.9
20+
21+
- name: Install dependencies
22+
run: |
23+
python --version
24+
pip install -U build
25+
python -m build
26+
- name: Publish package
27+
uses: pypa/gh-action-pypi-publish@release/v1
28+
with:
29+
user: __token__
30+
password: ${{ secrets.PYPI_TOKEN }}
31+
repository_url: https://test.pypi.org/legacy/
32+
release-github:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v2
37+
- name: Release
38+
uses: softprops/action-gh-release@v1
39+
with:
40+
body_path: ${{ github.workspace }}/docs/release-notes/v1.1.rst
41+
prerelease: contains(github.ref_name, "rc")
42+

dev/release.py

Whitespace-only changes.

docs/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This is the documentation for gp_lts_workflow.
77
:maxdepth: 2
88

99
gp_lts_workflow/index.rst
10+
release-notes/index.rst
1011

1112
.. note:: The layout of this directory is simply a suggestion. To follow
1213
traditional practice, do *not* edit this page, but instead place

docs/release-notes/index.rst

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.. _release_notes:
2+
3+
=============
4+
Release notes
5+
=============
6+
7+
This is the list of changes to Gammapy between each release.
8+
9+
Version 1.1
10+
-----------
11+
12+
.. toctree::
13+
:maxdepth: 2
14+
15+
v1.1

docs/release-notes/v1.1.rst

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
.. _gammapy_0p20p1_release:
2+
3+
0.20.1 (June 16th, 2022)
4+
------------------------
5+
6+
Summary
7+
~~~~~~~
8+
9+
- Released June 17th, 2022
10+
- 10 contributors
11+
- 21 pull requests (not all listed below)
12+
13+
What's new?
14+
~~~~~~~~~~~
15+
16+
This release is a bug fix for v0.20. It corrects several issues that were recently reported and
17+
improves the documentation .
18+
19+
Data with `Background2D` IRFs were not handled correctly by the `MapDatasetMaker` in v0.20.
20+
This is now corrected.
21+
22+
Error bars in spectral excess plots were not correctly computed which resulted in inconsistent
23+
displays between excess and residual panels. The correct excess error is now computed.
24+
25+
Spectral extraction with point-like IRFs can fail is some cases where no counts are found within the
26+
radmax extension. This is due to an inconsistent behavior of the `PointSkyRegion.contains` method.
27+
A patch has been introduced to correct for that before this is fixed in the `regions` package.
28+
29+
The new `Observation.peek()` methods no longer returns empty panels when some IRF are not available.
30+
31+
Some issues affecting the `SafeMaskMaker` have been corrected as well as a bug of the
32+
`ExcessMapEstimator` appearing when the input `Dataset` had not mask defined.
33+
34+
The folder structure of the documentation has been updated to closely follow the documentation
35+
structure. This corrects some inconsistencies appearing in the lateral table of contents both in
36+
the main documentation and the tutorial pages.
37+
38+
Contributors
39+
~~~~~~~~~~~~
40+
41+
- Mathieu de Bony
42+
- Axel Donath
43+
- Luca Giunti
44+
- Bruno Khelifi
45+
- Maximilian Nöthe
46+
- Laura Olivera-Nieto
47+
- Fabio Pintore
48+
- Quentin Rémy
49+
- Atreyee Sinha
50+
- Régis Terrier
51+
52+
Pull Requests
53+
~~~~~~~~~~~~~
54+
55+
This list is incomplete. Small improvements and bug fixes are not listed here.
56+
57+
- [#3990] Restructure docs folder (Axel Donath)
58+
- [#3988] Fix issue [#3983] (Laura Olivera-Nieto)
59+
- [#3987] Fix the SafeMaskMaker (Bruno Khelifi)
60+
- [#3986] Fix bug in RegionNDMap.fill_events with PointSkyRegion (Régis Terrier)
61+
- [#3979] Fix inconsistency between NMCID and number of MID* keywords in MapDatasetEventSampler (Fabio Pintore)
62+
- [#3975] Fix error bars on plot_excess method os SpectrumDataset(OnOff) (Mathieu de Bony)
63+
- [#3966] Adapt Observation.peek according to available hdus (Atreyee Sinha)
64+
- [#3959] Correct make_map_background_irf bug with Background2D (Régis Terrier)
65+
- [#3948] Load all available HDUs in DataStore.obs, not only the required_hdus (Maximilian Nöthe)

0 commit comments

Comments
 (0)