From e22897451fd27af505955a52632873116f6aca69 Mon Sep 17 00:00:00 2001 From: Dacheng Xu Date: Mon, 5 Feb 2024 16:26:20 +0800 Subject: [PATCH] Use poetry to install the package (#115) --- pyproject.toml | 59 +++++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6d3d6acd..ee4a66b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,39 +1,44 @@ -[build-system] -requires = ["setuptools>=61.0"] -build-backend = "setuptools.build_meta" - -[project] +[tool] +[tool.poetry] name = "fuse" version = "0.3.0" +description = "XENON Framework for Unified Simulations of Events" authors = [ - { name="Henning Schulze Eißing", email="h_schu55@uni-muenster.de" }, - { name="Diego Ramírez García", email="diego.ramirez@physik.uzh.ch" } + "Henning Schulze Eißing, ", + "Diego Ramírez García, ", ] -description = "XENON Framework for Unified Simulations of Events" readme = "README.md" requires-python = ">=3.9" +homepage = "https://github.com/XENONnT/fuse" classifiers = [ - "Programming Language :: Python :: 3", + "Development Status :: 2 - Pre-Alpha", + "Natural Language :: English", "Operating System :: OS Independent", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Intended Audience :: Science/Research", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Physics", ] -dependencies = [ - "numpy", - "pandas", - "scipy", - "scikit-learn", - "immutabledict", - "timeout_decorator", - "nestpy >= 2.0.2", - "numba >= 0.57.0", - "awkward >= 2.2.1", - "uproot >= 5.0.7", - "strax >= 1.6.0", - "straxen >= 2.2.0", +packages = [ + { include = "fuse" }, + { include = "tests", format = "sdist" }, ] -[project.urls] -"Homepage" = "https://github.com/XENONnT/fuse" -"Bug Tracker" = "https://github.com/XENONnT/fuse/issues" +[tool.poetry.dependencies] +numpy = "*" +pandas = "*" +scipy = "*" +scikit-learn = "*" +immutabledict = "*" +timeout_decorator = "*" +nestpy = ">=2.0.2" +numba = ">=0.58.1" +awkward = ">=2.5.1" +uproot = ">=5.2.1" +strax = ">=1.6.0" +straxen = ">=2.2.0" -[tool.setuptools.packages.find] -include = ["fuse*"] +[build-system] +requires = ["poetry-core>=1.0.8", "setuptools"] +build-backend = "poetry.core.masonry.api"