aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-03-02 22:23:25 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-03-02 22:23:25 +0100
commit3f5dce7541b23f0681711047a6c48a89688ce2c9 (patch)
tree8805b955b5b9c749be806247a49ba14120c272ba
parentuse --quiet flags for installations (diff)
downloadcmake-common-3f5dce7541b23f0681711047a6c48a89688ce2c9.tar.gz
cmake-common-3f5dce7541b23f0681711047a6c48a89688ce2c9.zip
packaging: move to pyproject.toml-only
-rw-r--r--pyproject.toml39
-rw-r--r--setup.cfg36
-rw-r--r--setup.py2
3 files changed, 38 insertions, 39 deletions
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()