nomad-simulation-apps 0.1.3__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/.devcontainer/devcontainer.json +1 -1
  2. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/.github/workflows/actions.yml +5 -5
  3. nomad_simulation_apps-0.2.0/.github/workflows/publish.yml +54 -0
  4. nomad_simulation_apps-0.2.0/MANIFEST.in +2 -0
  5. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/PKG-INFO +16 -9
  6. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/README.md +11 -4
  7. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/how_to/install_this_plugin.md +4 -4
  8. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/pyproject.toml +9 -6
  9. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/src/nomad_simulation_apps/apps/__init__.py +8 -1
  10. nomad_simulation_apps-0.2.0/src/nomad_simulation_apps/apps/simulations_app.py +752 -0
  11. nomad_simulation_apps-0.2.0/src/nomad_simulation_apps/apps/simulations_dashboard.yaml +49 -0
  12. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/src/nomad_simulation_apps.egg-info/PKG-INFO +16 -9
  13. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/src/nomad_simulation_apps.egg-info/SOURCES.txt +6 -0
  14. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/src/nomad_simulation_apps.egg-info/entry_points.txt +1 -0
  15. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/src/nomad_simulation_apps.egg-info/requires.txt +1 -1
  16. nomad_simulation_apps-0.2.0/src/nomad_simulation_apps.egg-info/scm_file_list.json +39 -0
  17. nomad_simulation_apps-0.2.0/src/nomad_simulation_apps.egg-info/scm_version.json +8 -0
  18. nomad_simulation_apps-0.2.0/tests/apps/test_simulations_app.py +196 -0
  19. nomad_simulation_apps-0.1.3/MANIFEST.in +0 -3
  20. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/.cruft.json +0 -0
  21. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/.github/dependabot.yml +0 -0
  22. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/.github/workflows/mkdocs-deploy.yml +0 -0
  23. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/.gitignore +0 -0
  24. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/.vscode/settings.json +0 -0
  25. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/LICENSE +0 -0
  26. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/assets/.gitignore +0 -0
  27. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/assets/favicon.png +0 -0
  28. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/assets/nomad-plugin-logo.png +0 -0
  29. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/how_to/contribute.md +0 -0
  30. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/how_to/use_this_plugin.md +0 -0
  31. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/index.md +0 -0
  32. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/reference/references.md +0 -0
  33. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/stylesheets/extra.css +0 -0
  34. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/theme/partials/header.html +0 -0
  35. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/docs/tutorial/alexandria.md +0 -0
  36. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/mkdocs.yml +0 -0
  37. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/requirements_docs.txt +0 -0
  38. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/setup.cfg +0 -0
  39. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/src/nomad_simulation_apps/__init__.py +0 -0
  40. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/src/nomad_simulation_apps/apps/alexandria_app.py +0 -0
  41. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/src/nomad_simulation_apps/apps/alexandria_dashboard.yaml +0 -0
  42. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/src/nomad_simulation_apps.egg-info/dependency_links.txt +0 -0
  43. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/src/nomad_simulation_apps.egg-info/top_level.txt +0 -0
  44. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/tests/apps/test_alexandria_app.py +0 -0
  45. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/tests/conftest.py +0 -0
  46. {nomad_simulation_apps-0.1.3 → nomad_simulation_apps-0.2.0}/tests/data/.gitkeep +0 -0
@@ -5,7 +5,7 @@
5
5
  // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
6
  "image": "mcr.microsoft.com/devcontainers/python:1-3.9-bookworm",
7
7
  "features": {
8
- "ghcr.io/devcontainers-contrib/features/ruff:1": {}
8
+ "ghcr.io/devcontainers-contrib/features/ruff:2": {}
9
9
  },
10
10
  // Features to add to the dev container. More info: https://containers.dev/features.
11
11
  // "features": {},
@@ -5,10 +5,10 @@ jobs:
5
5
  runs-on: ubuntu-latest
6
6
  steps:
7
7
  - uses: actions/checkout@v4
8
- - name: Set up Python 3.9
8
+ - name: Set up Python 3.10
9
9
  uses: actions/setup-python@v5
10
10
  with:
11
- python-version: 3.9
11
+ python-version: '3.10'
12
12
  - name: Install dependencies
13
13
  run: |
14
14
  pip install --upgrade pip
@@ -27,10 +27,10 @@ jobs:
27
27
  runs-on: ubuntu-latest
28
28
  steps:
29
29
  - uses: actions/checkout@v4
30
- - name: Set up Python 3.9
30
+ - name: Set up Python 3.10
31
31
  uses: actions/setup-python@v5
32
32
  with:
33
- python-version: 3.9
33
+ python-version: '3.10'
34
34
  - name: Build the package
35
35
  run: |
36
36
  pip install --upgrade pip
@@ -53,4 +53,4 @@ jobs:
53
53
  # - uses: actions/checkout@v4
54
54
  # - uses: chartboost/ruff-action@v1
55
55
  # with:
56
- # args: "format . --check"
56
+ # args: "format . --check"
@@ -0,0 +1,54 @@
1
+ # Upload the distribution to PyPI when a GitHub release is published.
2
+ # Reference: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
3
+
4
+ name: Upload Python Package
5
+
6
+ on:
7
+ release:
8
+ types: [published]
9
+
10
+ jobs:
11
+ build:
12
+ name: Build distribution
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: read
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0 # setuptools-scm needs the release tag and Git history
20
+ persist-credentials: false
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: '3.12'
25
+ - name: Install dependencies
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ python -m pip install build
29
+ - name: Build package
30
+ run: python -m build
31
+ - name: Store distributions
32
+ uses: actions/upload-artifact@v5
33
+ with:
34
+ name: python-package-distributions
35
+ path: dist/
36
+ if-no-files-found: error
37
+
38
+ publish-to-pypi:
39
+ name: Publish distribution to PyPI
40
+ needs: build
41
+ runs-on: ubuntu-latest
42
+ environment:
43
+ name: pypi
44
+ url: https://pypi.org/p/nomad-simulation-apps
45
+ permissions:
46
+ id-token: write # Required for PyPI trusted publishing
47
+ steps:
48
+ - name: Download distributions
49
+ uses: actions/download-artifact@v6
50
+ with:
51
+ name: python-package-distributions
52
+ path: dist/
53
+ - name: Publish package to PyPI
54
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,2 @@
1
+ include src/nomad_simulation_apps/apps/alexandria_dashboard.yaml
2
+ include src/nomad_simulation_apps/apps/simulations_dashboard.yaml
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nomad-simulation-apps
3
- Version: 0.1.3
3
+ Version: 0.2.0
4
4
  Summary: A repository for housing NOMAD's collection of simulation app plugins.
5
5
  Author-email: Martin Kuban <kuban@physik.hu-berlin.de>
6
6
  Maintainer-email: Martin Kuban <kuban@physik.hu-berlin.de>
@@ -207,19 +207,19 @@ License:
207
207
  See the License for the specific language governing permissions and
208
208
  limitations under the License.
209
209
 
210
- Project-URL: Repository, https://github.com/FAIRmat-NFDI/nomad-simulation-apps
210
+ Project-URL: Repository, https://github.com/FAIRmat-NFDI/nomad-app-plugins-simulation
211
+ Project-URL: Documentation, https://fairmat-nfdi.github.io/nomad-app-plugins-simulation/
211
212
  Classifier: Intended Audience :: Developers
212
213
  Classifier: Operating System :: OS Independent
213
214
  Classifier: Programming Language :: Python
214
- Classifier: Programming Language :: Python :: 3.9
215
215
  Classifier: Programming Language :: Python :: 3.10
216
216
  Classifier: Programming Language :: Python :: 3.11
217
217
  Classifier: Programming Language :: Python :: 3.12
218
218
  Classifier: License :: OSI Approved :: Apache Software License
219
- Requires-Python: >=3.9
219
+ Requires-Python: >=3.10
220
220
  Description-Content-Type: text/markdown
221
221
  License-File: LICENSE
222
- Requires-Dist: nomad-lab>=1.3.0
222
+ Requires-Dist: nomad-lab>=1.4.0
223
223
  Requires-Dist: python-magic-bin; sys_platform == "win32"
224
224
  Provides-Extra: dev
225
225
  Requires-Dist: ruff; extra == "dev"
@@ -233,13 +233,20 @@ A repository for housing NOMAD's collection of simulation app plugins.
233
233
 
234
234
  This `nomad` plugin was generated with `Cookiecutter` along with `@nomad`'s [`cookiecutter-nomad-plugin`](https://github.com/FAIRmat-NFDI/cookiecutter-nomad-plugin) template.
235
235
 
236
+ ## Usage
237
+
238
+ This package can be installed from PyPI:
239
+
240
+ ```sh
241
+ pip install nomad-simulation-apps
242
+ ```
236
243
 
237
244
  ## Development
238
245
 
239
- If you want to develop locally this plugin, clone the project and in the plugin folder, create a virtual environment (you can use Python 3.9, 3.10, or 3.11):
246
+ If you want to develop locally this plugin, clone the project and in the plugin folder, create a virtual environment (you can use Python 3.10 or newer):
240
247
  ```sh
241
- git clone https://github.com/FAIRmat-NFDI/nomad-simulation-apps.git
242
- cd nomad-simulation-apps
248
+ git clone https://github.com/FAIRmat-NFDI/nomad-app-plugins-simulation.git
249
+ cd nomad-app-plugins-simulation
243
250
  python3.11 -m venv .pyenv
244
251
  . .pyenv/bin/activate
245
252
  ```
@@ -389,7 +396,7 @@ on the [PyPI documentation](https://packaging.python.org/en/latest/tutorials/pac
389
396
 
390
397
  ### Template update
391
398
 
392
- We use cruft to update the project based on template changes. A `cruft-update.yml` is included in Github workflows to automatically check for updates and create pull requests to apply updates. Follow the [instructions](https://github.blog/changelog/2022-05-03-github-actions-prevent-github-actions-from-creating-and-approving-pull-requests/) on how to enable Github Actions to create pull requests.
399
+ We use cruft to update the project based on template changes. A `cruft-update.yml` is included in Github workflows to automatically check for updates and create pull requests to apply updates. Follow the [instructions](https://github.blog/changelog/2022-05-03-github-actions-prevent-github-actions-from-creating-and-approving-pull-requests/) on how to enable Github Actions to create pull requests.
393
400
 
394
401
  To run the check for updates locally, follow the instructions on [`cruft` website](https://cruft.github.io/cruft/#updating-a-project).
395
402
 
@@ -4,13 +4,20 @@ A repository for housing NOMAD's collection of simulation app plugins.
4
4
 
5
5
  This `nomad` plugin was generated with `Cookiecutter` along with `@nomad`'s [`cookiecutter-nomad-plugin`](https://github.com/FAIRmat-NFDI/cookiecutter-nomad-plugin) template.
6
6
 
7
+ ## Usage
8
+
9
+ This package can be installed from PyPI:
10
+
11
+ ```sh
12
+ pip install nomad-simulation-apps
13
+ ```
7
14
 
8
15
  ## Development
9
16
 
10
- If you want to develop locally this plugin, clone the project and in the plugin folder, create a virtual environment (you can use Python 3.9, 3.10, or 3.11):
17
+ If you want to develop locally this plugin, clone the project and in the plugin folder, create a virtual environment (you can use Python 3.10 or newer):
11
18
  ```sh
12
- git clone https://github.com/FAIRmat-NFDI/nomad-simulation-apps.git
13
- cd nomad-simulation-apps
19
+ git clone https://github.com/FAIRmat-NFDI/nomad-app-plugins-simulation.git
20
+ cd nomad-app-plugins-simulation
14
21
  python3.11 -m venv .pyenv
15
22
  . .pyenv/bin/activate
16
23
  ```
@@ -160,7 +167,7 @@ on the [PyPI documentation](https://packaging.python.org/en/latest/tutorials/pac
160
167
 
161
168
  ### Template update
162
169
 
163
- We use cruft to update the project based on template changes. A `cruft-update.yml` is included in Github workflows to automatically check for updates and create pull requests to apply updates. Follow the [instructions](https://github.blog/changelog/2022-05-03-github-actions-prevent-github-actions-from-creating-and-approving-pull-requests/) on how to enable Github Actions to create pull requests.
170
+ We use cruft to update the project based on template changes. A `cruft-update.yml` is included in Github workflows to automatically check for updates and create pull requests to apply updates. Follow the [instructions](https://github.blog/changelog/2022-05-03-github-actions-prevent-github-actions-from-creating-and-approving-pull-requests/) on how to enable Github Actions to create pull requests.
164
171
 
165
172
  To run the check for updates locally, follow the instructions on [`cruft` website](https://cruft.github.io/cruft/#updating-a-project).
166
173
 
@@ -6,10 +6,10 @@ This package will be available on PyPI soon.
6
6
 
7
7
  ## Development
8
8
 
9
- If you want to develop this module locally, clone the project and in the plugin folder, create a virtual environment (you can use Python 3.9, 3.10, or 3.11):
9
+ If you want to develop this module locally, clone the project and in the plugin folder, create a virtual environment (you can use Python 3.10 or newer):
10
10
  ```sh
11
- git clone https://github.com/FAIRmat-NFDI/nomad-app-plugins-simulation
12
- cd nomad-simulation-apps
11
+ git clone https://github.com/FAIRmat-NFDI/nomad-app-plugins-simulation.git
12
+ cd nomad-app-plugins-simulation
13
13
  python3.11 -m venv .pyenv
14
14
  . .pyenv/bin/activate
15
15
  ```
@@ -103,4 +103,4 @@ uv pip install -r requirements_docs.txt
103
103
  Run the documentation server:
104
104
  ```sh
105
105
  mkdocs serve
106
- ```
106
+ ```
@@ -7,7 +7,6 @@ classifiers = [
7
7
  "Intended Audience :: Developers",
8
8
  "Operating System :: OS Independent",
9
9
  "Programming Language :: Python",
10
- "Programming Language :: Python :: 3.9",
11
10
  "Programming Language :: Python :: 3.10",
12
11
  "Programming Language :: Python :: 3.11",
13
12
  "Programming Language :: Python :: 3.12",
@@ -15,9 +14,9 @@ classifiers = [
15
14
  ]
16
15
  name = "nomad-simulation-apps"
17
16
  description = "A repository for housing NOMAD's collection of simulation app plugins."
18
- version = "0.1.3"
17
+ dynamic = ["version"]
19
18
  readme = "README.md"
20
- requires-python = ">=3.9"
19
+ requires-python = ">=3.10"
21
20
  authors = [
22
21
  { name = "Martin Kuban", email = "kuban@physik.hu-berlin.de" },
23
22
  ]
@@ -26,12 +25,13 @@ maintainers = [
26
25
  ]
27
26
  license = { file = "LICENSE" }
28
27
  dependencies = [
29
- "nomad-lab>=1.3.0",
28
+ "nomad-lab>=1.4.0",
30
29
  "python-magic-bin; sys_platform == 'win32'",
31
30
  ]
32
31
 
33
32
  [project.urls]
34
- Repository = "https://github.com/FAIRmat-NFDI/nomad-simulation-apps"
33
+ Repository = "https://github.com/FAIRmat-NFDI/nomad-app-plugins-simulation"
34
+ Documentation = "https://fairmat-nfdi.github.io/nomad-app-plugins-simulation/"
35
35
 
36
36
  [project.optional-dependencies]
37
37
  dev = ["ruff", "pytest", "structlog"]
@@ -77,7 +77,7 @@ select = [
77
77
  "UP",
78
78
  # isort
79
79
  "I",
80
- # pylint
80
+ # pylint
81
81
  "PL",
82
82
  ]
83
83
 
@@ -111,8 +111,11 @@ package-dir = { "" = "src" }
111
111
  [tool.setuptools.packages.find]
112
112
  where = ["src"]
113
113
 
114
+ [tool.setuptools_scm]
115
+
114
116
  [project.entry-points.'nomad.plugin']
115
117
  alexandria_app = "nomad_simulation_apps.apps:alexandria_entry_point"
118
+ simulations_app = "nomad_simulation_apps.apps:simulations_entry_point"
116
119
 
117
120
  [tool.cruft]
118
121
  # Avoid updating workflow files, this leads to permissions issues
@@ -1,9 +1,16 @@
1
1
  from nomad.config.models.plugins import AppEntryPoint
2
2
 
3
3
  from nomad_simulation_apps.apps.alexandria_app import alexandria_app
4
+ from nomad_simulation_apps.apps.simulations_app import simulations_app
4
5
 
5
6
  alexandria_entry_point = AppEntryPoint(
6
7
  name='Alexandria',
7
8
  description='Explore the data of the Alexandria database within NOMAD.',
8
- app=alexandria_app
9
+ app=alexandria_app,
10
+ )
11
+
12
+ simulations_entry_point = AppEntryPoint(
13
+ name='Simulations',
14
+ description='Explore simulations within NOMAD.',
15
+ app=simulations_app,
9
16
  )