Skip to content

Commit

Permalink
🚀 4.5.0 release (#695)
Browse files Browse the repository at this point in the history
* bump rc0 version

* reintroduce on push to trigger publish

* udpate

* update

* test

* reverse

* test

* test

* test

* test

* test

* test

* reverse

* add push

* update versions

* bump release version

---------

Co-authored-by: Boisselet Alexandre (IFAT DC ATV SC D TE2) <Alexandre.Boisselet@infineon.com>
  • Loading branch information
Alexboiboi and Boisselet Alexandre (IFAT DC ATV SC D TE2) committed Dec 13, 2023
1 parent b3619b8 commit e35b724
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Python package

on: [pull_request]
on: [push, pull_request]

concurrency:
group: check-${{ github.ref }}
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
steps:
- name: Setup headless display
uses: pyvista/setup-headless-display-action@v2
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup python for test ${{ matrix.py }}
Expand All @@ -56,7 +56,7 @@ jobs:
run: tox --skip-pkg-install

publish:
name: Publish to PyPi
name: Publish to PyPI
needs: test
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
Expand All @@ -66,14 +66,13 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.9
- name: Install flit
run: pip install flit
- name: Build package
run: |
pip install wheel
python setup.py sdist bdist_wheel
run: flit build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1

uses: pypa/gh-action-pypi-publish@release/v1
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to magpylib are documented here.
# Changelog

## [UNRELEASED]

## [4.5.0]
- Add optional handedness parameter for Sensors ([#687](https://github.com/magpylib/magpylib/pull/687))
- Renaming classes: `Line``Polyline`, `Loop``Circle`. Old names are still valid but will issue a `DeprecationWarning` and will eventually be removed in the next major version ([#690](https://github.com/magpylib/magpylib/pull/690))
- Rework CI/CD workflows ([#686](https://github.com/magpylib/magpylib/pull/686))
Expand Down Expand Up @@ -436,7 +438,8 @@ The first official release of the magpylib library.

---

[UNRELEASED]:https://github.com/magpylib/magpylib/compare/4.4.1...HEAD
[UNRELEASED]:https://github.com/magpylib/magpylib/compare/4.5.0...HEAD
[4.5.0]:https://github.com/magpylib/magpylib/compare/4.4.0...4.5.0
[4.4.1]:https://github.com/magpylib/magpylib/compare/4.4.0...4.4.1
[4.4.0]:https://github.com/magpylib/magpylib/compare/4.3.0...4.4.0
[4.3.0]:https://github.com/magpylib/magpylib/compare/4.2.0...4.3.0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</a>
<a href="https://anaconda.org/conda-forge/magpylib"> <img src="https://anaconda.org/conda-forge/magpylib/badges/version.svg" alt="Conda Cloud" height="18">
</a>
<a href="https://mybinder.org/v2/gh/magpylib/magpylib/4.4.1?filepath=docs%2Fexamples"> <img src="https://mybinder.org/badge_logo.svg" alt="MyBinder link" height="18">
<a href="https://mybinder.org/v2/gh/magpylib/magpylib/4.5.0?filepath=docs%2Fexamples"> <img src="https://mybinder.org/badge_logo.svg" alt="MyBinder link" height="18">
</a>
<a href="https://github.com/psf/black"> <img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="black" height="18">
</a>
Expand Down Expand Up @@ -133,7 +133,7 @@ A valid software citation could be
author = {{Michael-Ortner et al.}},
title = {magpylib},
url = {https://magpylib.readthedocs.io/en/latest/},
version = {4.4.1},
version = {4.5.0},
date = {2023-06-25},
}
```
2 changes: 1 addition & 1 deletion magpylib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"""
# module level dunders
__version__ = "4.4.1"
__version__ = "4.5.0"
__author__ = "Michael Ortner & Alexandre Boisselet"
__credits__ = "The Magpylib community"
__all__ = [
Expand Down

0 comments on commit e35b724

Please sign in to comment.