Skip to content

Commit

Permalink
chore: add changelog template
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Dec 10, 2023
1 parent f9f82f8 commit 855691e
Showing 1 changed file with 260 additions and 0 deletions.
260 changes: 260 additions & 0 deletions templates/CHANGELOG.md.j2
@@ -0,0 +1,260 @@
# Changelog

{% if context.history.unreleased | length > 0 %}
{# UNRELEASED #}
## Unreleased

{% for type_, commits in context.history.unreleased | dictsort %}
{% if type_ == "fix" %}
### πŸ› Bug Fixes
{% elif type_ == "chore" %}
### 🧰 Chores / Maintenance
{% elif type_ == "feature" %}
### πŸš€ Features
{% elif type_ == "documentation" %}
### πŸ“– Documentation
{% elif type_ == "style" %}
### ✏️ Formatting
{% elif type_ == "build" %}
### πŸ“¦οΈ Build
{% else %}
### Other
{% endif%}
{% for commit in commits %}{% if type_ != "unknown" %}
{% set msg = commit.message.rstrip() %}
{% set msg_no_ID = msg[msg.index(':')+2:] %}
* {{ msg_no_ID }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
{% else %}
* {{ msg }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
{% endif %}{% endfor %}{% endfor %}{% endif %}

{% for version, release in context.history.released.items() %}
{% if version in ["0.0.0", "0.0.1", "0.0.3", "0.0.4", "0.0.6"] %}
{% else %}
{# RELEASED #}
## {{ version.as_semver_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})
{% endif %}
{% if version in ["0.0.0", "0.0.1", "0.0.3", "0.0.4", "0.0.6"] %}
{% else %}
{% for type_, commits in release["elements"] | dictsort %}
{% if type_ == "fix" %}
### πŸ› Bug Fixes
{% elif type_ == "chore" %}
### 🧰 Chores / Maintenance
{% elif type_ == "feature" %}
### πŸš€ Features
{% elif type_ == "documentation" %}
### πŸ“– Documentation
{% elif type_ == "style" %}
### ✏️ Formatting
{% elif type_ == "build" %}
### πŸ“¦οΈ Build
{% else %}
### Other
{% endif%}

{% for commit in commits %}{% if type_ != "unknown" %}
{% set msg = commit.message.rstrip() %}
{% set msg_no_ID = msg[msg.index(':')+2:] %}
* {{ msg_no_ID }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
{% else %}
* {{ msg }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))

{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% endfor %}

## Unreleased

### πŸ’« Highlights
* dropped support for Python 3.8 in PR #140
* several new datasets!
* added `robust` option to get_min_max(), and mapping functions
* lots of new customization options (kwargs) for plotting functions
* several bug fixes

### πŸš€ Features

#### New datasets in `Fetch`
* Ice Mass Changes from Smith et al. 2020
* Basal Melt Rates from Adusumulli et al. 2020
* Faults and geologic unit shapefiles from GEOMAP (Cox et al. 2023)
* ADMAP-2 magnetics compilation
* ROSETTA-Ice airborne magnetics for the Ross Ice Shelf from Tinto et al. 2019
* BedMachine updated to v3

#### New functions in `regions`
* `get_regions()``
* list all available regions

### πŸ“– Documentation

### β›” Maintenance
* new URL for fetching ADMAP1 magnetic data
* added Harmonica as a dependency for ADMAP-2 geosoft grid conversion
* fix old binder links
* added `north_arrow()` function call to `plot_grd()` with keyword `add_north_arrow`
* fixed issues with clipping of grid for plotting colorbar histogram

### πŸ§‘β€πŸ€β€πŸ§‘ Contributors
[@mdtanker](https://github.com/mdtanker)

---

## Release v0.0.6

### πŸ’« Highlights
* Switched from Poetry to Setuptools
* Can install with conda
* Eased the dependecy constraints

### β›” Maintenance
* renamed various util functions

### πŸ§‘β€πŸ€β€πŸ§‘ Contributors
[@mdtanker](https://github.com/mdtanker)

---

## Release v0.0.4

### πŸ’« Highlights
* New mapping function `antarctic_plots.maps`
* Pre-set regions for commonly plotted areas
* Added Gallery examples
* Created a Binder environment
* More datasets included in `fetch`

### πŸš€ Features

#### New module `Maps`

* plot_grd

#### New datasets in `Fetch`

* bedmachine
* geothermal

#### New functions in `Utils`

* alter_region
* coherency
* grd_compare
* grd_trend
* make_grid
* raps
* set_proj

### πŸ“– Documentation

* Added `Tutorials` and `Gallery examples` to the docs
* Added tutorial for modules `fetch` and `region`

### β›” Maintenance
* Closed [Issue #6](https://github.com/mdtanker/antarctic_plots/issues/6): Create gallery examples
* Closed [Issue #9](https://github.com/mdtanker/antarctic_plots/issues/9): Code formating
* Closed [Issue #13](https://github.com/mdtanker/antarctic_plots/issues/13): Specify dependency version
* Closed [Issue #15](https://github.com/mdtanker/antarctic_plots/issues/15): Add inset map of Antarctica
* Closed [Issue #16](https://github.com/mdtanker/antarctic_plots/issues/16): Add Welcome Bot message to first time contributors
* Closed [Issue #20](https://github.com/mdtanker/antarctic_plots/issues/20): Add options to use the package online
* Closed [Issue #25](https://github.com/mdtanker/antarctic_plots/issues/25): Add GHF data to fetch module
* Closed [Issue #26](https://github.com/mdtanker/antarctic_plots/issues/26): Add BedMachine Data to fetch
* Closed [Issue #27](https://github.com/mdtanker/antarctic_plots/issues/27): fetch.bedmap2 issue with xarray
* Closed [Issue #28](https://github.com/mdtanker/antarctic_plots/issues/28): Set region strings for commonly plotted areas
* Closed [Issue #22](https://github.com/mdtanker/antarctic_plots/issues/22): Create Zenodo DOI

### πŸ§‘β€πŸ€β€πŸ§‘ Contributors

[@mdtanker](https://github.com/mdtanker)

---

## Release v0.0.3

### πŸ’« Highlights
* Finally succeeded in building the docs!

### πŸ“– Documentation

* Added `make build-docs` to execute and overwrite .ipynb to use in docs, since `PyGMT` can't be included in dependencies and therefore RTD's can't execute the .ipynb's.

### β›” Maintenance

* Closed [Issue #7](https://github.com/mdtanker/antarctic_plots/issues/7)

### πŸ§‘β€πŸ€β€πŸ§‘ Contributors

[@mdtanker](https://github.com/mdtanker)

---

## Release v0.0.2

### πŸ’« Highlights
* Created a [website for the documentation!](https://antarctic-plots.readthedocs.io/en/latest/installation.html#)

* Added `NumPy` formatted docstrings to the modules

* Wrote contribution guide, which outlines the unique case of publishing a package with dependencies which need C packages, like `PyGMT` (`GMT`) and `GeoPandas` (`GDAL`).

* Added `Tips` for generating shapefiles and picking start/end points

### πŸ“– Documentation

* Re-wrote docstrings to follow `NumPy` format.
* Added type-hints to docstrings.

### β›” Maintenance

* Closed [Issue #13](https://github.com/mdtanker/antarctic_plots/issues/13)
* Closed [Issue #9](https://github.com/mdtanker/antarctic_plots/issues/9)
* Closed [Issue #2](https://github.com/mdtanker/antarctic_plots/issues/2)


### πŸ§‘β€πŸ€β€πŸ§‘ Contributors

[@mdtanker](https://github.com/mdtanker)

---

## Release v0.0.1

### πŸ’« Highlights
* also probably should have been published to TestPyPI πŸ€¦β™‚οΈ

### πŸš€ Features

* Added a Makefile for streamlining development, publishing, and doc building.
* Added license notifications to all files.


### πŸ“– Documentation

* Used `Jupyter-Book` structure, with a table of contents (_toc.yml) and various markdown files.
* added `Sphinx.autodoc` to automatically include API documentation.


### β›” Maintenance

* Looks of issues with the Poetry -> Jupyter-Books -> Read the Docs workflow
* Poetry / RTD don't like `PyGMT` or `GeoPandas` since they both rely on C packages which can't be installed via pip (`GMT` and `GDAL`). Next release should fix this.


### πŸ§‘β€πŸ€β€πŸ§‘ Contributors

[@mdtanker](https://github.com/mdtanker)

---

## Release v0.0.0

* πŸŽ‰ **First release of Antarctic-plots** πŸŽ‰

* should have been published to TestPyPI πŸ€¦β™‚οΈ

### πŸ§‘β€πŸ€β€πŸ§‘ Contributors

[@mdtanker](https://github.com/mdtanker)

0 comments on commit 855691e

Please sign in to comment.