Skip to content

Commit 4b9625a

Browse files
scivisionQuLogic
authored andcommitted
ENH: metadata PEP390 setup.cfg
https for Meson docs url Co-Authored-By: Elliott Sales de Andrade <[email protected]>
1 parent efea487 commit 4b9625a

File tree

4 files changed

+75
-59
lines changed

4 files changed

+75
-59
lines changed

.flake8

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[flake8]
2+
ignore =
3+
# E241: multiple spaces after ':'
4+
E241,
5+
# E251: unexpected spaces around keyword / parameter equals
6+
E251,
7+
# E261: at least two spaces before inline comment
8+
E261,
9+
# E265: block comment should start with '# '
10+
E265,
11+
# E501: line too long
12+
E501,
13+
# E302: expected 2 blank lines, found 1
14+
E302,
15+
# E305: expected 2 blank lines after class or function definition, found 1
16+
E305,
17+
# E401: multiple imports on one line
18+
E401,
19+
# E266: too many leading '#' for block comment
20+
E266,
21+
# E402: module level import not at top of file
22+
E402,
23+
# E731: do not assign a lambda expression, use a def (too many false positives)
24+
E731
25+
# E741: ambiguous variable name 'l'
26+
E741
27+
# E722: do not use bare except'
28+
E722
29+
# W504: line break after binary operator
30+
W504
31+
# A003: builtin class attribute
32+
A003
33+
max-line-length = 120

mypy.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[mypy]
2+
strict_optional = False
3+
show_error_context = False
4+
show_column_numbers = True

setup.cfg

+35-33
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,35 @@
1-
[flake8]
2-
ignore =
3-
# E241: multiple spaces after ':'
4-
E241,
5-
# E251: unexpected spaces around keyword / parameter equals
6-
E251,
7-
# E261: at least two spaces before inline comment
8-
E261,
9-
# E265: block comment should start with '# '
10-
E265,
11-
# E501: line too long
12-
E501,
13-
# E302: expected 2 blank lines, found 1
14-
E302,
15-
# E305: expected 2 blank lines after class or function definition, found 1
16-
E305,
17-
# E401: multiple imports on one line
18-
E401,
19-
# E266: too many leading '#' for block comment
20-
E266,
21-
# E402: module level import not at top of file
22-
E402,
23-
# E731: do not assign a lambda expression, use a def (too many false positives)
24-
E731
25-
# E741: ambiguous variable name 'l'
26-
E741
27-
# E722: do not use bare except'
28-
E722
29-
# W504: line break after binary operator
30-
W504
31-
# A003: builtin class attribute
32-
A003
33-
max-line-length = 120
1+
[metadata]
2+
description = A high performance build system
3+
author = Jussi Pakkanen
4+
author_email = [email protected]
5+
url = https://mesonbuild.com
6+
keywords =
7+
meson
8+
mesonbuild
9+
build system
10+
cmake
11+
license = Apache License, Version 2.0
12+
license_file = COPYING
13+
classifiers =
14+
Development Status :: 5 - Production/Stable
15+
Environment :: Console
16+
Intended Audience :: Developers
17+
License :: OSI Approved :: Apache Software License
18+
Natural Language :: English
19+
Operating System :: MacOS :: MacOS X
20+
Operating System :: Microsoft :: Windows
21+
Operating System :: POSIX :: BSD
22+
Operating System :: POSIX :: Linux
23+
Programming Language :: Python :: 3 :: Only
24+
Programming Language :: Python :: 3.5
25+
Programming Language :: Python :: 3.6
26+
Programming Language :: Python :: 3.7
27+
Programming Language :: Python :: 3.8
28+
Topic :: Software Development :: Build Tools
29+
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.
30+
31+
[options]
32+
python_requires = >= 3.5
33+
setup_requires =
34+
setuptools >= 30.3.0
35+
pip >= 10

setup.py

+3-26
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
import sys
1818

1919
if sys.version_info < (3, 5, 0):
20-
print('Tried to install with an unsupported version of Python. '
21-
'Meson requires Python 3.5.0 or greater')
22-
sys.exit(1)
20+
raise SystemExit('ERROR: Tried to install Meson with an unsupported Python version: \n{}'
21+
'\nMeson requires Python 3.5.0 or greater'.format(sys.version))
2322

2423
from mesonbuild.coredata import version
2524
from setuptools import setup
@@ -49,29 +48,7 @@
4948
if __name__ == '__main__':
5049
setup(name='meson',
5150
version=version,
52-
description='A high performance build system',
53-
author='Jussi Pakkanen',
54-
author_email='[email protected]',
55-
url='http://mesonbuild.com',
56-
license=' Apache License, Version 2.0',
57-
python_requires='>=3.5',
5851
packages=packages,
5952
package_data=package_data,
6053
entry_points=entries,
61-
data_files=data_files,
62-
classifiers=['Development Status :: 5 - Production/Stable',
63-
'Environment :: Console',
64-
'Intended Audience :: Developers',
65-
'License :: OSI Approved :: Apache Software License',
66-
'Natural Language :: English',
67-
'Operating System :: MacOS :: MacOS X',
68-
'Operating System :: Microsoft :: Windows',
69-
'Operating System :: POSIX :: BSD',
70-
'Operating System :: POSIX :: Linux',
71-
'Programming Language :: Python :: 3 :: Only',
72-
'Topic :: Software Development :: Build Tools',
73-
],
74-
long_description='''Meson is a cross-platform build system designed to be both as
75-
fast and as user friendly as possible. It supports many languages and compilers, including
76-
GCC, Clang and Visual Studio. Its build definitions are written in a simple non-turing
77-
complete DSL.''')
54+
data_files=data_files,)

0 commit comments

Comments
 (0)