From 705dc36ed933cd4a2d650194da5b3a813ad48258 Mon Sep 17 00:00:00 2001 From: Lukas Kluft <lukas.kluft@gmail.com> Date: Tue, 16 Aug 2022 15:30:41 +0200 Subject: [PATCH] Switch to setup.cfg and pytproject.toml For further information see PEP517/518 --- pyproject.toml | 3 +++ setup.cfg | 12 ++++++++++++ setup.py | 15 +++------------ 3 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..556c384 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=42", "wheel"] # PEP 508 specifications. +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..422109f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,12 @@ +[metadata] +name = moist_thermodynamics +version = 0.5.0 +description = Constants and functions for the treatment of moist atmospheric thermodynamics. +long_description = file: README.md +license = BSD 3-Clause License + +[options] +packages = find: +install_requires = + numpy + scipy diff --git a/setup.py b/setup.py index a8d2f2a..b024da8 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,4 @@ -# content of setup.py -from setuptools import setup, find_packages +from setuptools import setup -setup( - name="moist_thermodynamics", - version="0.5", - description="Constants and functions for the treatment of moist atmospheric thermodynamics", - packages=find_packages(), - install_requires=[ - "numpy", - "scipy", - ], -) + +setup() -- GitLab