Skip to content

Commit b66dedc

Browse files
Merge pull request #34 from ethan-shanahan/dev
Merging major changes for v0.2.0
2 parents 70ea23e + f19c08b commit b66dedc

File tree

12 files changed

+2066
-973
lines changed

12 files changed

+2066
-973
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
timeout-minutes: 15
3030
strategy:
3131
matrix:
32-
environment: [test-py311, test-py312, test-py313]
32+
environment: [test-py311, test-py312]
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
pixi-version: v0.40.2
1919
cache: false
20-
environments: build
20+
environments: dist
2121
activate-environment: true
2222
- name: Build distributions
2323
run: pixi run build-dist

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ diff.md
6060

6161
# Lock file
6262
*.lock
63+
64+
# Tutorial required files
65+
!tutorial_dataset.h5
66+
67+
# Tutorial generated files
68+
configure_profile.yaml
69+
configure_computer.yaml
70+
configure_code.yaml
71+
.aiida_run
72+
73+
# Development test sandbox
74+
test_dev

LICENSE

Lines changed: 159 additions & 668 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 40 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,27 @@ classifiers = [
1111
"Programming Language :: Python",
1212
"Operating System :: POSIX :: Linux",
1313
"Intended Audience :: Science/Research",
14-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
14+
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
1515
"Development Status :: 3 - Alpha",
1616
"Framework :: AiiDA"
1717
]
1818
keywords = ["aiida", "plugin", "fans"]
1919
requires-python = ">=3.11"
2020
dependencies = [
21-
"aiida-core>=2.3",
21+
"aiida-core>=2.6",
2222
"h5py"
2323
]
2424

2525
# Entry Points
26-
[project.entry-points]
27-
"aiida.data" = { "fans" = "aiida_fans.data:FANSParameters" }
28-
"aiida.calculations" = { "fans" = "aiida_fans.calculations:FANSCalculation" }
29-
"aiida.parsers" = { "fans" = "aiida_fans.parsers:FANSParser" }
30-
"aiida.cmdline.data" = { "fans" = "aiida_fans.cli:data_cli" }
26+
# [project.entry-points."aiida.data"]
27+
# "fans" = "aiida_fans.data:FANSParameters"
28+
[project.entry-points."aiida.calculations"]
29+
"fans.stashed" = "aiida_fans.calculations:FansStashedCalculation"
30+
"fans.fragmented" = "aiida_fans.calculations:FansFragmentedCalculation"
31+
[project.entry-points."aiida.parsers"]
32+
"fans" = "aiida_fans.parsers:FansParser"
33+
# [project.entry-points."aiida.cmdline.data"]
34+
# "fans" = "aiida_fans.cli:data_cli"
3135

3236
# Build System
3337
[build-system]
@@ -44,49 +48,55 @@ platforms = ["linux-64"]
4448

4549
### pixi: default dependencies (in addition to aiida-core)
4650
[tool.pixi.dependencies]
47-
fans = "*"
51+
# None
4852
[tool.pixi.pypi-dependencies]
4953
# None
5054

5155
### pixi: default tasks
5256
[tool.pixi.tasks]
5357
# None
5458

55-
### pixi: features (in addition to fans)
56-
[tool.pixi.feature.dev]
57-
pypi-dependencies = {aiida-fans = { path = ".", editable = true }}
58-
[tool.pixi.feature.prod]
59+
### pixi: features
60+
[tool.pixi.feature.self]
5961
pypi-dependencies = {aiida-fans = { path = ".", editable = true }}
60-
[tool.pixi.feature.fmt]
62+
[tool.pixi.feature.plugin]
63+
dependencies = {aiida-fans = "==0.1.5"}
64+
# [tool.pixi.feature.aiida]
65+
# dependencies = {aiida-core = "2.6.*"}
66+
[tool.pixi.feature.fans]
67+
dependencies = {fans = "0.4.*"}
68+
[tool.pixi.feature.ruff]
6169
dependencies = {ruff = "*"}
6270
tasks = {fmt = "ruff check", dummy = "echo dummy", my-dummy="echo my-dummy"}
6371
[tool.pixi.feature.build]
6472
pypi-dependencies = {build = "*"}
6573
tasks = {build-dist = "python -m build"}
66-
[tool.pixi.feature.docs]
74+
[tool.pixi.feature.sphinx]
6775
dependencies = {sphinx = "*", sphinx-book-theme = "*"}
6876
tasks = {build-docs = "sphinx-build -M html docs/source docs/build"}
69-
[tool.pixi.feature.test]
77+
[tool.pixi.feature.pytest]
7078
dependencies = {pytest = "*"}
7179
tasks = {test = "echo dummy test passes"}
72-
[tool.pixi.feature.py3]
73-
dependencies = {python = ">=3.11"}
80+
[tool.pixi.feature.marimo]
81+
dependencies = {marimo = "0.13.*"}
82+
tasks = {tutorial = "marimo edit tutorial.py"}
7483
[tool.pixi.feature.py311]
7584
dependencies = {python = "3.11.*"}
7685
[tool.pixi.feature.py312]
7786
dependencies = {python = "3.12.*"}
78-
[tool.pixi.feature.py313]
79-
dependencies = {python = "3.13.*"}
87+
# [tool.pixi.feature.py313]
88+
# dependencies = {python = "3.13.*"}
8089

8190
### pixi: environments
8291
[tool.pixi.environments]
83-
dev = { features = ["dev", "fmt", "test"], solve-group = "default" }
84-
fmt = { features = ["fmt", "py3"], no-default-feature = true }
85-
build = { features = ["build", "py3"], no-default-feature = true }
86-
docs = { features = ["docs", "py3"], no-default-feature = true }
87-
test-py311 = { features = ["prod", "test", "py311"], solve-group = "py311" }
88-
test-py312 = { features = ["prod", "test", "py312"], solve-group = "py312" }
89-
test-py313 = { features = ["prod", "test", "py313"], solve-group = "py313" }
92+
dev = { features = ["self", "ruff", "pytest"], solve-group = "default" }
93+
fmt = { features = ["ruff", "py312"], no-default-feature = true }
94+
dist = { features = ["build", "py312"], no-default-feature = true }
95+
docs = { features = ["sphinx", "py312"], no-default-feature = true }
96+
test-py311 = { features = ["self", "fans", "pytest", "py311"], solve-group = "py311" }
97+
test-py312 = { features = ["self", "fans", "pytest", "py312"], solve-group = "py312" }
98+
# test-py313 = { features = ["self", "fans", "pytest", "py313"], solve-group = "py313" }
99+
tutorial = { features = ["plugin", "fans", "marimo"], no-default-feature = true}
90100

91101

92102
## Build Tools: setuptools_scm
@@ -95,7 +105,10 @@ version_file = "src/aiida_fans/_version.py"
95105

96106
## Style Tools: ruff
97107
[tool.ruff]
98-
extend-exclude = ["conf.py"]
108+
extend-exclude = [
109+
"conf.py",
110+
"tutorial.py"
111+
]
99112
line-length = 120
100113
[tool.ruff.lint]
101114
ignore = [

0 commit comments

Comments
 (0)