From 7ef42fe005662942835474d8114617db51c1fc5e Mon Sep 17 00:00:00 2001 From: bra-fsn Date: Wed, 20 Dec 2023 13:51:51 +0100 Subject: [PATCH] Switch to pyproject.toml --- pyproject.toml | 34 ++++++++++++++++++++++++++++++++++ setup.py | 29 ----------------------------- 2 files changed, 34 insertions(+), 29 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..6645215 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +[project] +name = "cloudperf" +description = "Relative performance index for cloud services" +readme = "README.md" +requires-python = ">=3.8" +authors = [ + {name = "NAGY, Attila", email = "nagy.attila@gmail.com" } +] +dependencies = [ + "cachetools", + "click>=7.0", + "boto3>=1.9.61", + "pandas", + "requests", + "python-dateutil", + "paramiko", + "pytimeparse", +] +dynamic = ["version"] +classifiers=[ + "Programming Language :: Python", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[project.urls] +"Homepage" = "https://github.com/bra-fsn/cloudperf" +"Source" = "https://github.com/bra-fsn/cloudperf" + +[project.scripts] +cloudperf = "cloudperf.cli:main" + +[tool.setuptools.dynamic] +version = {attr = "cloudperf.__version__"} \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 105e39e..0000000 --- a/setup.py +++ /dev/null @@ -1,29 +0,0 @@ -import io -import re -import setuptools - -with io.open("README.md", "rt", encoding="utf8") as f: - long_description = f.read() - -with io.open("cloudperf/__init__.py", "rt", encoding="utf8") as f: - version = re.search(r"__version__ = \'(.*?)\'", f.read()).group(1) - -setuptools.setup( - name="cloudperf", - version=version, - author="NAGY, Attila", - author_email="nagy.attila@gmail.com", - description="Relative performance index for cloud services", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/bra-fsn/cloudperf", - packages=setuptools.find_packages(), - scripts=['bin/cloudperf'], - install_requires=['cachetools', 'click>=7.0', 'boto3>=1.9.61', 'pandas', 'requests', - 'python-dateutil', 'paramiko', 'pytimeparse'], - classifiers=[ - "Programming Language :: Python", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - ], -)