From 3f5dce7541b23f0681711047a6c48a89688ce2c9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 2 Mar 2023 22:23:25 +0100 Subject: packaging: move to pyproject.toml-only --- pyproject.toml | 39 ++++++++++++++++++++++++++++++++++++++- setup.cfg | 36 ------------------------------------ setup.py | 2 -- 3 files changed, 38 insertions(+), 39 deletions(-) delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index 9787c3b..f1052b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,40 @@ [build-system] -requires = ["setuptools", "wheel"] +requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" + +[project] +name = "cmake_common" +description = "Utilities to help develop C++/CMake projects" +license = {text = "MIT"} +version = "3.4.1" +authors = [{name = "Egor Tensin", email = "Egor.Tensin@gmail.com"}] +readme = "README.md" +requires-python = ">=3.6" + +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: C++", + "Topic :: Software Development :: Build Tools", +] + +[project.urls] +"Homepage" = "https://github.com/egor-tensin/cmake-common" +"Bug Tracker" = "https://github.com/egor-tensin/cmake-common/issues" + +[project.scripts] +boost-build = "project.boost.build:_main" +boost-download = "project.boost.download:_main" +ci-boost = "project.ci.boost:main" +ci-cmake = "project.ci.cmake:main" +cmake-build = "project.cmake.build:main" + +[tool.setuptools] +script-files = [ + "tools/ctest-driver.py", + "tools/project-clang-format.py", +] + +[tool.setuptools.data-files] +"share/cmake" = ["common.cmake"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index d43029f..0000000 --- a/setup.cfg +++ /dev/null @@ -1,36 +0,0 @@ -[metadata] -name = cmake_common -version = 3.4.1 -author = Egor Tensin -author_email = Egor.Tensin@gmail.com -description = Utilities to help develop C++/CMake projects -long_description = file: README.md -long_description_content_type = text/markdown -license = MIT -url = https://github.com/egor-tensin/cmake-common -project_urls = - Bug Tracker = https://github.com/egor-tensin/cmake-common/issues -classifiers = - Development Status :: 4 - Beta - Intended Audience :: Developers - License :: OSI Approved :: MIT License - Programming Language :: C++ - Topic :: Software Development :: Build Tools - -[options] -packages = find: -python_requires = >=3.6 -scripts = - tools/project-clang-format.py - tools/ctest-driver.py - -[options.data_files] -share/cmake = common.cmake - -[options.entry_points] -console_scripts = - boost-build = project.boost.build:_main - boost-download = project.boost.download:_main - ci-boost = project.ci.boost:main - ci-cmake = project.ci.cmake:main - cmake-build = project.cmake.build:main diff --git a/setup.py b/setup.py deleted file mode 100644 index a4f49f9..0000000 --- a/setup.py +++ /dev/null @@ -1,2 +0,0 @@ -import setuptools -setuptools.setup() -- cgit v1.2.3