From 7f737265d1d88d7f1df4efd6a59dec1e9d52b1ca Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Thu, 22 Jun 2023 13:40:34 +0200 Subject: [PATCH] Switch to using pyproject.toml --- Makefile | 2 +- pyproject.toml | 29 ++++++++++++++++++++++++++++- setup.cfg | 10 ---------- 3 files changed, 29 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 9ef9a58..a33b422 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ lint: # build package .PHONY: build build: - python3 -m pip install --upgrade build + python -c "import build" || python3 -m pip install build python3 -m build # upload package to PyPI diff --git a/pyproject.toml b/pyproject.toml index 0eadb5e..cbd635c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,34 @@ [build-system] -requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel"] +requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] build-backend = "setuptools.build_meta" +[project] +name = "cardano-clusterlib" +authors = [ + {name = "Martin Kourim", email = "martin.kourim@iohk.io"}, +] +description = "Python wrapper for cardano-cli for working with cardano cluster" +readme = "README.md" +requires-python = ">=3.8" +keywords = ["cardano", "cardano-node", "cardano-cli", "cardano-node-tests"] +license = {text = "Apache License 2.0"} +classifiers = [ + "Topic :: Software Development :: Libraries :: Python Modules", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Intended Audience :: Developers", +] +dynamic = ["version"] + +[tool.setuptools_scm] + +[project.urls] +homepage = "https://github.com/input-output-hk/cardano-clusterlib-py" +documentation = "https://cardano-clusterlib-py.readthedocs.io/" +repository = "https://github.com/input-output-hk/cardano-clusterlib-py" + [tool.black] line-length = 100 diff --git a/setup.cfg b/setup.cfg index 4697c3a..7cdf36d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,16 +3,6 @@ name = cardano-clusterlib url = https://github.com/input-output-hk/cardano-clusterlib-py maintainer = Martin Kourim maintainer_email = martin.kourim@iohk.io -description = Python wrapper for cardano-cli for working with cardano cluster -long_description = file: README.md -long_description_content_type = text/markdown -classifiers = - Topic :: Software Development :: Libraries :: Python Modules - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Intended Audience :: Developers [options] zip_safe = False