From 7a3e31c9033eb55a25451f936b7936b3123bf7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Wed, 25 Jun 2025 11:27:12 +0200 Subject: [PATCH] add --- pyproject.toml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9d8e677 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,69 @@ +[project] +name = "optifik" +version = "0.1.0" +description = "Compute film thickness from interferometry" +authors = [ + { name = "François Boulogne", email = "francois.boulogne@cnrs.fr" }, + { name = "Victor Ziapkoff", email = "victor.ziapkoff@universite-paris-saclay.fr" }, +] +license = "GPL-3.0-or-later" +readme = "README.md" +requires-python = ">=3.13" +dependencies = [ + "numpy>=1.10.0", + "scipy>=1.1.0", + "matplotlib>=1.3.1", +] + +[tool.setuptools] +packages = ["optifik"] + + +[project.urls] +Homepage = "https://github.com/votrecompte/votreprojet" +Documentation = "https://github.com/votrecompte/votreprojet#readme" +Repository = "https://github.com/sciunto-org/optifik" +Issues = "https://github.com/sciunto-org/optifik/issues" + + +[project.optional-dependencies] +dev = [ + "pytest", + "pytest-cov", + "bumpver" +] + +docs = [ + "sphinx>=7.0", + "sphinx-rtd-theme>=2.0", + "numpydoc>=1.6", + "myst-parser>=2.0", # Markdown + reStructuredText + "sphinx-autodoc-typehints>=2.0", + "sphinx-copybutton>=0.5", + "sphinx-design>=0.5", + #"matplotlib>=3.0", # For plots in docstring +] + +[tool.setuptools.package-data] +optifik = ["data/*"] + +[tool.pytest.ini_options] +#addopts = "-v --tb=short --disable-warnings" +testpaths = ["tests"] +python_files = "test_*.py" +pythonpath = ["."] + +[tool.coverage.run] +source = ["optifik"] +omit = ["optifik/tests/*"] + +[tool.bumpver] +current_version = "0.1.0" +version_pattern = "MAJOR.MINOR.PATCH" +commit = true +tag = true + +[tool.bumpver.file_patterns] +"pyproject.toml" = ['current_version = "{version}"', 'version = "{version}"'] +"optifik/__init__.py" = ['__version__ = "{version}"'] +