Skip to content

Commit 75e8807

Browse files
authored
Merge pull request #111 from ubermag/metadata-update
Update repository metadata
2 parents fe13905 + e73b78a commit 75e8807

File tree

6 files changed

+24
-88
lines changed

6 files changed

+24
-88
lines changed

.github/workflows/oommf-from-master.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ name: oommf-from-master
22

33
on:
44
push:
5+
branches:
6+
- master
7+
pull_request:
58
schedule:
69
- cron: '0 0 * * 1' # run every Monday
10+
workflow_dispatch:
711

812
env:
913
PYTEST_ADDOPTS: "--color=yes"
@@ -58,7 +62,7 @@ jobs:
5862
echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV
5963
6064
- name: Install testing packages
61-
run: python -m pip install --upgrade pip pytest-cov nbval pycodestyle
65+
run: python -m pip install --upgrade pip pytest-cov nbval pycodestyle invoke
6266

6367
- name: Install ubermag dependencies
6468
run: |
@@ -73,10 +77,10 @@ jobs:
7377
run: python -m pip install .
7478

7579
- name: Unit tests
76-
run: make test-unittests
80+
run: invoke test.unittest
7781

7882
- name: Documentation tests
79-
run: make test-docs
83+
run: invoke test.docs
8084

8185
- name: Jupyter notebook tests
82-
run: make test-ipynb
86+
run: invoke test.ipynb

Makefile

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# oommfc
22

3-
[Marijan Beg](https://github.com/marijanbeg)<sup>1,2</sup>, [Martin Lang](https://github.com/lang-m)<sup>2</sup>, [Ryan A. Pepper](https://github.com/rpep)<sup>3</sup>, [Thomas Kluyver](https://github.com/takluyver)<sup>4</sup>, [Samuel Holt](https://github.com/samjrholt)<sup>2,5</sup>, and [Hans Fangohr](https://github.com/fangohr)<sup>2,6,7</sup>
3+
[Marijan Beg](https://github.com/marijanbeg)<sup>1,2</sup>, [Martin Lang](https://github.com/lang-m)<sup>2</sup>, [Ryan A. Pepper](https://github.com/rpep)<sup>3</sup>, [Thomas Kluyver](https://github.com/takluyver)<sup>4</sup>, [Samuel Holt](https://github.com/samjrholt)<sup>2,5</sup>, [Swapneel Amit Pathak](https://github.com/swapneelap)<sup>2,6</sup>, and [Hans Fangohr](https://github.com/fangohr)<sup>2,6,7</sup>
44

55
<sup>1</sup> *Department of Earth Science and Engineering, Imperial College London, London SW7 2AZ, UK*
66
<sup>2</sup> *Faculty of Engineering and Physical Sciences, University of Southampton, Southampton SO17 1BJ, UK*
@@ -26,7 +26,7 @@
2626
| Platforms | [![Platforms](https://anaconda.org/conda-forge/oommfc/badges/platforms.svg)](https://anaconda.org/conda-forge/oommfc) |
2727
| Downloads | [![Downloads](https://anaconda.org/conda-forge/oommfc/badges/downloads.svg)](https://anaconda.org/conda-forge/oommfc) |
2828
| License | [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) |
29-
| DOI | [![DOI](https://zenodo.org/badge/67028400.svg)](https://zenodo.org/badge/latestdoi/67028400) |
29+
| DOI | [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3539461.svg)](https://doi.org/10.5281/zenodo.3539461) |
3030

3131
## About
3232

@@ -79,7 +79,7 @@ Licensed under the BSD 3-Clause "New" or "Revised" License. For details, please
7979

8080
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).
8181

82-
3. Marijan Beg, Martin Lang, Ryan A. Pepper, Thomas Kluyver, Samuel Holt, and Hans Fangohr. oommfc: OOMMF calculator. DOI: [10.5281/zenodo.3539461](http://doi.org/10.5281/zenodo.3539461) (2022).
82+
3. Marijan Beg, Martin Lang, Ryan A. Pepper, Thomas Kluyver, Samuel Holt, Swapneel Amit Pathak, and Hans Fangohr. oommfc: OOMMF calculator. DOI: [10.5281/zenodo.3539461](http://doi.org/10.5281/zenodo.3539461) (2022).
8383

8484
## Acknowledgements
8585

pyproject.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[build-system]
2-
# 40.8.0 is the first version compatible with PEP 517
3-
requires = ["setuptools>=40.8.0", "wheel"]
2+
requires = ["setuptools"]
43
build-backend = "setuptools.build_meta"
54

65
[project]
@@ -17,6 +16,7 @@ authors = [
1716
{name = "Ryan A. Pepper"},
1817
{name = "Thomas Kluyver"},
1918
{name = "Samuel Holt"},
19+
{name = "Swapneel Amit Pathak"},
2020
{name = "Hans Fangohr"}
2121
]
2222

@@ -59,8 +59,17 @@ repository = "https://github.com/ubermag/oommfc"
5959

6060

6161

62+
[tool.black]
63+
experimental-string-processing = true
64+
65+
[tool.coverage.run]
66+
omit = ["oommfc/tests/*"]
67+
68+
[tool.isort]
69+
profile = "black"
70+
skip_gitignore = true # ignores files listed in .gitignore
71+
6272
# to define additional information we use a custom table
63-
# we need to own the entry for tool.NAME on PyPI
6473
# see: https://www.python.org/dev/peps/pep-0518/#tool-table
6574
[tool.ubermag]
6675
doi = "10.5281/zenodo.3539461"
@@ -75,13 +84,3 @@ contributors = [
7584
about = """
7685
- An Object Oriented MicroMagnetic Framework [OOMMF](https://math.nist.gov/oommf/) calculator for computational magnetism models defined with `micromagneticmodel`.
7786
"""
78-
79-
[tool.coverage.run]
80-
omit = ["oommfc/tests/*"]
81-
82-
[tool.isort]
83-
profile = "black"
84-
skip_gitignore = true # ignores files listed in .gitignore
85-
86-
[tool.black]
87-
experimental-string-processing = true

setup.cfg

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,7 @@
1-
[metadata]
2-
name = oommfc
3-
version = 0.62.0
4-
description = OOMMF calculator.
5-
author = Marijan Beg, Martin Lang, Ryan A. Pepper, Thomas Kluyver, Samuel Holt, and Hans Fangohr
6-
long_description = file: README.md
7-
long_description_content_type = text/markdown
8-
url = https://ubermag.github.io
9-
licence = BSD 3-Clause License
10-
classifiers =
11-
Development Status :: 5 - Production/Stable
12-
Intended Audience :: Education
13-
Intended Audience :: Developers
14-
Intended Audience :: Science/Research
15-
License :: OSI Approved :: BSD License
16-
Natural Language :: English
17-
Operating System :: MacOS
18-
Operating System :: Microsoft :: Windows
19-
Operating System :: Unix
20-
Programming Language :: Python :: 3 :: Only
21-
Topic :: Scientific/Engineering :: Physics
22-
Topic :: Scientific/Engineering :: Mathematics
23-
Topic :: Scientific/Engineering :: Visualization
24-
251
[options]
262
packages = find:
27-
python_requires >= 3.8
28-
install_requires =
29-
micromagnetictests>=0.61.3
30-
ubermagtable>=0.61.1
31-
micromagneticdata>=0.62.0
323
include_package_data = True
334

34-
[options.extras_require]
35-
dev = build;invoke;nbval;pre-commit;pytest-cov;twine
36-
37-
38-
395
[flake8]
406
exclude =
417
.git,

tasks.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33
import shutil
44

5-
import iniconfig
65
import pytest
76
import tomli
87
from invoke import Collection, Exit, task
@@ -106,13 +105,8 @@ def release(c):
106105
if e.code != pytest.ExitCode.OK:
107106
raise e
108107

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

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

0 commit comments

Comments
 (0)