-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from astrofrog/update-infrastructure
Update package infrastructure
- Loading branch information
Showing
17 changed files
with
138 additions
and
149 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
resources: | ||
repositories: | ||
- repository: OpenAstronomy | ||
type: github | ||
endpoint: astrofrog | ||
name: OpenAstronomy/azure-pipelines-templates | ||
ref: master | ||
|
||
jobs: | ||
|
||
- template: run-tox-env.yml@OpenAstronomy | ||
parameters: | ||
|
||
coverage: codecov | ||
|
||
envs: | ||
|
||
# PEP8 checks | ||
- linux: codestyle | ||
coverage: 'false' | ||
|
||
# Linux builds - test on all supported Matplotlib versions | ||
- linux: py36-test-mpl30 | ||
- linux: py37-test-mpl31 | ||
- linux: py37-test-mpl32 | ||
- linux: py38-test-mpl33 | ||
- linux: py38-test-mpldev | ||
|
||
# MacOS X and Windows builds - alternative Matplotlib versions | ||
- windows: py36-test-mpl30 | ||
- macos: py37-test-mpl31 | ||
- windows: py37-test-mpl32 | ||
- macos: py38-test-mpl33 | ||
- windows: py38-test-mpldev | ||
|
||
# Image tests | ||
- linux: py37-test-mpl30-image | ||
- linux: py37-test-mpl31-image |
This file contains 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,4 +1,9 @@ | ||
from .scatter_density_artist import * | ||
from .scatter_density_axes import * | ||
from .scatter_density_artist import * # noqa | ||
from .scatter_density_axes import * # noqa | ||
|
||
__version__ = '0.7.dev0' | ||
from pkg_resources import get_distribution, DistributionNotFound | ||
|
||
try: | ||
__version__ = get_distribution('mpl-scatter-density').version | ||
except DistributionNotFound: | ||
__version__ = 'undefined' |
This file contains 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,5 +1,3 @@ | ||
from __future__ import division, print_function | ||
|
||
import inspect | ||
|
||
import numpy as np | ||
|
This file contains 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,5 +1,3 @@ | ||
from __future__ import division, print_function | ||
|
||
import matplotlib.colors as colors | ||
|
||
__all__ = ['make_cmap'] | ||
|
This file contains 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,5 +1,3 @@ | ||
from __future__ import division, print_function | ||
|
||
from math import log10 | ||
|
||
import numpy as np | ||
|
This file contains 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 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 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,5 +1,3 @@ | ||
from __future__ import division, print_function | ||
|
||
import numpy as np | ||
|
||
import matplotlib.pyplot as plt | ||
|
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[build-system] | ||
requires = ["setuptools", | ||
"setuptools_scm", | ||
"wheel"] | ||
build-backend = 'setuptools.build_meta' |
This file contains 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[metadata] | ||
name = mpl-scatter-density | ||
url = https://github.com/astrofrog/mpl-scatter-density | ||
author = Thomas Robitaille | ||
author_email = [email protected] | ||
license = BSD | ||
description = Matplotlib helpers to make density scatter plots | ||
long_description = file: README.rst | ||
|
||
[options] | ||
zip_safe = True | ||
packages = find: | ||
python_requires = >=3.6 | ||
install_requires = | ||
numpy | ||
matplotlib>=3.0 | ||
fast-histogram>=0.3 | ||
|
||
[options.extras_require] | ||
test = | ||
pytest | ||
pytest-cov | ||
pytest-mpl | ||
|
||
[options.package_data] | ||
mpl_scatter_density.tests = baseline/*/*.png |
This file contains 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,14 +1,15 @@ | ||
from setuptools import setup, find_packages | ||
|
||
setup(name='mpl-scatter-density', | ||
version='0.7.dev0', | ||
description='Matplotlib helpers to make density scatter plots', | ||
long_description=open('README.rst').read(), | ||
install_requires=['numpy', 'matplotlib>=3.0', 'fast-histogram>=0.3'], | ||
python_requires='>=3.6', | ||
author='Thomas Robitaille', | ||
author_email='[email protected]', | ||
license='BSD', | ||
url='https://github.com/astrofrog/mpl-scatter-density', | ||
package_data={'mpl_scatter_density.tests': ['baseline/*/*.png']}, | ||
packages=find_packages()) | ||
#!/usr/bin/env python | ||
|
||
import sys | ||
from distutils.version import LooseVersion | ||
|
||
try: | ||
import setuptools | ||
assert LooseVersion(setuptools.__version__) >= LooseVersion('30.3') | ||
except (ImportError, AssertionError): | ||
sys.stderr.write("ERROR: setuptools 30.3 or later is required\n") | ||
sys.exit(1) | ||
|
||
from setuptools import setup | ||
|
||
setup(use_scm_version=True) |
This file contains 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[tox] | ||
envlist = | ||
py{36,37,38}-test{-mpl30,-mpl31,-mpl32,-mpl33,-mpldev}{,-image} | ||
codestyle | ||
requires = | ||
setuptools >= 30.3.0 | ||
pip >= 19.3.1 | ||
isolated_build = true | ||
|
||
[testenv] | ||
setenv = | ||
image: MPLFLAGS = --mpl | ||
!image: MPLFLAGS = | ||
changedir = .tmp/{envname} | ||
deps = | ||
mpl30: matplotlib==3.0.* | ||
mpl31: matplotlib==3.1.* | ||
mpl32: matplotlib==3.2.* | ||
mpl33: matplotlib==3.3.* | ||
mpldev: git+https://github.com/matplotlib/matplotlib.git#egg=matplotlib | ||
extras = | ||
test | ||
|
||
commands = | ||
pip freeze | ||
pytest --pyargs mpl_scatter_density {env:MPLFLAGS} --cov mpl_scatter_density --cov-config={toxinidir}/setup.cfg {posargs} | ||
|
||
[testenv:codestyle] | ||
skip_install = true | ||
description = check code style | ||
deps = flake8 | ||
changedir = {toxinidir} | ||
commands = flake8 mpl_scatter_density --count --max-line-length=100 |