From 66e0342a1b0f9cb0108c86f4b7afe2cf3cfdf6f6 Mon Sep 17 00:00:00 2001
From: Danilo Enoque Ferreira de Lima <danilo.enoque.ferreira.de.lima@xfel.eu>
Date: Tue, 20 Dec 2022 11:13:42 +0100
Subject: [PATCH] Added pyproject.toml.

---
 pes_to_spec/__init__.py                       |  5 ++
 .../test/offline_analysis.py                  |  0
 pyproject.toml                                | 48 +++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 pes_to_spec/__init__.py
 rename scripts/test_analysis.py => pes_to_spec/test/offline_analysis.py (100%)
 create mode 100644 pyproject.toml

diff --git a/pes_to_spec/__init__.py b/pes_to_spec/__init__.py
new file mode 100644
index 0000000..2d96205
--- /dev/null
+++ b/pes_to_spec/__init__.py
@@ -0,0 +1,5 @@
+"""
+Estimate high-resolution photon spectrometer data from low-resolution non-invasive measurements.
+"""
+
+VERSION = "0.0.1"
\ No newline at end of file
diff --git a/scripts/test_analysis.py b/pes_to_spec/test/offline_analysis.py
similarity index 100%
rename from scripts/test_analysis.py
rename to pes_to_spec/test/offline_analysis.py
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..77470f7
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,48 @@
+[build-system]
+requires = ["setuptools", "setuptools-scm"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "pes_to_spec"
+authors = [
+    {author = "Arman Davtyan", email = "arman.davtyan@xfel.eu"},
+    {author = "Danilo Enoque Ferreira de Lima", email = "danilo.enoque.ferreira.de.lima@xfel.eu"},
+    {author = "Thomas Michelat", email = "thomas.michelat@xfel.eu"}
+    ]
+description = "Use low-resolution non-invasive photon spectrometer data to estimate high-resolution images"
+requires-python = ">=3.7"
+keywords = ["supervised learning", "Principal Components Analysis", "photon spectrometer"]
+classifiers = [
+          "Development Status :: 3 - Alpha",
+          "Environment :: Console",
+          "Intended Audience :: Developers",
+          "Intended Audience :: Science/Research",
+          "Operating System :: POSIX :: Linux",
+          "Programming Language :: Python :: 3",
+          "Programming Language :: Python :: 3.7",
+          "Topic :: Scientific/Engineering :: Information Analysis",
+          "Topic :: Scientific/Engineering :: Physics"
+          ]
+dynamic = ["version", "readme"]
+dependencies = [
+          "numpy>=1.21",
+          "scipy>=1.6"
+          "scikit-learn",
+          "autograd",
+          "h5py"
+          ]
+
+[project.optional-dependencies]
+offline = ["matplotlib", "extra_data"]
+
+[project.scripts]
+offline_analysis = "pes_to_spec.test.offline_analysis:main"
+
+[tool.setuptools]
+packages = ["pes_to_spec"]
+include-package-data = true
+zip-safe = false
+
+[tool.setuptools.dynamic]
+version = {attr = "pes_to_spec.VERSION"}
+readme = {file = ["README.md"]}
-- 
GitLab