From f1b9eccf6b9190ddb31a344c622024a103cf3081 Mon Sep 17 00:00:00 2001 From: MialLewis <95620982+MialLewis@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:45:35 +0000 Subject: [PATCH] add toml and scripts dir --- EVSVesuvio/scripts/__init__.py | 8 ++++ pyproject.toml | 84 ++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 EVSVesuvio/scripts/__init__.py create mode 100644 pyproject.toml diff --git a/EVSVesuvio/scripts/__init__.py b/EVSVesuvio/scripts/__init__.py new file mode 100644 index 00000000..98cd182f --- /dev/null +++ b/EVSVesuvio/scripts/__init__.py @@ -0,0 +1,8 @@ +"""Package defining top-level application +and entry points. +""" + +def main(): + """Placeholder. + """ + print("TEST_VESUVIO_LAUNCH") diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..c7d4840b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,84 @@ +[build-system] +requires = ["setuptools >= 65.0.0", + "wheel", + "versioningit",] +build-backend = "setuptools.build_meta" + +[project] +name = "mvesuvio" +dynamic = ["version"] +authors = [ + {name = "The Mantid Project", email = "mantid-help@mantidproject.org"}, + {name = "Guilherme Pereira", email = "gui.maciel-pereira@stfc.ac.uk"}, + {name = "More Credit", email = "here@stfc.ac.uk"}, +] +description = "Analyse Vesuvio instrument data" +readme = "README.md" +requires-python = "==3.8.*" +classifiers = [ + "Programming Language :: Python :: 3.8", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: OS Independent", + "Topic :: Scientific/Engineering", +] +dependencies = [ + "matplotlib", + "iminuit", + "h5py", + "jacobi==0.4.2", +] + +[project.optional-dependencies] +tests_require = [ + "coverage", + "mock>=2.0", + "pytest", +] + +[project.urls] +"Repository" = "https://github.com/mantidproject/vesuvio" +"Bug Tracker" = "https://github.com/mantidproject/vesuvio/issues" + +[project.entry-points] +console_scripts = { mvesuvio = "EVSVesuvio.scripts:main" } + +[tool.setuptools.packages.find] +where = ["EVSVesuvio"] + +[tool.setuptools.package-data] +"EVSvesuvio.vesuvio_analysis" = ["*.OPJ", "*.par", "*.DAT", "*.DAT3", "*.DAT6", "*.txt"] +"EVSvesuvio.experiments" = ["*.NXS", "*.nxs", "*.npz", "*.txt"] + +[tool.pytest.ini_options] +pythonpath = ["."] +testpaths = ["EVSVesuvio/system_tests"] +filterwarnings = ["error"] + +[tool.coverage.report] +include = [ + "*/EVSVesuvio/vesuvio_analysis/*", +] + +omit = [ + "*tests*", + "*unpackaged*", +] + +fail_under = 0 +show_missing = true +skip_empty = true + +[tool.versioningit.vcs] +method = "git" +default-tag = "0.0.0" + +[tool.versioningit.next-version] +method = "minor" + +[tool.versioningit.format] +distance = "{version}.dev{distance}" +dirty = "{version}+uncommitted" +distance-dirty = "{version}.dev{distance}+uncommitted" + +[tool.versioningit.write] +file = "EVSVesuvio/__init__.py" \ No newline at end of file