Skip to content

Commit aef5a64

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/main' into create_mesh_visualization
# Conflicts: # structuretoolkit/visualize.py
2 parents c27ab21 + 8fc7273 commit aef5a64

Some content is hidden

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

55 files changed

+1290
-460
lines changed

.ci_support/environment-old.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies:
99
- phonopy =2.16.2
1010
- plotly =4.14.3
1111
- pymatgen =2022.2.1
12-
- pyscal =2.10.4
12+
- pyscal3 =3.2.5
1313
- pyxtal =0.5.5
1414
- scikit-learn =1.2.1
1515
- scipy =1.9.3

.ci_support/environment.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1+
name: pyiron-structuretoolkit
12
channels:
23
- conda-forge
34
dependencies:
45
- aimsgb =1.1.1
5-
- ase =3.22.1
6+
- ase =3.23.0
67
- coverage
7-
- dscribe =2.1.0
8-
- matplotlib-base =3.8.4
8+
- dscribe =2.1.1
9+
- matplotlib-base =3.9.1
910
- nglview =3.1.2
1011
- notebook
1112
- numpy =1.26.4
12-
- phonopy =2.23.1
13+
- phonopy =2.26.5
1314
- plotly =5.22.0
14-
- pymatgen =2024.5.1
15-
- pyscal =2.10.18
16-
- pyxtal =0.6.6
17-
- scikit-learn =1.4.2
18-
- scipy =1.13.0
19-
- spglib =2.3.1
15+
- pymatgen =2024.6.10
16+
- pyscal3 =3.2.6
17+
- pyxtal =0.6.7
18+
- scikit-learn =1.5.1
19+
- scipy =1.14.0
20+
- spglib =2.5.0
2021
- sqsgenerator =0.3

.ci_support/environment_mini.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
channels:
22
- conda-forge
33
dependencies:
4-
- ase =3.22.1
4+
- ase =3.23.0
55
- coverage
66
- numpy =1.26.4
7-
- scipy =1.13.0
7+
- scipy =1.14.0

.ci_support/release.py

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
def get_setup_version_and_pattern(setup_content):
22
depend_lst, version_lst = [], []
33
for l in setup_content:
4-
if '==' in l:
5-
lst = l.split('[')[-1].split(']')[0].replace(' ', '').replace('"', '').replace("'", '').split(',')
4+
if "==" in l:
5+
lst = (
6+
l.split("[")[-1]
7+
.split("]")[0]
8+
.replace(" ", "")
9+
.replace('"', "")
10+
.replace("'", "")
11+
.split(",")
12+
)
613
for dep in lst:
7-
if dep != '\n':
8-
version_lst.append(dep.split('==')[1])
9-
depend_lst.append(dep.split('==')[0])
14+
if dep != "\n":
15+
version_lst.append(dep.split("==")[1])
16+
depend_lst.append(dep.split("==")[0])
1017

1118
version_high_dict = {d: v for d, v in zip(depend_lst, version_lst)}
1219
return version_high_dict
@@ -16,14 +23,14 @@ def get_env_version(env_content):
1623
read_flag = False
1724
depend_lst, version_lst = [], []
1825
for l in env_content:
19-
if 'dependencies:' in l:
26+
if "dependencies:" in l:
2027
read_flag = True
2128
elif read_flag:
22-
lst = l.replace('-', '').replace(' ', '').replace('\n', '').split("=")
29+
lst = l.replace("-", "").replace(" ", "").replace("\n", "").split("=")
2330
if len(lst) == 2:
2431
depend_lst.append(lst[0])
2532
version_lst.append(lst[1])
26-
return {d:v for d, v in zip(depend_lst, version_lst)}
33+
return {d: v for d, v in zip(depend_lst, version_lst)}
2734

2835

2936
def update_dependencies(setup_content, version_low_dict, version_high_dict):
@@ -35,27 +42,29 @@ def update_dependencies(setup_content, version_low_dict, version_high_dict):
3542
version_combo_dict[dep] = dep + "==" + ver
3643

3744
setup_content_new = ""
38-
pattern_dict = {d:d + "==" + v for d, v in version_high_dict.items()}
45+
pattern_dict = {d: d + "==" + v for d, v in version_high_dict.items()}
3946
for l in setup_content:
4047
for k, v in pattern_dict.items():
4148
if v in l:
4249
l = l.replace(v, version_combo_dict[k])
43-
setup_content_new +=l
50+
setup_content_new += l
4451
return setup_content_new
4552

4653

4754
if __name__ == "__main__":
48-
with open('pyproject.toml', "r") as f:
55+
with open("pyproject.toml", "r") as f:
4956
setup_content = f.readlines()
5057

51-
with open('environment.yml', "r") as f:
58+
with open("environment.yml", "r") as f:
5259
env_content = f.readlines()
5360

5461
setup_content_new = update_dependencies(
5562
setup_content=setup_content[2:],
5663
version_low_dict=get_env_version(env_content=env_content),
57-
version_high_dict=get_setup_version_and_pattern(setup_content=setup_content[2:]),
64+
version_high_dict=get_setup_version_and_pattern(
65+
setup_content=setup_content[2:]
66+
),
5867
)
5968

60-
with open('pyproject.toml', "w") as f:
69+
with open("pyproject.toml", "w") as f:
6170
f.writelines("".join(setup_content[:2]) + setup_content_new)

.github/workflows/black.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
push:
77
branches: [ main ]
88
pull_request:
9-
branches: [ main ]
109

1110
jobs:
1211
build:

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
id-token: write
2020
steps:
2121
- uses: actions/checkout@v4
22-
- uses: conda-incubator/setup-miniconda@v2.2.0
22+
- uses: conda-incubator/setup-miniconda@v3
2323
with:
2424
python-version: "3.12"
2525
mamba-version: "*"

.github/workflows/mini.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
push:
77
branches: [ main ]
88
pull_request:
9-
branches: [ main ]
109

1110
env:
1211
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -19,7 +18,7 @@ jobs:
1918
steps:
2019
- uses: actions/checkout@v4
2120
- name: Setup Mambaforge
22-
uses: conda-incubator/setup-miniconda@v2
21+
uses: conda-incubator/setup-miniconda@v3
2322
with:
2423
python-version: '3.12'
2524
miniforge-variant: Mambaforge

.github/workflows/pypicheck.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
push:
77
branches: [ main ]
88
pull_request:
9-
branches: [ main ]
109

1110
jobs:
1211
build:
@@ -16,7 +15,7 @@ jobs:
1615
steps:
1716
- uses: actions/checkout@v4
1817
- name: Setup Mambaforge
19-
uses: conda-incubator/setup-miniconda@v2
18+
uses: conda-incubator/setup-miniconda@v3
2019
with:
2120
python-version: '3.12'
2221
miniforge-variant: Mambaforge

.github/workflows/unittests.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
push:
77
branches: [ main ]
88
pull_request:
9-
branches: [ main ]
109

1110
env:
1211
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -44,18 +43,13 @@ jobs:
4443
label: linux-64-py-3-10
4544
prefix: /usr/share/miniconda3/envs/my-env
4645

47-
- operating-system: ubuntu-latest
48-
python-version: '3.9'
49-
label: linux-64-py-3-9
50-
prefix: /usr/share/miniconda3/envs/my-env
51-
5246
steps:
5347
- uses: actions/checkout@v4
5448
- name: Merge conda environment
5549
if: matrix.operating-system != 'windows-latest'
5650
run: tail --lines=+4 .ci_support/environment-lammps.yml >> .ci_support/environment.yml
5751
- name: Setup Mambaforge
58-
uses: conda-incubator/setup-miniconda@v2
52+
uses: conda-incubator/setup-miniconda@v3
5953
with:
6054
python-version: ${{ matrix.python-version }}
6155
miniforge-variant: Mambaforge

.github/workflows/unittests_old.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
push:
77
branches: [ main ]
88
pull_request:
9-
branches: [ main ]
109

1110
jobs:
1211
build:
@@ -15,7 +14,7 @@ jobs:
1514
steps:
1615
- uses: actions/checkout@v4
1716
- name: Setup Mambaforge
18-
uses: conda-incubator/setup-miniconda@v2
17+
uses: conda-incubator/setup-miniconda@v3
1918
with:
2019
python-version: '3.9'
2120
miniforge-variant: Mambaforge

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.5.2
4+
hooks:
5+
- id: ruff
6+
name: ruff lint
7+
args: ["--select", "I", "--fix"]
8+
files: ^structuretoolkit/
9+
- id: ruff-format
10+
name: ruff format

pyproject.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ classifiers = [
2424
"Programming Language :: Python :: 3.12",
2525
]
2626
dependencies = [
27-
"ase==3.22.1",
27+
"ase==3.23.0",
2828
"numpy==1.26.4",
29-
"scipy==1.13.0",
29+
"scipy==1.14.0",
3030
]
3131
dynamic = ["version"]
3232

@@ -36,26 +36,26 @@ Documentation = "https://github.com/pyiron/structuretoolkit"
3636
Repository = "https://github.com/pyiron/structuretoolkit"
3737

3838
[project.optional-dependencies]
39-
dscribe = ["dscribe==2.1.0"]
39+
dscribe = ["dscribe==2.1.1"]
4040
grainboundary = [
4141
"aimsgb==1.1.1",
42-
"pymatgen==2024.5.1",
42+
"pymatgen==2024.6.10",
4343
]
44-
pyscal = ["pyscal2==2.10.18"]
44+
pyscal = ["pyscal3==3.2.6"]
4545
nglview = ["nglview==3.1.2"]
46-
matplotlib = ["matplotlib==3.8.4"]
46+
matplotlib = ["matplotlib==3.9.1"]
4747
plotly = ["plotly==5.22.0"]
48-
clusters = ["scikit-learn==1.4.2"]
49-
symmetry = ["spglib==2.3.1"]
48+
clusters = ["scikit-learn==1.5.1"]
49+
symmetry = ["spglib==2.5.0"]
5050
surface = [
51-
"spglib==2.3.1",
52-
"pymatgen==2024.5.1",
51+
"spglib==2.5.0",
52+
"pymatgen==2024.6.10",
5353
]
5454
phonopy = [
55-
"phonopy==2.23.1",
56-
"spglib==2.4.0",
55+
"phonopy==2.26.5",
56+
"spglib==2.5.0",
5757
]
58-
pyxtal = ["pyxtal==0.6.6"]
58+
pyxtal = ["pyxtal==0.6.7"]
5959

6060
[tool.setuptools.packages.find]
6161
include = ["structuretoolkit*"]

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
from setuptools import setup
2-
31
import versioneer
2+
from setuptools import setup
43

54
setup(
65
version=versioneer.get_version(),
76
cmdclass=versioneer.get_cmdclass(),
8-
)
7+
)

0 commit comments

Comments
 (0)