Skip to content

Commit ddf7ae3

Browse files
authored
Merge pull request #419 from nschloe/exdown
use exdown for testing
2 parents c650928 + 07c0f52 commit ddf7ae3

File tree

6 files changed

+7
-12
lines changed

6 files changed

+7
-12
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ jobs:
3131
- uses: actions/checkout@v2
3232
- name: Install system dependencies
3333
run: sudo apt-get install -y texlive-latex-base texlive-latex-extra context python3-tk
34-
- name: Extract tests from README
35-
run: |
36-
pip install excode
37-
excode README.md test/zzz_readme_test.py --filter python,test
3834
- name: Test with tox
3935
run: |
4036
pip install tox

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p align="center">The artist formerly known as *matplotlib2tikz.*</p>
44
</p>
55

6-
[![CircleCI](https://img.shields.io/circleci/project/github/nschloe/tikzplotlib/master.svg?style=flat-square)](https://circleci.com/gh/nschloe/tikzplotlib/tree/master)
6+
[![gh-actions](https://img.shields.io/github/workflow/status/nschloe/tikzplotlib/ci?style=flat-square)](https://github.com/nschloe/tikzplotlib/actions?query=workflow%3Aci)
77
[![codecov](https://img.shields.io/codecov/c/github/nschloe/tikzplotlib.svg?style=flat-square)](https://codecov.io/gh/nschloe/tikzplotlib)
88
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)
99
[![Documentation Status](https://readthedocs.org/projects/tikzplotlib/badge/?version=latest&style=flat-square)](https://readthedocs.org/projects/tikzplotlib/?badge=latest)
@@ -33,7 +33,7 @@ of axes, data etc. Consequently, the output of tikzplotlib
3333

3434
than [raw TikZ output](https://matplotlib.org/users/whats_new.html#pgf-tikz-backend).
3535
For example, the matplotlib figure
36-
```python,test
36+
```python
3737
import matplotlib.pyplot as plt
3838
import numpy as np
3939

setup.cfg

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ project_urls =
1111
long_description = file: README.md
1212
long_description_content_type = text/markdown
1313
license = MIT
14-
license_files = LICENSE
15-
platforms = any
14+
license_file = LICENSE
1615
classifiers =
1716
Development Status :: 4 - Beta
1817
License :: OSI Approved :: MIT License
@@ -27,9 +26,8 @@ classifiers =
2726

2827
[options]
2928
packages = find:
30-
# importlib_metadata can be removed when we support Python 3.8+ only
3129
install_requires =
32-
importlib_metadata
30+
importlib_metadata;python_version<"3.8"
3331
matplotlib >= 1.4.0
3432
numpy
3533
Pillow

test/test_cleanfigure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
2+
import pytest
23
from matplotlib import pyplot as plt
34

4-
import pytest
55
from tikzplotlib import clean_figure, get_tikz_code
66

77
RC_PARAMS = {"figure.figsize": [5, 5], "figure.dpi": 220, "pgf.rcfonts": False}

test/test_rotated_labels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import os
22
import tempfile
33

4+
import pytest
45
from matplotlib import pyplot as plt
56

6-
import pytest
77
import tikzplotlib
88

99

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ isolated_build = True
44

55
[testenv]
66
deps =
7+
exdown
78
pandas
89
pytest
910
pytest-cov

0 commit comments

Comments
 (0)