File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ jobs:
24
24
- name : Install dependencies
25
25
run : |
26
26
python -m pip install --upgrade pip
27
- pip install setuptools wheel twine pbr
27
+ pip install .[build]
28
28
- name : Build sdist and wheel
29
29
run : |
30
- python setup.py sdist bdist_wheel
30
+ python -m build
31
31
- name : Publish distribution to PyPI
32
32
# This condition prevents PRs from being published as part of
33
33
# the test job.
Original file line number Diff line number Diff line change @@ -36,6 +36,16 @@ dependencies = [
36
36
" stevedore" ,
37
37
]
38
38
39
+ [project .optional-dependencies ]
40
+ linter = [
41
+ " flake8" ,
42
+ ]
43
+ build = [
44
+ " build" ,
45
+ " twine" ,
46
+ " check-python-versions" ,
47
+ ]
48
+
39
49
# https://github.com/pypa/setuptools_scm/
40
50
[tool .setuptools_scm ]
41
51
write_to = " virtualenvwrapper/version.py"
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ setenv =
20
20
FAIL_FAST = true
21
21
22
22
[testenv:style]
23
- deps = flake8
23
+ deps = .[linter]
24
24
commands = flake8 virtualenvwrapper docs/source/conf.py
25
25
26
26
[testenv:zsh]
@@ -38,10 +38,7 @@ commands =
38
38
sphinx-build -W -j auto -b linkcheck -d docs/build/doctrees docs/source docs/build/linkcheck
39
39
40
40
[testenv:pkglint]
41
- deps =
42
- build
43
- twine
44
- check-python-versions
41
+ deps =.[build]
45
42
commands =
46
43
python -m build
47
44
twine check dist/*.tar.gz dist/*.whl
You can’t perform that action at this time.
0 commit comments