Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .bumpversion.cfg

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:

- name: Bump version to new tag
run: |
python -m pip install bumpversion
bumpversion --new-version $GITHUB_REF_NAME --commit patch
python -m pip install bump-my-version
bump-my-version bump --new-version $GITHUB_REF_NAME --commit patch

- name: Push back changes to main and tag
run: |
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ keywords:
- uncertainty-quantification
- fusion-reactor
license: Apache-2.0
version: version: 0.1.0
version: 0.1.0
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ If you are adding new pages, make sure to update the listing in the [`mkdocs.yml

3. The [upload to pypi](https://pypi.org/project/imas2xarray) is triggered when a release is published and handled by [this workflow](https://github.com/duqtools/imas2xarray/actions/workflows/publish.yaml).

4. The [upload to zenodo](https://zenodo.org/record/FIXME) is triggered when a release is published.
4. The [upload to zenodo](https://zenodo.org/record/https://zenodo.org/doi/10.5281/zenodo.10256040) is triggered when a release is published.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/imas2xarray)](https://pypi.org/project/imas2xarray/)
[![PyPI](https://img.shields.io/pypi/v/imas2xarray.svg?style=flat)](https://pypi.org/project/imas2xarray/)
![Coverage](https://gist.githubusercontent.com/stefsmeets/f635ee4ac999ce969fa1d23a57e006ae/raw/covbadge.svg)
<!-- [![DOI](https://zenodo.org/badge/FIXME.svg)](https://zenodo.org/badge/latestdoi/FIXME) -->
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10256040.svg)](https://doi.org/10.5281/zenodo.10256040)

![imas2xarray banner](https://raw.githubusercontent.com/duqtools/imas2xarray/main/src/imas2xarray/data/logo.png)


# imas2xarray

**Imas2xarray** is a library that makes it as simple and intuitive as possible to load an IMAS dataset in HDF5 format into Python. There is no need to manually define the paths or fiddle with the different dimensions and long keys.
Expand Down
24 changes: 21 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ build-backend = "setuptools.build_meta"
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
[project]
name = "imas2xarray"
version = "version = "0.1.0""
description = "imas2xarray is a tool reading IMAS data in hdf5 format into xarray."
version = "0.1.0"
description = "Imas2xarray is a tool reading IMAS data in hdf5 format into xarray."
readme = "README.md"
requires-python = ">=3.9"
authors = [
Expand Down Expand Up @@ -52,7 +52,7 @@ changelog = "https://github.com/duqtools/imas2xarray/releases"

[project.optional-dependencies]
develop = [
"bump2version",
"bump-my-version",
"ruff",
"pre-commit",
"coverage[toml]",
Expand Down Expand Up @@ -166,3 +166,21 @@ profile = "black"
[tool.ruff.format]
quote-style = "single"
indent-style = "space"

[tool.bumpversion]
current_version = "0.1.0"

[[tool.bumpversion.files]]
filename = "src/imas2xarray/__init__.py"
search = "__version__ = '{current_version}'"
replace = "__version__ = '{new_version}'"

[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""

[[tool.bumpversion.files]]
filename = "CITATION.cff"
search = "version: {current_version}"
replace = "version: {new_version}"
2 changes: 1 addition & 1 deletion src/imas2xarray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

__author__ = 'Stef Smeets'
__email__ = 's.smeets@esciencecenter.nl'
__version__ = '__version__ = '0.1.0''
__version__ = '0.1.0'

__all__ = [
'H5Handle',
Expand Down