Skip to content

Commit c5b43c4

Browse files
authored
Merge pull request #14 from iterorganization/rename_imaspy_sources_to_imas
Rename imaspy sources to imas
2 parents 95d587b + 438dc73 commit c5b43c4

File tree

212 files changed

+2354
-5771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+2354
-5771
lines changed

.git_archival.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
imaspy/_version.py export-subst
1+
.git_archival.txt export-subst

.github/workflows/linting.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: linting-and-code-formatting
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout IMAS-Python sources
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.x'
18+
19+
- name: Display Python version
20+
run: python -c "import sys; print(sys.version)"
21+
22+
- name: Install the code linting and formatting tools
23+
run: pip install --upgrade 'black >=24,<25' flake8
24+
25+
- name: Check formatting of code with black
26+
run: black --check imas
27+
28+
- name: Check linting with flake8
29+
run: flake8 imas

.github/workflows/publish.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: build-wheel-and-publish-test-pypi
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
name: Build distribution
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.x"
17+
- name: Install pypa/build
18+
run: >-
19+
python3 -m pip install pip setuptools wheel build
20+
- name: Build a binary wheel and a source tarball
21+
run: python3 -m build .
22+
- name: Store the distribution packages
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: python-package-distributions
26+
path: dist/
27+
28+
publish-to-pypi:
29+
name: Publish IMAS-Python distribution to PyPI
30+
needs:
31+
- build
32+
runs-on: ubuntu-latest
33+
environment:
34+
name: pypi
35+
url: https://pypi.org/p/imas-python
36+
permissions:
37+
id-token: write # IMPORTANT: mandatory for trusted publishing
38+
steps:
39+
- name: Download all the dists
40+
uses: actions/download-artifact@v4
41+
with:
42+
name: python-package-distributions
43+
path: dist/
44+
- name: Publish distribution to PyPI
45+
uses: pypa/gh-action-pypi-publish@release/v1
46+
47+
publish-to-testpypi:
48+
name: Publish IMAS-Python distribution to TestPyPI
49+
needs:
50+
- build
51+
runs-on: ubuntu-latest
52+
environment:
53+
name: testpypi
54+
url: https://test.pypi.org/p/imas-python
55+
permissions:
56+
id-token: write # IMPORTANT: mandatory for trusted publishing
57+
steps:
58+
- name: Download all the dists
59+
uses: actions/download-artifact@v4
60+
with:
61+
name: python-package-distributions
62+
path: dist/
63+
- name: Publish distribution to TestPyPI
64+
uses: pypa/gh-action-pypi-publish@unstable/v1
65+
with:
66+
repository-url: https://test.pypi.org/legacy/
67+
verbose: true

.gitignore

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,16 @@ ENV/
9191
*.swo
9292

9393
# SCM setuptools
94-
imaspy/version.py
95-
96-
# Saxon symlink or downloaded file
97-
saxon*.jar
94+
imas/_version.py
9895

9996
# IMAS DD
10097
data-dictionary
101-
access-layer
102-
containers/arch/imaspy/
98+
containers/arch/imas/
10399
containers/arch/data-dictionary/
104-
containers/arch/access-layer/
105-
imaspy/assets/IDSDef.zip
100+
imas/assets/IDSDef.zip
106101

107102
# IDS files
108-
*.ids
103+
# *.ids
109104

110105
# ASV folder
111106
/.asv

.readthedocs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 2
2+
3+
build:
4+
os: "ubuntu-22.04"
5+
tools:
6+
python: "3.11"
7+
jobs:
8+
post_checkout:
9+
- git fetch --unshallow || true
10+
11+
python:
12+
install:
13+
- method: pip
14+
path: .
15+
extra_requirements:
16+
- docs
17+
- netcdf
18+
- h5py
19+
20+
sphinx:
21+
builder: html
22+
configuration: docs/source/conf.py
23+
fail_on_warning: false

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Contributing guidelines
22

3-
We welcome any kind of contribution to `imas-python`,
3+
We welcome any kind of contribution to `IMAS-Python`,
44
from a simple comment, a question or even a full fledged pull
55
request.
66
Please first make sure you read and follow the
77
[Code of Conduct](CODE_OF_CONDUCT.md).
88

99
## You think you found a bug in the code, or have a question in its use
10-
1. use the [issue search](https://github.com/iterorganization/imas-python/issues)
10+
1. use the [issue search](https://github.com/iterorganization/IMAS-Python/issues)
1111
to check if someone already created a similar issue;
1212
3. if not, make a **new issue** to describe your problem or question.
1313
In the case of a bug suspiscion, please try to give all the relevant
1414
information to allow reproducing the error or identifying
15-
its root cause (version of the imas-python, OS and relevant
15+
its root cause (version of the IMAS-Python, OS and relevant
1616
dependencies, snippet of code);
1717
4. apply relevant labels to the issue.
1818

1919
## You want to make or ask some change to the code
20-
1. use the [issue search](https://github.com/iterorganization/imas-python/issues)
20+
1. use the [issue search](https://github.com/iterorganization/IMAS-Python/issues)
2121
to check if someone already proposed a similar idea/change;
2222
3. if not, create a **new issue** to describe what change you would like to see
2323
implemented and specify it if you intend to work on it yourself or if some help

MANIFEST.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
include imaspy/assets/IDSDef.zip
2-
include imaspy/assets/IDSDef2MDSpreTree.xsl
3-
include imaspy/assets/ITER_134173_106_equilibrium.ids
4-
include imaspy/assets/ITER_134173_106_core_profiles.ids
5-
include imaspy/assets/equilibrium.ids
6-
include imaspy/assets/core_profiles.ids
1+
include imas/assets/IDSDef.zip
2+
include imas/assets/IDSDef2MDSpreTree.xsl
3+
include imas/assets/ITER_134173_106_equilibrium.ids
4+
include imas/assets/ITER_134173_106_core_profiles.ids
5+
include imas/assets/equilibrium.ids
6+
include imas/assets/core_profiles.ids

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Data Model.
1111
Install steps are described in the documentation generated from `/docs/source/installing.rst`.
1212

1313
Documentation is autogenerated from the source using [Sphinx](http://sphinx-doc.org/)
14-
and can be found at the [ITER sharepoint](https://sharepoint.iter.org/departments/POP/CM/IMDesign/Code%20Documentation/IMAS-doc/index.html)
14+
and can be found at the [readthedocs](https://imas-python.readthedocs.io/en/latest/)
1515

1616
The documentation can be manually generated by installing sphinx and running:
1717

@@ -40,7 +40,7 @@ A quick 5 minutes introduction is available in the documentation generated from
4040

4141
## Legal
4242

43-
IMAS-Python is Copyright 2020-2024 ITER Organization, Copyright 2020-2023 Karel Lucas van de
43+
IMAS-Python is Copyright 2020-2025 ITER Organization, Copyright 2020-2023 Karel Lucas van de
4444
Plassche <[email protected]>, Copyright 2020-2022 Daan van Vugt <[email protected]>,
4545
and Copyright 2020 Dutch Institute for Fundamental Energy Research <[email protected]>.
4646
It is licensed under [LGPL 3.0](LICENSE.txt).

asv.conf.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"version": 1,
55

66
// The name of the project being benchmarked
7-
"project": "imaspy",
7+
"project": "imas",
88

99
// The project's homepage
10-
"project_url": "https://git.iter.org/projects/IMAS/repos/imaspy/browse",
10+
"project_url": "https://github.com/iterorganization/IMAS-Python",
1111

1212
// The URL or local path of the source code repository for the
1313
// project being benchmarked
@@ -53,7 +53,7 @@
5353
//"install_timeout": 600,
5454

5555
// the base URL to show a commit for the project.
56-
"show_commit_url": "https://git.iter.org/projects/IMAS/repos/imaspy/commits/",
56+
"show_commit_url": "https://github.com/iterorganization/IMAS-Python/commits/main/",
5757

5858
// The Pythons you'd like to test against. If not provided, defaults
5959
// to the current version of Python used to run `asv`.

0 commit comments

Comments
 (0)