Skip to content
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

Separate test data from matplotlib package #5280

Closed
cgohlke opened this issue Oct 20, 2015 · 4 comments
Closed

Separate test data from matplotlib package #5280

cgohlke opened this issue Oct 20, 2015 · 4 comments

Comments

@cgohlke
Copy link
Contributor

cgohlke commented Oct 20, 2015

Re conda-archive/conda-recipes#440

The Windows binaries for matplotlib release versions do not contain tests. Tests have to be installed manually if required.

I am using the following setup-tests.py script to create a universal wheel containing matplotlib tests:

"""A setuptools script to create a universal wheel for matplotlib tests.

Usage: `python setup-tests.py bdist_wheel --universal`

"""

from setuptools import setup
import versioneer

from setupext import Tests, Toolkits_Tests


package_data = {}
datafiles = Tests.get_package_data(None)['matplotlib']
package_data['matplotlib.tests'] = [
    f[6:] for f in datafiles if f.startswith('tests')]
package_data['matplotlib.sphinxext.tests'] = [
    f[16:] for f in datafiles if f.startswith('sphinxext')]
package_data['mpl_toolkits.tests'] = [
    f[6:] for f in Toolkits_Tests.get_package_data(None)['mpl_toolkits']]

version = versioneer.get_version()

setup(
    name='matplotlib-tests',
    version=version,
    description="Tests for matplotlib",
    author="John D. Hunter, Michael Droettboom",
    author_email="matplotlib-users@python.org",
    url="http://matplotlib.org",
    license="BSD",
    package_dir={'': 'lib'},
    packages=['matplotlib.tests', 'matplotlib.sphinxext.tests',
              'mpl_toolkits.tests'],
    package_data=package_data,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: Python Software Foundation License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Topic :: Scientific/Engineering :: Visualization',
    ],
    zip_safe=False,
    install_requires=['matplotlib == %s' % version, 'nose', 'mock', 'Pillow'],
)
@WeatherGod
Copy link
Member

@mdboom, just noticed that the author email in that setup() call has your
old email address.

On Tue, Oct 20, 2015 at 3:57 AM, Christoph Gohlke notifications@github.com
wrote:

Re conda-archive/conda-recipes#440
conda-archive/conda-recipes#440

The Windows binaries for matplotlib release versions do not contain tests.
Tests have to be installed manually
https://github.com/matplotlib/matplotlib/blob/master/INSTALL#L116 if
required.

I am using the following setup-tests.py script to create a universal wheel
containing matplotlib tests:

"""A setuptools script to create a universal wheel for matplotlib tests.Usage: python setup-tests.py bdist-wheel --universal"""
from setuptools import setupimport versioneer
from setupext import Tests, Toolkits_Tests

package_data = {}
datafiles = Tests.get_package_data(None)['matplotlib']
package_data['matplotlib.tests'] = [
f[6:] for f in datafiles if f.startswith('tests')]
package_data['matplotlib.sphinxext.tests'] = [
f[16:] for f in datafiles if f.startswith('sphinxext')]
package_data['mpl_toolkits.tests'] = [
f[6:] for f in Toolkits_Tests.get_package_data(None)['mpl_toolkits']]

version = versioneer.get_version()

setup(
name='matplotlib-tests',
version=version,
description="Tests for matplotlib",
author="John D. Hunter, Michael Droettboom",
author_email="mdroe@stsci.edu",
url="http://matplotlib.org",
license="BSD",
package_dir={'': 'lib'},
packages=['matplotlib.tests', 'matplotlib.sphinxext.tests',
'mpl_toolkits.tests'],
package_data=package_data,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Python Software Foundation License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Visualization',
],
zip_safe=False,
install_requires=['matplotlib == %s' % version, 'nose', 'mock', 'Pillow'],
)


Reply to this email directly or view it on GitHub
#5280.

@mdboom
Copy link
Member

mdboom commented Oct 20, 2015

@WeatherGod: Thanks for catching that. It should probably be "mdboom@gmail.com" going forward.

@mdboom
Copy link
Member

mdboom commented Oct 20, 2015

Actually, even better, we should just put "matplotlib-users@python.org". No need to bus factor that e-mail down to a single individual.

@mdboom
Copy link
Member

mdboom commented Oct 20, 2015

See #5282 re: the e-mail issue.

@cgohlke cgohlke closed this as completed Oct 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants