Skip to content

Commit

Permalink
Switch from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
* Add draft of pyproject.toml

* Remove setup.py content
  • Loading branch information
uekerman authored Mar 15, 2024
1 parent b451610 commit 36b4d9b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 25 deletions.
43 changes: 43 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[build-system]
requires = ["setuptools>=41", "wheel", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"

[project]
name="fmiprecice"
dynamic = [ "version" ]
dependencies = [
"fmpy", "numpy", "pyprecice>=3.0"
]
requires-python = ">=3.8"
authors = [
{ name = "The preCICE Developers", email="info@precice.org"}
]
maintainers = [
{ name = "Benjamin Uekermann", email="benjamin.uekermann@ipvs.uni-stuttgart.de"}
]
description="A tool to co-simulate FMU models with the coupling library preCICE."
readme = "README.md"
license={ text = "LGPL-3.0" }
keywords = [ "preCICE", "FMI", "ODE", "controller", "PDE", "coupling" ]
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU LESSER General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: TODO",
]

[project.urls]
Homepage = "https://precice.org"
Documentation = "https://precice.org/tooling-fmi-runner.html"
Repository = "https://github.com/precice/fmi-runner"
"Bug Tracker" = "https://github.com/precice/fmi-runner/issues"

[project.scripts]
fmiprecice = "fmiprecice.runner:main"

[tool.setuptools]
packages=["fmiprecice"]

[tool.setuptools-git-versioning]
enabled = true
26 changes: 1 addition & 25 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
import os
from setuptools import setup


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()


setup(
name='fmiprecice',
version='0.1.0',
author="Leonard Willeke",
author_email="st150067@stud.uni-stuttgart.de",
description="A tool to co-simulate FMU models with the coupling library preCICE.",
license="LGPL-3.0",
url="https://github.com/precice/fmi-runner",
packages=['fmiprecice'],
long_description=read('README.md'),
python_requires=">=3.0",
install_requires=[
'pyprecice>=2.0',
'fmpy',
'numpy',
],
entry_points={
'console_scripts': ['fmiprecice=fmiprecice.runner:main']},
)
setup()

0 comments on commit 36b4d9b

Please sign in to comment.