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:** + +* diff --git a/pyproject.toml b/pyproject.toml index 147c3705..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" +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: