From f8d05babd77d7209b085b25c800ed3bfafac5e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Sun, 29 Jun 2025 20:39:23 +0200 Subject: [PATCH] Migrate to PEP 621 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juan Luis Cano Rodríguez --- pyproject.toml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 5 +---- setup.py | 49 ------------------------------------------ 3 files changed, 59 insertions(+), 53 deletions(-) delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index b46cac5..0c5aa2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,61 @@ +[build-system] +build-backend = "setuptools.build_meta" +requires = ["setuptools"] + +[project] +name = "podman-compose" +authors = [ + { email = "alsadi@gmail.com", name = "Muayyad Alsadi" }, +] +description = "A script to run docker-compose.yml using podman" +dependencies = [ + "python-dotenv", + "pyyaml", +] +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Topic :: Software Development :: Build Tools", +] +keywords = [ + "podman", + "podman-compose", +] +dynamic = ["version", "readme"] + +[project.urls] +homepage = "https://github.com/containers/podman-compose" + +[project.license] +text = "GPL-2.0-only" + +[project.optional-dependencies] +devel = [ + "coverage", + "parameterized", + "pre-commit", + "ruff", +] + +[project.scripts] +podman-compose = "podman_compose:main" + +[tool.setuptools] +py-modules = ["podman_compose"] + +[tool.setuptools.dynamic] +readme = {file = ["README.md"], content-type = "text/markdown"} +version = {attr = "podman_compose.__version__"} + [tool.ruff] line-length = 100 target-version = "py38" diff --git a/setup.cfg b/setup.cfg index f0e43ff..7e502cf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,11 +1,8 @@ [bdist_wheel] universal = 1 -[metadata] -version = attr: podman_compose.__version__ - [flake8] # The GitHub editor is 127 chars wide max-line-length=127 # These are not being followed yet -ignore=E222,E231,E272,E713,W503 \ No newline at end of file +ignore=E222,E231,E272,E713,W503 diff --git a/setup.py b/setup.py deleted file mode 100644 index 383e2e1..0000000 --- a/setup.py +++ /dev/null @@ -1,49 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -import os - -from setuptools import setup - -try: - README = open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8").read() -except: # noqa: E722 # pylint: disable=bare-except - README = "" - -setup( - name="podman-compose", - description="A script to run docker-compose.yml using podman", - long_description=README, - long_description_content_type="text/markdown", - classifiers=[ - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Intended Audience :: Developers", - "Operating System :: OS Independent", - "Development Status :: 3 - Alpha", - "Topic :: Software Development :: Build Tools", - "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", - ], - keywords="podman, podman-compose", - author="Muayyad Alsadi", - author_email="alsadi@gmail.com", - url="https://github.com/containers/podman-compose", - py_modules=["podman_compose"], - entry_points={"console_scripts": ["podman-compose = podman_compose:main"]}, - include_package_data=True, - license="GPL-2.0-only", - install_requires=[ - "pyyaml", - "python-dotenv", - ], - extras_require={"devel": ["ruff", "pre-commit", "coverage", "parameterized"]}, - # test_suite='tests', - # tests_require=[ - # 'coverage', - # 'tox', - # ] -)