Skip to content

Commit 380c1fa

Browse files
committed
Switch from setup.py to pyproject.toml
pyproject.toml is preferred over setup.py for situations like this: https://packaging.python.org/en/latest/guides/modernize-setup-py-project/
1 parent 5da54fc commit 380c1fa

2 files changed

Lines changed: 34 additions & 31 deletions

File tree

pyproject.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "OMPython"
7+
version = "3.6.0"
8+
description = "OpenModelica-Python API Interface"
9+
readme = "README.md"
10+
authors = [
11+
{name = "Anand Kalaiarasi Ganeson", email = "ganan642@student.liu.se"},
12+
]
13+
maintainers = [
14+
{name = "Adeel Asghar", email = "adeel.asghar@liu.se"},
15+
]
16+
license = "BSD-3-Clause OR LicenseRef-OSMC-PL-1.2 OR GPL-3.0-only"
17+
requires-python = ">=3.8"
18+
dependencies = [
19+
"numpy",
20+
"psutil",
21+
"pyparsing",
22+
"pyzmq",
23+
]
24+
25+
[tool.setuptools]
26+
packages = ["OMPython", "OMPython.OMParser"]
27+
28+
[project.urls]
29+
Homepage = "http://openmodelica.org/"
30+
Documentation = "https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/ompython.html"
31+
"Source Code" = "https://github.com/OpenModelica/OMPython"
32+
Issues = "https://github.com/OpenModelica/OMPython/issues"
33+
"Release Notes" = "https://github.com/OpenModelica/OMPython/releases"
34+
Download = "https://pypi.org/project/OMPython/#files"

setup.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)