-
Notifications
You must be signed in to change notification settings - Fork 48
Package infrastructure cleanup #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
astrofrog
merged 23 commits into
matplotlib:master
from
astrofrog:refactor-infrastructure
Jan 26, 2020
Merged
Changes from 20 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
81aa03a
Moved setup metadata to setup.cfg
astrofrog 14d8fa9
Improve tox.ini configuration
astrofrog 168ae50
Reduce required run-time dependencies
astrofrog 2edda86
More improvements to tox set-up
astrofrog e424b41
Updated CI configuration to use tox
astrofrog c3974b3
Remove AppVeyor badge
astrofrog 1d92f3d
Check that the plugin doesn't stop pytest from running if Matplotlib …
astrofrog 5c4b759
Pass DISPLAY environment variable to tox
astrofrog e107724
Fix code style issues
astrofrog 5f41a2d
Simplify Travis test matrix
astrofrog c19f5bf
Fixes to tox and CI
astrofrog 99a899d
Fix CI issues
astrofrog de262f6
Updated baseline image for test_base_style
astrofrog 4f860ec
Fix tests on Windows
astrofrog 7be0270
Updated README.rst and remove pillow as a dependency
astrofrog b26ee6b
Remove dependency on pillow and instead delegate to Matplotlib's imread
astrofrog 8d5fcbc
Added note about install_requires
astrofrog a8f434a
Fix default tolerance
astrofrog 7edc17e
Fix code style
astrofrog 0165446
Explicitly specify testpaths and reorder test matrix to have slowest …
astrofrog d944a53
Add back Matplotlib as a required dependency
astrofrog 182a65a
Drop support for Python 3.5 and earlier, as well as Matplotlib 1.5
astrofrog ff26395
Remove old comment
astrofrog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,56 @@ | ||
language: c | ||
language: python | ||
|
||
# Setting sudo to false opts in to Travis-CI container-based builds. | ||
sudo: false | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
env: | ||
global: | ||
- SETUP_XVFB=True | ||
- CONDA_DEPENDENCIES="pytest matplotlib nose coverage freetype=2.5.5" | ||
- PIP_DEPENDENCIES="pytest-cov coveralls" | ||
matrix: | ||
- PYTHON_VERSION=3.4 MATPLOTLIB_VERSION=1.5 | ||
- PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.5 | ||
- PYTHON_VERSION=3.5 MATPLOTLIB_VERSION=1.5 | ||
- PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=2.0 | ||
- PYTHON_VERSION=3.5 MATPLOTLIB_VERSION=2.0 | ||
- PYTHON_VERSION=3.6 MATPLOTLIB_VERSION=2.0 | ||
|
||
# The following build is meant to check that dependencies get set up correctly, but currently | ||
# the image tests fail, which should be investigated. | ||
# - PYTHON_VERSION=3.5 CONDA_DEPENDENCIES="coverage freetype libpng" | ||
- TOXENV='test' | ||
- TOXARGS='-v' | ||
- TOXPOSARGS='' | ||
|
||
matrix: | ||
include: | ||
# Test the oldest and newest configuration on Mac and Windows | ||
- os: osx | ||
language: c | ||
env: PYTHON_VERSION=2.7 TOXENV=py27-test-mpl15 | ||
- os: osx | ||
language: c | ||
env: PYTHON_VERSION=3.8 TOXENV=py38-test-mpl31 | ||
- os: windows | ||
language: c | ||
env: PYTHON_VERSION=2.7 TOXENV=py27-test-mpl15 | ||
- os: windows | ||
language: c | ||
env: PYTHON_VERSION=3.8 TOXENV=py38-test-mpl31 | ||
# Test all configurations on Linux | ||
- python: 2.7 | ||
env: TOXENV=py27-test-mpl15 | ||
- python: 3.5 | ||
env: TOXENV=py35-test-mpl20 | ||
- python: 3.6 | ||
env: TOXENV=py36-test-mpl21 | ||
- python: 3.6 | ||
env: TOXENV=py36-test-mpl22 | ||
- python: 3.7 | ||
env: TOXENV=py37-test-mpl30 | ||
- python: 3.8 | ||
env: TOXENV=py38-test-mpl31 | ||
- python: 3.8 | ||
env: TOXENV=py38-test-minimal | ||
- python: 3.8 | ||
env: TOXENV=codestyle | ||
|
||
install: | ||
|
||
# We use the ci-helpers package from the Astropy project to set up conda | ||
# with any requested dependencies above. | ||
- git clone git://github.com/astropy/ci-helpers.git | ||
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh | ||
|
||
# Need to use develop instead of install to make sure coverage works | ||
- python setup.py develop | ||
- if [[ $TRAVIS_OS_NAME != linux ]]; then | ||
git clone git://github.com/astropy/ci-helpers.git; | ||
source ci-helpers/travis/setup_conda.sh; | ||
fi | ||
|
||
script: | ||
- python -c 'import pytest_mpl.plugin' | ||
- pytest -vv --mpl --cov pytest_mpl tests | ||
# Make sure that the tests run ok even without the --mpl option (we close | ||
# figures anyway in this case) | ||
- pytest -vv --cov pytest_mpl --cov-append tests | ||
- python setup.py check --restructuredtext | ||
- pip install tox | ||
- tox $TOXARGS -- $TOXPOSARGS | ||
|
||
after_success: | ||
- coveralls | ||
- coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,43 @@ | ||
[metadata] | ||
license_file = LICENSE | ||
name = pytest-mpl | ||
version = 0.11 | ||
url = https://github.com/matplotlib/pytest-mpl | ||
author = Thomas Robitaille | ||
author_email = thomas.robitaille@gmail.com | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Framework :: Pytest | ||
Intended Audience :: Developers | ||
Topic :: Software Development :: Testing | ||
Topic :: Scientific/Engineering :: Visualization | ||
Programming Language :: Python | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 3 | ||
Operating System :: OS Independent | ||
License :: OSI Approved :: BSD License | ||
license = BSD | ||
description = pytest plugin to help with testing figures output from Matplotlib | ||
long_description = file: README.rst | ||
|
||
[options] | ||
zip_safe = True | ||
packages = find: | ||
# Note that we don't include Matplotlib as a required dependency since it is only | ||
# required if the plugin is actually used, in which case the package using this | ||
# will already need to have Matplotlib declared as a dependency. We want to avoid | ||
# installing Matplotlib unecessarily. | ||
install_requires = | ||
pytest | ||
|
||
[options.entry_points] | ||
pytest11 = | ||
pytest_mpl = pytest_mpl.plugin | ||
|
||
[options.extras_require] | ||
test = | ||
pytest-cov | ||
matplotlib | ||
|
||
[tool:pytest] | ||
testpaths = "tests" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we just drop it now?