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
382c736e
Commit
382c736e
authored
Jul 02, 2020
by
Jason R. Coombs
Committed by
GitHub
Jul 02, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2224 from pypa/better-cov
Improve coverage configuration
parents
2a55538a
c897b90c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
31 deletions
+19
-31
.coveragerc
.coveragerc
+8
-0
.github/workflows/python-tests.yml
.github/workflows/python-tests.yml
+0
-2
.travis.yml
.travis.yml
+5
-20
pytest.ini
pytest.ini
+1
-1
tox.ini
tox.ini
+5
-8
No files found.
.coveragerc
0 → 100644
View file @
382c736e
[run]
source=
pkg_resources
setuptools
omit=
*/_vendor/*
[report]
.github/workflows/python-tests.yml
View file @
382c736e
...
@@ -98,5 +98,3 @@ jobs:
...
@@ -98,5 +98,3 @@ jobs:
python -m
python -m
tox
tox
--parallel auto
--parallel auto
--
--cov
.travis.yml
View file @
382c736e
...
@@ -5,7 +5,6 @@ jobs:
...
@@ -5,7 +5,6 @@ jobs:
fast_finish
:
true
fast_finish
:
true
include
:
include
:
-
python
:
pypy3
-
python
:
pypy3
env
:
DISABLE_COVERAGE=1
# Don't run coverage on pypy (too slow).
-
python
:
3.5
-
python
:
3.5
-
python
:
3.6
-
python
:
3.6
-
python
:
3.7
-
python
:
3.7
...
@@ -15,12 +14,12 @@ jobs:
...
@@ -15,12 +14,12 @@ jobs:
env
:
LANG=C
env
:
LANG=C
-
python
:
3.8-dev
-
python
:
3.8-dev
-
<<
:
*latest_py3
-
<<
:
*latest_py3
env
:
TOXENV=docs
DISABLE_COVERAGE=1
env
:
TOXENV=docs
allow_failures
:
allow_failures
:
# suppress failures due to pypa/setuptools#2000
# suppress failures due to pypa/setuptools#2000
-
python
:
pypy3
-
python
:
pypy3
-
<<
:
*latest_py3
-
<<
:
*latest_py3
env
:
TOXENV=docs
DISABLE_COVERAGE=1
env
:
TOXENV=docs
cache
:
pip
cache
:
pip
...
@@ -39,22 +38,8 @@ install:
...
@@ -39,22 +38,8 @@ install:
script
:
script
:
-
export NETWORK_REQUIRED=1
-
export NETWORK_REQUIRED=1
-
|
-
tox
( # Run testsuite.
if [ -z "$DISABLE_COVERAGE" ]
then
tox -- --cov
else
tox
fi
)
after_success
:
after_success
:
-
|
-
export TRAVIS_JOB_NAME="${TRAVIS_PYTHON_VERSION} (LANG=$LANG)" CODECOV_ENV=TRAVIS_JOB_NAME
( # Upload coverage data.
-
tox -e coverage,codecov
if [ -z "$DISABLE_COVERAGE" ]
then
export TRAVIS_JOB_NAME="${TRAVIS_PYTHON_VERSION} (LANG=$LANG)" CODECOV_ENV=TRAVIS_JOB_NAME
tox -e coverage,codecov
fi
)
pytest.ini
View file @
382c736e
[pytest]
[pytest]
addopts
=
--doctest-modules --flake8 --doctest-glob=pkg_resources/api_tests.txt -r sxX
addopts
=
--doctest-modules --flake8 --doctest-glob=pkg_resources/api_tests.txt -
-cov -
r sxX
norecursedirs
=
dist build *.egg setuptools/extern pkg_resources/extern pkg_resources/tests/data tools .* setuptools/_vendor pkg_resources/_vendor
norecursedirs
=
dist build *.egg setuptools/extern pkg_resources/extern pkg_resources/tests/data tools .* setuptools/_vendor pkg_resources/_vendor
doctest_optionflags
=
ELLIPSIS ALLOW_UNICODE
doctest_optionflags
=
ELLIPSIS ALLOW_UNICODE
filterwarnings
=
filterwarnings
=
...
...
tox.ini
View file @
382c736e
...
@@ -23,12 +23,16 @@ setenv =
...
@@ -23,12 +23,16 @@ setenv =
# TODO: The passed environment variables came from copying other tox.ini files
# TODO: The passed environment variables came from copying other tox.ini files
# These should probably be individually annotated to explain what needs them.
# These should probably be individually annotated to explain what needs them.
passenv
=
APPDATA HOMEDRIVE HOMEPATH windir Program* CommonProgram* VS* APPVEYOR APPVEYOR_* CI CODECOV_* TRAVIS TRAVIS_* NETWORK_REQUIRED
passenv
=
APPDATA HOMEDRIVE HOMEPATH windir Program* CommonProgram* VS* APPVEYOR APPVEYOR_* CI CODECOV_* TRAVIS TRAVIS_* NETWORK_REQUIRED
commands
=
pytest --cov-config={toxinidir}/tox.ini --cov-report=
{posargs}
commands
=
pytest
{posargs}
usedevelop
=
True
usedevelop
=
True
extras
=
extras
=
tests
tests
[testenv:pypy{,3}]
commands
=
pytest --no-cov {posargs}
[testenv:coverage]
[testenv:coverage]
description
=
Combine coverage data and create report
description
=
Combine coverage data and create report
deps
=
coverage
deps
=
coverage
...
@@ -53,13 +57,6 @@ changedir = docs
...
@@ -53,13 +57,6 @@ changedir = docs
commands
=
commands
=
python
-m
sphinx
.
{toxinidir}/build/html
python
-m
sphinx
.
{toxinidir}/build/html
[coverage:run]
source
=
pkg_resources
setuptools
omit
=
*/_vendor/*
[testenv:finalize]
[testenv:finalize]
skip_install
=
True
skip_install
=
True
deps
=
deps
=
...
...
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