Skip to content

Commit b090ffd

Browse files
authored
Merge pull request #134 from tacaswell/bld/inc_input_data
Bld/inc input data
2 parents 7abd3c8 + a08cf50 commit b090ffd

File tree

7 files changed

+133
-4
lines changed

7 files changed

+133
-4
lines changed

.github/workflows/smoke_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ jobs:
4545
# run install to see if it works
4646
- name: Build
4747
run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} install${{ matrix.os.cmd_extra }}
48+
49+
- name: test
50+
run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} test

GSASII/inputs/meson.build

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
foreach file: ['DefaultExpressions.txt', 'OriginTemplate2.otpu', 'versioninfo.txt', 'Xsect.dat']
2+
3+
install_data(
4+
file,
5+
install_tag: 'data',
6+
install_dir: py.get_install_dir(subdir: 'GSASII/inputs')
7+
)
8+
9+
endforeach
10+
11+
install_subdir(
12+
'GSASIImacros',
13+
install_tag: 'data',
14+
install_dir: py.get_install_dir(subdir: 'GSASII/inputs')
15+
)

GSASII/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ subdir('NIST_profile')
7575
subdir('imports')
7676
subdir('exports')
7777
subdir('icons')
78+
subdir('inputs')

pixi/pixi.lock

Lines changed: 103 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi/pixi.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ install-editable-win = { cmd = "pip install -ve . --no-build-isolation" , cwd='
2727
build-and-go ={ depends_on= ["install", "ui"]}
2828
build-and-go-win ={ depends_on= ["install-win", "ui"]}
2929

30+
test = {cmd = "python -m pytest ../" }
31+
3032
ui = "python -m GSASII"
3133

3234

@@ -54,6 +56,7 @@ xmltodict = ">=0.14.2,<0.15"
5456
compilers = ">=1.8.0,<2"
5557
clang = ">=17.0.6,<20"
5658
pycifrw = ">=4.4.0"
59+
pytest = ">=8.3.4,<9"
5760

5861
[feature.py311.dependencies]
5962
python = "<3.12,>=3.11"

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ authors = [
2020
description = "Structural analysis from neutron and x-ray diffraction"
2121
readme = "README.md"
2222
license.file = "LICENSE"
23-
requires-python = ">=3.9"
23+
requires-python = ">=3.10"
2424
classifiers = [
2525
"Development Status :: 5 - Production/Stable",
2626
"Intended Audience :: Science/Research",
@@ -29,12 +29,11 @@ classifiers = [
2929
"Programming Language :: Fortran",
3030
"Programming Language :: Python :: Implementation :: CPython",
3131
"Programming Language :: Python :: 3 :: Only",
32-
"Programming Language :: Python :: 3.9",
3332
"Programming Language :: Python :: 3.10",
3433
"Programming Language :: Python :: 3.11",
35-
"Programming Language :: Python :: 3.12", # in progress
34+
"Programming Language :: Python :: 3.12",
35+
"Programming Language :: Python :: 3.13",
3636
"Topic :: Scientific/Engineering",
37-
"Typing :: Typed",
3837
]
3938
keywords = ["diffraction", "crystallography", "diffraction",
4039
"powder diffraction", "SAXS", "reflectometry","neutron diffraction", "Rietveld"]

tests/test_elm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from GSASII import GSASIIElem
2+
3+
def test_get_xsection():
4+
xsection = GSASIIElem.GetXsectionCoeff('Fe')
5+
assert len(xsection) > 0

0 commit comments

Comments
 (0)