-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
pyproject.toml
129 lines (117 loc) 路 4.23 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[tool.poetry]
# Docs: https://python-poetry.org/docs/pyproject/
name = "meta-package-manager"
version = "3.6.1"
description = """
CLI unifying Homebrew, apt, Chocolatey, Pip, NPM, Composer and the like."""
license = 'GPL-2.0-or-later'
authors = ["Kevin Deldycke <kevin@deldycke.com>"]
readme = "readme.rst"
homepage = 'https://github.com/kdeldycke/meta-package-manager'
repository = 'https://github.com/kdeldycke/meta-package-manager'
documentation = 'https://meta-package-manager.readthedocs.io'
keywords = [
'CLI', 'package', 'pip', 'apm', 'npm', 'homebrew', 'brew', 'cask',
'macos', 'node', 'atom', 'ruby', 'gem', 'mac app store', 'mas',
'bitbar', 'plugin', 'flatpak', 'opkg', 'php composer', 'snap']
classifiers = [
# See: https://pypi.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: MacOS X',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Archiving :: Packaging',
'Topic :: System :: Installation/Setup',
'Topic :: System :: Software Distribution',
'Topic :: Utilities']
[tool.poetry.urls]
"Funding" = "https://github.com/sponsors/kdeldycke"
[tool.poetry.dependencies]
# List of python versions and their support status:
# https://en.wikipedia.org/wiki/History_of_Python#Support
python = "^3.7"
boltons = "^20.2.1"
click = "^7.1.2"
click-log = "^0.3.2"
cli-helpers = "^2.1.0"
simplejson = "^3.17.2"
tomlkit = "^0.7.0"
# Should have been put in dev-dependencies but extras only works from main
# section.
sphinx = {version = "^3.5.2", optional = true}
sphinx_rtd_theme = {version = "^0.5.1", optional = true}
sphinx_tabs = {version = "^2.1.0", optional = true}
click-help-colors = "^0.9"
[tool.poetry.dev-dependencies]
black = "^20.8b1"
bump2version = "^1.0.1"
check-wheel-contents = "^0.2.0"
coverage = {extras = ["toml"], version = "^5.5"}
isort = "^5.7.0"
pipdeptree = {extras = ["graphviz"], version = "^2.0.0"}
pylint = "^2.7.2"
pytest = "^6.2.2"
# More pytest plugins at: http://plugincompat.herokuapp.com .
pytest-cov = "^2.11.1"
pytest-randomly = "^3.5.0"
pyyaml = "^5.4.1"
twine = "^3.4.1"
yamllint = "^1.26.0"
[tool.poetry.extras]
# Workaround lacks of Poetry support by RTD: https://stackoverflow.com/a/58163431
docs = ["sphinx", "sphinx_rtd_theme", "sphinx_tabs"]
[tool.poetry.scripts]
mpm = 'meta_package_manager.cli:cli'
[tool.black]
target-version = ['py37', 'py38']
[tool.isort]
# https://pycqa.github.io/isort/docs/configuration/black_compatibility/
multi_line_output = 3
line_length = 88
include_trailing_comma = true
[tool.pylint.MASTER]
# http://pylint.pycqa.org/en/latest/technical_reference/features.html
output-format = "colorized"
fail-under = "8"
[tool.pylint."messages control"]
# List messages with: $ pylint --list-msgs
# C0114: missing-module-docstring
# W0511: fixme
# W1203: logging-fstring-interpolation
disable = "C0114, W0511, W1203"
[tool.pylint.LOGGING]
# The type of string formatting that logging methods do. `old` means using %
# formatting, `new` is for `{}` formatting.
logging-format-style = "new"
[tool.pylint.FORMAT]
# Aligns to black's config: https://github.com/psf/black/blob/master/docs/compatible_configs.md#pylint
max-line-length = "88"
[tool.pytest.ini_options]
# https://docs.pytest.org/en/latest/customize.html#pyproject-toml
addopts = "--durations=10 --cov-report term --cov=meta_package_manager"
xfail_strict = true
[tool.coverage.paths]
# https://coverage.readthedocs.io/en/latest/config.html
source = ["meta_package_manager"]
[tool.coverage.run]
source = ["meta_package_manager"]
branch = true
omit = ["*/tests/*"]
[tool.coverage.report]
omit = ["*/tests/*"]
precision = 2
[tool.check-wheel-contents]
# W004: Module is not located at importable path:
# meta_package_manager/bitbar/meta_package_manager.7h.py
ignore = "W004"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"