Skip to content

Commit 94f7853

Browse files
committed
build(poetry): Organize more packages to use extras
1 parent c4fe909 commit 94f7853

File tree

2 files changed

+42
-21
lines changed

2 files changed

+42
-21
lines changed

poetry.lock

Lines changed: 10 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,52 @@ authors = ["Tony Narlock <tony@git-pull.com>"]
1212
python = "~2.7 || ^3.5"
1313

1414
[tool.poetry.dev-dependencies]
15-
black = {version="==19.10b0", python="^3.6"}
16-
flake8 = "*"
17-
isort = [
18-
{version="<5", python="<3.6"},
19-
{version="*", python=">=3.6"}
15+
### Docs ###
16+
sphinx = [
17+
{version="<2", python="<3"},
18+
{version="*", python=">=3"}
2019
]
20+
recommonmark = {version = "^0.6.0"}
21+
alagitpull = {version = "^0.0.25-rc.2", allow-prereleases = true}
22+
sphinx-issues = {version = "^1.2.0"}
23+
24+
### Testing ###
2125
pytest = [
2226
{version="<4.7.0", python="<3"},
2327
{version="*", python=">=3"}
2428
]
2529
pathlib2 = {version="<2.3.5", python="<3"} # Untangle pytest peer-dependency
2630
pytest-rerunfailures = "*"
27-
twine = "*"
31+
pytest-mock = [
32+
{version="<3.0.0", python="<3"},
33+
{version="*", python=">=3"}
34+
]
35+
36+
### Coverage ###
2837
codecov = "*"
2938
coverage = "*"
3039
pytest-cov = [
3140
{version="<2.10.0", python="<3"},
3241
{version="*", python=">=3"}
3342
]
34-
pytest-mock = [
35-
{version="<3.0.0", python="<3"},
36-
{version="*", python=">=3"}
37-
]
38-
sphinx = [
39-
{version="<2", python="<3"},
40-
{version="*", python=">=3"}
43+
44+
### Format ###
45+
black = {version="==19.10b0", python="^3.6"}
46+
isort = [
47+
{version="<5", python="<3.6"},
48+
{version="*", python=">=3.6"}
4149
]
42-
recommonmark = {version = "^0.6.0"}
43-
alagitpull = {version = "^0.0.25-rc.2", allow-prereleases = true}
44-
sphinx-issues = {version = "^1.2.0"}
50+
51+
### Lint ###
52+
flake8 = "*"
53+
54+
### Deploy ###
55+
twine = "*"
4556

4657
[tool.poetry.extras]
4758
docs = ["sphinx", "recommonmark", "sphinx-issues", "alagitpull"]
59+
test = ["pytest", "pathlib2", "pytest-rerunfailures", "pytest-mock"]
60+
coverage = ["codecov", "coverage", "pytest-cov"]
61+
format = ["black", "isort"]
62+
lint = ["flake8"]
63+
deploy = ["deploy"]

0 commit comments

Comments
 (0)