Skip to content

Commit

Permalink
Merge pull request #35 from ubermag/metadata-update
Browse files Browse the repository at this point in the history
Update repository metadata
  • Loading branch information
lang-m authored Jun 24, 2022
2 parents 7efc14f + 4da48a8 commit bf1d71e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 111 deletions.
27 changes: 0 additions & 27 deletions Makefile

This file was deleted.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# mag2exp

[Samuel Holt](https://github.com/samjrholt)<sup>1,2</sup>, James Loudon<sup>3</sup>, Thomas Hicken<sup>4</sup>, [David Cortés Ortuño](https://github.com/davidcortesortuno)<sup>5</sup>, [Martin Lang](https://github.com/lang-m)<sup>1</sup>, [Marijan Beg](https://github.com/marijanbeg)<sup>6,1</sup>, and [Hans Fangohr](https://github.com/fangohr)<sup>1,7,8</sup>
[Samuel Holt](https://github.com/samjrholt)<sup>1,2</sup>, [Martin Lang](https://github.com/lang-m)<sup>1</sup>, James Loudon<sup>3</sup>, Thomas Hicken<sup>4</sup>, [Swapneel Amit Pathak](https://github.com/swapneelap)<sup>1,5</sup>, [David Cortés Ortuño](https://github.com/davidcortesortuno)<sup>6</sup>, [Marijan Beg](https://github.com/marijanbeg)<sup>7,1</sup>, and [Hans Fangohr](https://github.com/fangohr)<sup>1,5,8</sup>

<sup>1</sup> *Faculty of Engineering and Physical Sciences, University of Southampton, Southampton SO17 1BJ, UK*
<sup>2</sup> *Department of Physics, University of Warwick, Coventry CV4 7AL, UK*
<sup>3</sup> *Department of Materials Science and Metallurgy, University of Cambridge, Cambridge, CB3 0FS, United Kingdom*
<sup>4</sup> *Department of Physics, Durham University, Durham, DH1 3LE, United Kingdom*
<sup>5</sup> *Paleomagnetic Laboratory Fort Hoofddijk, Utrecht University, Utrecht, 3584 CD, Netherlands*
<sup>6</sup> *Department of Earth Science and Engineering, Imperial College London, London SW7 2AZ, UK*
<sup>7</sup> *Max Planck Institute for the Structure and Dynamics of Matter, Luruper Chaussee 149, 22761 Hamburg, Germany*
<sup>5</sup> *Max Planck Institute for the Structure and Dynamics of Matter, Luruper Chaussee 149, 22761 Hamburg, Germany*
<sup>6</sup> *Paleomagnetic Laboratory Fort Hoofddijk, Utrecht University, Utrecht, 3584 CD, Netherlands*
<sup>7</sup> *Department of Earth Science and Engineering, Imperial College London, London SW7 2AZ, UK*
<sup>8</sup> *Center for Free-Electron Laser Science, Luruper Chaussee 149, 22761 Hamburg, Germany*


Expand All @@ -27,7 +27,7 @@
| Platforms | [![Platforms](https://anaconda.org/conda-forge/mag2exp/badges/platforms.svg)](https://anaconda.org/conda-forge/mag2exp) |
| Downloads | [![Downloads](https://anaconda.org/conda-forge/mag2exp/badges/downloads.svg)](https://anaconda.org/conda-forge/mag2exp) |
| License | [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) |
| DOI | [![DOI](https://zenodo.org/badge/67028400.svg)](https://zenodo.org/badge/latestdoi/67028400) |
| DOI | [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3539461.svg)](https://doi.org/10.5281/zenodo.3539461) |

## About

Expand Down Expand Up @@ -77,7 +77,7 @@ Licensed under the BSD 3-Clause "New" or "Revised" License. For details, please

2. M. Beg, R. A. Pepper, and H. Fangohr. User interfaces for computational science: A domain specific language for OOMMF embedded in Python. [*AIP Advances* **7**, 56025](http://aip.scitation.org/doi/10.1063/1.4977225) (2017).

3. Samuel Holt, James Loudon, Thomas Hicken, David Cortés Ortuño, Martin Lang, Marijan Beg, and Hans Fangohr. mag2exp: Simulate experimental measurements for magnetic materials DOI: [10.5281/zenodo.3539461](http://doi.org/10.5281/zenodo.3539461) (2022).
3. Samuel Holt, Martin Lang, James Loudon, Thomas Hicken, Swapneel Amit Pathak, David Cortés Ortuño, Marijan Beg, and Hans Fangohr. mag2exp: Simulate experimental measurements for magnetic materials DOI: [10.5281/zenodo.3539461](http://doi.org/10.5281/zenodo.3539461) (2022).

## Acknowledgements

Expand Down
23 changes: 0 additions & 23 deletions make.bat

This file was deleted.

27 changes: 13 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[build-system]
# 40.8.0 is the first version compatible with PEP 517
requires = ["setuptools>=40.8.0", "wheel"]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -13,10 +12,11 @@ license = {file = "LICENSE"}

authors = [
{name = "Samuel Holt"},
{name = "Martin Lang"},
{name = "James Loudon"},
{name = "Thomas Hicken"},
{name = "Swapneel Amit Pathak"},
{name = "David Cortés Ortuño"},
{name = "Martin Lang"},
{name = "Marijan Beg"},
{name = "Hans Fangohr"}
]
Expand Down Expand Up @@ -60,8 +60,17 @@ repository = "https://github.com/ubermag/mag2exp"



[tool.black]
experimental-string-processing = true

[tool.coverage.run]
omit = ["mag2exp/tests/*"]

[tool.isort]
profile = "black"
skip_gitignore = true # ignores files listed in .gitignore

# to define additional information we use a custom table
# we need to own the entry for tool.NAME on PyPI
# see: https://www.python.org/dev/peps/pep-0518/#tool-table
[tool.ubermag]
doi = "10.5281/zenodo.3539461"
Expand All @@ -73,13 +82,3 @@ about = """
- the ability to perform "virtual" experiments,
- the functionality to compare of real experimental results agaist simulated experiments.
"""

[tool.coverage.run]
omit = ["mag2exp/tests/*"]

[tool.isort]
profile = "black"
skip_gitignore = true # ignores files listed in .gitignore

[tool.black]
experimental-string-processing = true
34 changes: 0 additions & 34 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,41 +1,7 @@
[metadata]
name = mag2exp
version = 0.61.1
description = Simulate experimental measurements for magnetic materials
author = Samuel Holt, James Loudon, Thomas Hicken, David Cortés Ortuño, Martin Lang, Marijan Beg, and Hans Fangohr
long_description = file: README.md
long_description_content_type = text/markdown
url = https://ubermag.github.io
licence = BSD 3-Clause License
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Education
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Natural Language :: English
Operating System :: MacOS
Operating System :: Microsoft :: Windows
Operating System :: Unix
Programming Language :: Python :: 3 :: Only
Topic :: Scientific/Engineering :: Physics
Topic :: Scientific/Engineering :: Mathematics
Topic :: Scientific/Engineering :: Visualization

[options]
packages = find:
python_requires >= 3.8
install_requires =
oommfc>=0.62.0
numpy>=1.19
scipy>=1.6
include_package_data = True

[options.extras_require]
dev = build;invoke;nbval;pre-commit;pytest-cov;twine



[flake8]
exclude =
.git,
Expand Down
8 changes: 1 addition & 7 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import shutil

import iniconfig
import pytest
import tomli
from invoke import Collection, Exit, task
Expand Down Expand Up @@ -106,13 +105,8 @@ def release(c):
if e.code != pytest.ExitCode.OK:
raise e

version = iniconfig.IniConfig("setup.cfg").get("metadata", "version")
# sanity checks while we have two places containing the version.
with open("pyproject.toml", "rb") as f:
toml_version = tomli.load(f)["project"]["version"]
assert (
toml_version == version
), "Different versions in pyproject.toml and setup.cfg. Aborting."
version = tomli.load(f)["project"]["version"]

c.run(f"git tag {version}") # fails if the tag exists
c.run("git tag -f latest") # `latest` tag for binder
Expand Down

0 comments on commit bf1d71e

Please sign in to comment.