Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
f01d2719
Commit
f01d2719
authored
Sep 14, 2020
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable flake8 and cov plugins only when installed. Avoid installing in PyPy.
parent
f84c1454
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
20 deletions
+10
-20
conftest.py
conftest.py
+0
-18
pyproject.toml
pyproject.toml
+6
-0
pytest.ini
pytest.ini
+1
-1
setup.cfg
setup.cfg
+3
-1
No files found.
conftest.py
View file @
f01d2719
...
...
@@ -19,24 +19,6 @@ collect_ignore = [
]
def
pytest_configure
(
config
):
disable_coverage_on_pypy
(
config
)
def
disable_coverage_on_pypy
(
config
):
"""
Coverage makes tests on PyPy unbearably slow, so disable it.
"""
if
'__pypy__'
not
in
sys
.
builtin_module_names
:
return
# Recommended at pytest-dev/pytest-cov#418
cov
=
config
.
pluginmanager
.
get_plugin
(
'_cov'
)
cov
.
options
.
no_cov
=
True
if
cov
.
cov_controller
:
cov
.
cov_controller
.
pause
()
if
sys
.
version_info
<
(
3
,):
collect_ignore
.
append
(
'setuptools/lib2to3_ex.py'
)
collect_ignore
.
append
(
'setuptools/_imp.py'
)
...
...
pyproject.toml
View file @
f01d2719
...
...
@@ -41,3 +41,9 @@ backend-path = ["."]
directory
=
"misc"
name
=
"Misc"
showcontent
=
true
[tool.jaraco.pytest.plugins.flake8]
addopts
=
"--flake8"
[tool.jaraco.pytest.plugins.cov]
addopts
=
"--cov"
pytest.ini
View file @
f01d2719
[pytest]
addopts
=
--doctest-modules --
flake8 --doctest-glob=pkg_resources/api_tests.txt --cov
-r sxX
addopts
=
--doctest-modules --
doctest-glob=pkg_resources/api_tests.txt
-r sxX
norecursedirs
=
dist build *.egg setuptools/extern pkg_resources/extern pkg_resources/tests/data tools .* setuptools/_vendor pkg_resources/_vendor
doctest_optionflags
=
ELLIPSIS ALLOW_UNICODE
filterwarnings
=
...
...
setup.cfg
View file @
f01d2719
...
...
@@ -68,10 +68,12 @@ tests =
pytest>=3.7
wheel
coverage>=4.5.1
pytest-cov>=2.5.1
# Coverage is unbearably slow on PyPy
pytest-cov>=2.5.1; python_implementation != "PyPy"
paver; python_version>="3.6"
pip>=19.1 # For proper file:// URLs support.
jaraco.envs
jaraco.test >= 3.1.1
docs =
# Keep these in sync with docs/requirements.txt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment