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
8810250b
Commit
8810250b
authored
Oct 14, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run tests with tox
parent
7edbffcc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
20 deletions
+10
-20
.travis.yml
.travis.yml
+2
-2
docs/developer-guide.txt
docs/developer-guide.txt
+3
-5
setup.py
setup.py
+1
-9
tox.ini
tox.ini
+4
-4
No files found.
.travis.yml
View file @
8810250b
...
...
@@ -14,13 +14,13 @@ script:
# avoid VersionConflict when newer version is required
-
pip install -U 'pytest>=3.0.2'
# Output the env,
because the travis docs just can't be trusted
# Output the env,
to verify behavior
-
env
# update egg_info based on setup.py in checkout
-
python bootstrap.py
-
python
setup.py test --addopts='-rsx'
-
python
-m tox
before_deploy
:
-
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=1
...
...
docs/developer-guide.txt
View file @
8810250b
...
...
@@ -89,12 +89,10 @@ For posterity, the old `Bitbucket mirror
Testing
-------
The primary tests are run using py.test. To run the tests::
The primary tests are run using tox. To run the tests, first make
sure you have tox installed, then invoke it::
$ python setup.py test
Or install py.test into your environment and run ``PYTHONPATH=. py.test``
or ``python -m pytest``.
$ tox
Under continuous integration, additional tests may be run. See the
``.travis.yml`` file for full details on the tests run under Travis-CI.
...
...
setup.py
View file @
8810250b
...
...
@@ -69,8 +69,6 @@ if include_windows_files:
package_data
.
setdefault
(
'setuptools'
,
[]).
extend
([
'*.exe'
])
package_data
.
setdefault
(
'setuptools.command'
,
[]).
extend
([
'*.xml'
])
needs_pytest
=
set
([
'ptr'
,
'pytest'
,
'test'
]).
intersection
(
sys
.
argv
)
pytest_runner
=
[
'pytest-runner'
]
if
needs_pytest
else
[]
needs_wheel
=
set
([
'release'
,
'bdist_wheel'
]).
intersection
(
sys
.
argv
)
wheel
=
[
'wheel'
]
if
needs_wheel
else
[]
...
...
@@ -178,14 +176,8 @@ setup_params = dict(
),
],
scripts
=
[],
tests_require
=
[
'setuptools[ssl]'
,
'pytest-flake8'
,
# pin pytest to 3.0.2 for pytest-dev/pytest#1888
'pytest==3.0.2'
,
]
+
([
'mock'
]
if
sys
.
version_info
[:
2
]
<
(
3
,
3
)
else
[]),
setup_requires
=
[
]
+
pytest_runner
+
wheel
,
]
+
wheel
,
)
if
__name__
==
'__main__'
:
...
...
tox.ini
View file @
8810250b
[tox]
envlist
=
py26,py27,py33,py34,py35,pypy,pypy3
[testenv]
deps
=
pytest-flake8
pytest>=3.0.2
setuptools
[ssl]
py{26,27,32}:
mock
passenv
=
APPDATA USERPROFILE HOMEDRIVE HOMEPATH windir
commands
=
python
setup.py test --addopts='-rsx'
commands
=
python
-m pytest -rsx
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