summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Streicher <olebole@debian.org>2022-01-16 12:17:33 +0100
committerOle Streicher <olebole@debian.org>2022-01-16 12:17:33 +0100
commitf05c58d7fe72aac6f66a519924a33e4229773fda (patch)
tree61ea86317677d133ed4cde8aae4a807ad901c5fe
parent4deef5926a92abf01e2e3d04e6067dbc625e1bad (diff)
New upstream version 0.5.0
-rw-r--r--CHANGES.md7
-rw-r--r--PKG-INFO7
-rw-r--r--README.rst4
-rw-r--r--pytest_arraydiff.egg-info/PKG-INFO7
-rw-r--r--pytest_arraydiff.egg-info/requires.txt2
-rwxr-xr-xpytest_arraydiff/plugin.py4
-rw-r--r--pytest_arraydiff/version.py4
-rw-r--r--setup.cfg5
-rw-r--r--tox.ini3
9 files changed, 36 insertions, 7 deletions
diff --git a/CHANGES.md b/CHANGES.md
index 49faa1f..3e86ce3 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,3 +1,10 @@
+0.5 (2022-01-12)
+----------------
+
+- Removed `astropy` as required dependency. [#31]
+
+- Formally register `array_compare` as marker.
+
0.4 (2021-12-31)
----------------
diff --git a/PKG-INFO b/PKG-INFO
index 2a54e1f..7d951cd 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pytest-arraydiff
-Version: 0.4.0
+Version: 0.5.0
Summary: pytest plugin to help with comparing array output from tests
Home-page: https://github.com/astropy/pytest-arraydiff
Author: The Astropy Developers
@@ -23,8 +23,13 @@ Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/x-rst
+Provides-Extra: test
License-File: LICENSE
+.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5811772.svg
+ :target: https://doi.org/10.5281/zenodo.5811772
+ :alt: 10.5281/zenodo.5811772
+
.. image:: https://github.com/astropy/pytest-arraydiff/workflows/CI/badge.svg
:target: https://github.com/astropy/pytest-arraydiff/actions
:alt: CI Status
diff --git a/README.rst b/README.rst
index a056ddf..3ac149a 100644
--- a/README.rst
+++ b/README.rst
@@ -1,3 +1,7 @@
+.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5811772.svg
+ :target: https://doi.org/10.5281/zenodo.5811772
+ :alt: 10.5281/zenodo.5811772
+
.. image:: https://github.com/astropy/pytest-arraydiff/workflows/CI/badge.svg
:target: https://github.com/astropy/pytest-arraydiff/actions
:alt: CI Status
diff --git a/pytest_arraydiff.egg-info/PKG-INFO b/pytest_arraydiff.egg-info/PKG-INFO
index 2a54e1f..7d951cd 100644
--- a/pytest_arraydiff.egg-info/PKG-INFO
+++ b/pytest_arraydiff.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pytest-arraydiff
-Version: 0.4.0
+Version: 0.5.0
Summary: pytest plugin to help with comparing array output from tests
Home-page: https://github.com/astropy/pytest-arraydiff
Author: The Astropy Developers
@@ -23,8 +23,13 @@ Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/x-rst
+Provides-Extra: test
License-File: LICENSE
+.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5811772.svg
+ :target: https://doi.org/10.5281/zenodo.5811772
+ :alt: 10.5281/zenodo.5811772
+
.. image:: https://github.com/astropy/pytest-arraydiff/workflows/CI/badge.svg
:target: https://github.com/astropy/pytest-arraydiff/actions
:alt: CI Status
diff --git a/pytest_arraydiff.egg-info/requires.txt b/pytest_arraydiff.egg-info/requires.txt
index 43c6acf..9ce3e63 100644
--- a/pytest_arraydiff.egg-info/requires.txt
+++ b/pytest_arraydiff.egg-info/requires.txt
@@ -1,3 +1,5 @@
pytest>=4.6
numpy
+
+[test]
astropy
diff --git a/pytest_arraydiff/plugin.py b/pytest_arraydiff/plugin.py
index 9d10bad..8d54faf 100755
--- a/pytest_arraydiff/plugin.py
+++ b/pytest_arraydiff/plugin.py
@@ -164,7 +164,9 @@ def pytest_addoption(parser):
def pytest_configure(config):
-
+ config.getini('markers').append(
+ 'array_compare: for functions using array comparison')
+
if config.getoption("--arraydiff") or config.getoption("--arraydiff-generate-path") is not None:
reference_dir = config.getoption("--arraydiff-reference-path")
diff --git a/pytest_arraydiff/version.py b/pytest_arraydiff/version.py
index d2d477f..7856683 100644
--- a/pytest_arraydiff/version.py
+++ b/pytest_arraydiff/version.py
@@ -1,5 +1,5 @@
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
-version = '0.4.0'
-version_tuple = (0, 4, 0)
+version = '0.5.0'
+version_tuple = (0, 5, 0)
diff --git a/setup.cfg b/setup.cfg
index fd87af3..ef3a9e2 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -32,6 +32,9 @@ setup_requires =
install_requires =
pytest>=4.6
numpy
+
+[options.extras_require]
+test =
astropy
[options.entry_points]
@@ -43,7 +46,7 @@ minversion = 4.6
testpaths = tests
xfail_strict = true
markers =
- array_compare : for functions using array comparison
+ array_compare: for functions using array comparison
[flake8]
max-line-length = 150
diff --git a/tox.ini b/tox.ini
index f1833ab..c278ab9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,7 +19,8 @@ deps =
pytest61: pytest==6.1.*
pytest62: pytest==6.2.*
pytestdev: git+https://github.com/pytest-dev/pytest#egg=pytest
-
+extras =
+ test
commands =
pip freeze
pytest {toxinidir}/tests {posargs}