aboutsummaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-03-09 18:43:21 -0500
committerGitHub <noreply@github.com>2021-03-10 01:43:21 +0200
commitd4bdd8318b4cc668325637def9098570e7e12256 (patch)
treeb37323d7f3fe9b4834a98ef517ed7e56b9e99a80 /setup.cfg
parent56a0e74d711fc050c6574e2da4e2f745da6a56f5 (diff)
downloadmeson-d4bdd8318b4cc668325637def9098570e7e12256.zip
meson-d4bdd8318b4cc668325637def9098570e7e12256.tar.gz
meson-d4bdd8318b4cc668325637def9098570e7e12256.tar.bz2
setuptools: move stuff to declarative cfg if possible [skip ci]
We're down to just declaring the data files in python now. setup.cfg can, uniquely, retrieve version info by trying to parse the AST for simple assignments (which we use) instead of importing the entire module.
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg12
1 files changed, 11 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index ef7a258..972a712 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,4 +1,6 @@
[metadata]
+name = meson
+version = attr: mesonbuild.coredata.version
description = A high performance build system
author = Jussi Pakkanen
author_email = jpakkane@gmail.com
@@ -29,16 +31,24 @@ classifiers =
long_description = Meson is a cross-platform build system designed to be both as fast and as user friendly as possible. It supports many languages and compilers, including GCC, Clang, PGI, Intel, and Visual Studio. Its build definitions are written in a simple non-Turing complete DSL.
[options]
+packages = find:
python_requires = >= 3.6
setup_requires =
setuptools
+[options.entry_points]
+console_scripts =
+ meson = mesonbuild.mesonmain:main
+
[options.extras_require]
progress =
tqdm
+[options.packages.find]
+include = mesonbuild, mesonbuild.*
+exclude = *.data
+
[tool:pytest]
python_classes =
python_files =
run_unittests.py
-