Skip to content

Commit

Permalink
add toml and scripts dir
Browse files Browse the repository at this point in the history
  • Loading branch information
MialLewis committed Nov 9, 2023
1 parent c483975 commit f1b9ecc
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
8 changes: 8 additions & 0 deletions EVSVesuvio/scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""Package defining top-level application
and entry points.
"""

def main():
"""Placeholder.
"""
print("TEST_VESUVIO_LAUNCH")
84 changes: 84 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]"},
{name = "Guilherme Pereira", email = "[email protected]"},
{name = "More Credit", email = "[email protected]"},
]
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"

0 comments on commit f1b9ecc

Please sign in to comment.