From c1bfa76abcd854581ad0582671c86ca8176d4041 Mon Sep 17 00:00:00 2001 From: Tieqiong Zhang Date: Thu, 24 Oct 2024 15:27:35 -0400 Subject: [PATCH 1/4] add app sripts, fix python version, small updates anyeye --- pyproject.toml | 5 ++++- src/diffpy/structure/apps/anyeye.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 147c3705..16875161 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ maintainers = [ description = "Crystal structure container and parsers for structure formats." keywords = ['diffpy', 'crystal structure data storage CIF PDB'] readme = "README.rst" -requires-python = ">=3.10" +requires-python = ">=3.10, < 3.13" classifiers = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', @@ -36,6 +36,9 @@ classifiers = [ Homepage = "https://github.com/diffpy/diffpy.structure/" Issues = "https://github.com/diffpy/diffpy.structure/issues/" +[project.scripts] +transtru = "diffpy.structure.apps.transtru:main" + [tool.setuptools-git-versioning] enabled = true template = "{tag}" diff --git a/src/diffpy/structure/apps/anyeye.py b/src/diffpy/structure/apps/anyeye.py index fbf549ca..b7904d8e 100755 --- a/src/diffpy/structure/apps/anyeye.py +++ b/src/diffpy/structure/apps/anyeye.py @@ -265,7 +265,7 @@ def main(): spawnargs = (pd["viewer"], pd["viewer"], pd["tmpfile"], env) # load strufile in atomeye if pd["watch"]: - signal.signal(signal.SIGCLD, signalHandler) + signal.signal(signal.SIGCHLD, signalHandler) os.spawnlpe(os.P_NOWAIT, *spawnargs) watchStructureFile(pd) else: From 959e5be971c228e8c39cfa698f155d3221c411ef Mon Sep 17 00:00:00 2001 From: Tieqiong Zhang Date: Thu, 24 Oct 2024 15:32:47 -0400 Subject: [PATCH 2/4] add news --- news/toml.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 news/toml.rst diff --git a/news/toml.rst b/news/toml.rst new file mode 100644 index 00000000..600d0d47 --- /dev/null +++ b/news/toml.rst @@ -0,0 +1,24 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* Added termial script for transtru app in pyproject.toml +* Changed requires-python to align with classifiers + +**Security:** + +* From 6fa73b649fb73b267e7cede848064432d5ec81eb Mon Sep 17 00:00:00 2001 From: Tieqiong Zhang Date: Thu, 24 Oct 2024 15:33:35 -0400 Subject: [PATCH 3/4] change <3.13 to <=3.12 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 16875161..b64a1346 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ maintainers = [ description = "Crystal structure container and parsers for structure formats." keywords = ['diffpy', 'crystal structure data storage CIF PDB'] readme = "README.rst" -requires-python = ">=3.10, < 3.13" +requires-python = ">=3.10, <=3.12" classifiers = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', From 6b4a018e24cfbcf17a8a46dbfbf4c68e8b248d2f Mon Sep 17 00:00:00 2001 From: Tieqiong Zhang Date: Thu, 24 Oct 2024 15:39:12 -0400 Subject: [PATCH 4/4] change <=3.12 back to <3.13 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b64a1346..6076df58 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ maintainers = [ description = "Crystal structure container and parsers for structure formats." keywords = ['diffpy', 'crystal structure data storage CIF PDB'] readme = "README.rst" -requires-python = ">=3.10, <=3.12" +requires-python = ">=3.10, <3.13" classifiers = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Console',