From 527b00076cd98e5e6e251b9cfb9c2fc99b0ef97c Mon Sep 17 00:00:00 2001 From: Ishaan Desai Date: Tue, 19 Mar 2024 09:44:08 +0100 Subject: [PATCH 01/10] Add pyproject.toml --- pyproject.toml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 34 ++-------------------------------- 2 files changed, 48 insertions(+), 32 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..352b4ae3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,46 @@ +[build-system] +requires = ["setuptools>=41", "wheel", "setuptools-git-versioning"] +build-backend = "setuptools.build_meta" + +[project] +name="micro-manager-precice" +dynamic = [ "version" ] +dependencies = [ + "lxml", "pydot", "xdot", "PyGObject" +] +requires-python = ">=3.8" +authors = [ + { name = "Ishaan Desai", email="ishaan.desai@ipva.uni-stuttgart.de"} +] +maintainers = [ + { name = "Ishaan Desai", email="ishaan.desai@ipvs.uni-stuttgart.de"} +] +description="A tool which facilitates two-scale macro-micro coupled simulations using preCICE." +readme = "README.md" +license={ text = "GPLv3" } +keywords = [ "preCICE", "multiscale", "coupling" ] +classifiers=[ +"Development Status :: 4 - Beta", +"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", +"Programming Language :: Python :: 3 :: Only", +"Programming Language :: Python :: 3.8", +Topic :: Scientific/Engineering +] + +[project.urls] +Homepage = "https://precice.org" +Documentation = "https://precice.org/tooling-micro-manager-overview.html" +Repository = "https://github.com/precice/micro-manager" +"Bug Tracker" = "https://github.com/precice/micro-manager/issues" + +[project.scripts] +precice-config-visualizer = "preciceconfigvisualizer.cli:main" + +[project.gui-scripts] +precice-config-visualizer-gui = "preciceconfigvisualizer.gui:main" + +[tool.setuptools] +packages=["preciceconfigvisualizer"] + +[tool.setuptools-git-versioning] +enabled = true diff --git a/setup.py b/setup.py index 90de2a93..60684932 100644 --- a/setup.py +++ b/setup.py @@ -1,33 +1,3 @@ -import os -from setuptools import setup, find_packages +from setuptools import setup -# from https://stackoverflow.com/a/9079062 -import sys -if sys.version_info[0] < 3: - raise Exception("micromanager only supports Python3. Did you run $python setup.py