-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix gh-actions * Fix CI for macos-latest (cross-compile fails) * Add versioneer * Remove debug info in default builds * Add release scripts * Fix sprintf compiler warning * Cleanup CI scripts
- Loading branch information
Showing
13 changed files
with
3,260 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libmcphase/_version.py export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Release libmcphase on PyPI | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
jobs: | ||
create_release: | ||
name: Creates a PyPI release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
- name: Publish wheels to PyPI | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install twine requests numpy | ||
python release.py --notest --pypi | ||
twine upload twine_wheelhouse/*.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
### [v0.1.3](https://github.com/mducle/libmcphase/compare/v0.1.2...v0.1.3) | ||
|
||
Library / dependencies update | ||
|
||
* Update build system - now supports MacOS (Intel and ARM). | ||
* Cleans up some compiler warnings | ||
|
||
Example scripts (after installing with `pip install libmcphase`) | ||
|
||
``` | ||
import libmcphase | ||
cfp = libmcphase.cf1ion('Pr3+', B20=0.1, B40=0.01, B60=0.001, B66=-0.02) | ||
V, E = cfp.eigensystem() | ||
print(E) | ||
``` | ||
|
||
|
||
### [v0.1.2](https://github.com/mducle/libmcphase/compare/v0.1.0...v0.1.2) | ||
|
||
Pre-alpha release with only single-ion calculations of energy levels and some physical properties (magnetisation, susceptibility). | ||
|
||
Very little documentation. | ||
|
||
|
||
### [v0.1.0](https://github.com/mducle/libmcphase/compare/08c4a2e22b61c145b841ca531c7a11a3959d10fa...v0.1.0) | ||
|
||
Initial commit of libmcphase. | ||
|
||
* Reorganised McPhase code and changed directory structure. | ||
* Rewrite of `cf1ion` module to remove old Fabi code and use 3j/6j symbols. | ||
* Python interface using Pybind11. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
cff-version: "1.1.0" | ||
message: "If you have used libmcphase in your research, please cite it as below" | ||
abstract: "libmcphase is Python library for calculating magnetic properties of rare earth compounds" | ||
authors: | ||
- family-names: "Rotter" | ||
given-names: "Martin" | ||
- family-names: "Le" | ||
given-names: "Manh Duc" | ||
orcid: "https://orcid.org/0000-0003-3012-6053" | ||
title: "libmcphase" | ||
version: "0.1.3" | ||
date-released: "2024-09-05" | ||
license: "GPL-3.0-only" | ||
repository: "https://github.com/mducle/libmcphase" | ||
url: "https://github.com/mducle/libmcphase" | ||
keywords: | ||
- "Python" | ||
- "Condensed Matter Physics" | ||
- "Rare Earth Magnets" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
from .libmcphase import * | ||
|
||
from . import _version | ||
__version__ = _version.get_versions()['version'] |
Oops, something went wrong.