Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-astropy for 
openSUSE:Factory checked in at 2022-05-26 19:03:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-astropy (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-astropy.new.2254 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-astropy"

Thu May 26 19:03:28 2022 rev:7 rq:979377 version:0.10.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-astropy/python-pytest-astropy.changes  
    2021-10-21 23:55:16.252017601 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-astropy.new.2254/python-pytest-astropy.changes
    2022-05-26 19:03:29.406564809 +0200
@@ -1,0 +2,7 @@
+Thu May 26 16:28:24 UTC 2022 - Ben Greiner <c...@bnavigator.de>
+
+- Update to 0.10:
+  * MNT: Stop using distutils by @pllim in #47
+  * Add plugin for cpu/memory intensive tests by @saimn in #48
+
+-------------------------------------------------------------------

Old:
----
  pytest-astropy-0.9.0.tar.gz

New:
----
  pytest-astropy-0.10.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-astropy.spec ++++++
--- /var/tmp/diff_new_pack.MJ2No1/_old  2022-05-26 19:03:30.062565600 +0200
+++ /var/tmp/diff_new_pack.MJ2No1/_new  2022-05-26 19:03:30.070565611 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-astropy
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,16 @@
 #
 
 
+%{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
-%define skip_python36 1
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pytest-astropy
-Version:        0.9.0
+Version:        0.10.0
 Release:        0
 Summary:        Meta-package containing dependencies for testing
 License:        BSD-3-Clause
 URL:            https://github.com/astropy/pytest-astropy
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-astropy/pytest-astropy-%{version}.tar.gz
+BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -49,6 +49,12 @@
 astropy and some affiliated packages for testing. It can also be used for
 testing packages that are not affiliated with the Astropy project.
 
+This package also provides pytest markers for cpu and memory intensive tests
+(`pytest.mark.slow` and `pytest.mark.hugemem`). Tests marked with those
+markers are not run by default, can be run with the other tests with
+`--run-slow` and `--run-hugemem`, and can be run separately with `-m slow`
+and `-m hugemem`.
+
 %prep
 %setup -q -n pytest-astropy-%{version}
 
@@ -62,6 +68,7 @@
 %files %{python_files}
 %doc CHANGES.rst README.rst
 %license LICENSE.rst
-%{python_sitelib}/pytest_astropy-%{version}-py*.egg-info
+%{python_sitelib}/pytest_astropy
+%{python_sitelib}/pytest_astropy-%{version}*-info
 
 %changelog

++++++ pytest-astropy-0.9.0.tar.gz -> pytest-astropy-0.10.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/.gitignore 
new/pytest-astropy-0.10.0/.gitignore
--- old/pytest-astropy-0.9.0/.gitignore 2021-09-20 23:33:54.000000000 +0200
+++ new/pytest-astropy-0.10.0/.gitignore        2022-04-12 21:38:27.000000000 
+0200
@@ -52,3 +52,6 @@
 
 # PyCharm
 .idea
+
+pytest_astropy/version.py
+pip-wheel-metadata/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/CHANGES.rst 
new/pytest-astropy-0.10.0/CHANGES.rst
--- old/pytest-astropy-0.9.0/CHANGES.rst        2021-09-21 18:22:16.000000000 
+0200
+++ new/pytest-astropy-0.10.0/CHANGES.rst       2022-04-12 21:38:27.000000000 
+0200
@@ -1,3 +1,10 @@
+0.10.0 (2022-04-21)
+===================
+
+- Dropped ``distutils`` as build dependency. [#47]
+
+- Added plugin for cpu/memory intensive tests. See ``README.rst``. [#48]
+
 0.9.0 (2021-09-21)
 ==================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/LICENSE.rst 
new/pytest-astropy-0.10.0/LICENSE.rst
--- old/pytest-astropy-0.9.0/LICENSE.rst        2021-09-21 17:28:00.000000000 
+0200
+++ new/pytest-astropy-0.10.0/LICENSE.rst       2022-04-12 21:38:27.000000000 
+0200
@@ -1,4 +1,4 @@
-Copyright (c) 2011-2021, Astropy Developers
+Copyright (c) 2011-2022, Astropy Developers
 
 All rights reserved.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/PKG-INFO 
new/pytest-astropy-0.10.0/PKG-INFO
--- old/pytest-astropy-0.9.0/PKG-INFO   2021-09-21 18:29:16.780000000 +0200
+++ new/pytest-astropy-0.10.0/PKG-INFO  2022-04-12 21:38:41.745439800 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-astropy
-Version: 0.9.0
+Version: 0.10.0
 Summary: Meta-package containing dependencies for testing
 Home-page: https://github.com/astropy/pytest-astropy
 Author: The Astropy Developers
@@ -23,16 +23,27 @@
 Classifier: Topic :: Software Development :: Testing
 Classifier: Topic :: Utilities
 Requires-Python: >=3.7
+Description-Content-Type: text/x-rst
 License-File: LICENSE.rst
 
 ==============
 pytest-astropy
 ==============
 
+.. image:: https://zenodo.org/badge/104255122.svg
+   :target: https://zenodo.org/badge/latestdoi/104255122
+   :alt: Zenodo DOI
+
 This is a meta-package that pulls in the dependencies that are used by
 `astropy`_ and some `affiliated packages`_ for testing. It can also be used for
 testing packages that are not affiliated with the Astropy project.
 
+This package also provides pytest markers for cpu and memory intensive tests
+(``pytest.mark.slow`` and ``pytest.mark.hugemem``). Tests marked with those
+markers are not run by default, can be run with the other tests with
+``--run-slow`` and ``--run-hugemem``, and can be run separately with ``-m 
slow``
+and ``-n hugemem``.
+
 .. _astropy: https://docs.astropy.org/en/latest/
 .. _affiliated packages: https://astropy.org/affiliated
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/README.rst 
new/pytest-astropy-0.10.0/README.rst
--- old/pytest-astropy-0.9.0/README.rst 2021-09-20 23:35:47.000000000 +0200
+++ new/pytest-astropy-0.10.0/README.rst        2022-04-12 21:38:27.000000000 
+0200
@@ -2,10 +2,20 @@
 pytest-astropy
 ==============
 
+.. image:: https://zenodo.org/badge/104255122.svg
+   :target: https://zenodo.org/badge/latestdoi/104255122
+   :alt: Zenodo DOI
+
 This is a meta-package that pulls in the dependencies that are used by
 `astropy`_ and some `affiliated packages`_ for testing. It can also be used for
 testing packages that are not affiliated with the Astropy project.
 
+This package also provides pytest markers for cpu and memory intensive tests
+(``pytest.mark.slow`` and ``pytest.mark.hugemem``). Tests marked with those
+markers are not run by default, can be run with the other tests with
+``--run-slow`` and ``--run-hugemem``, and can be run separately with ``-m 
slow``
+and ``-n hugemem``.
+
 .. _astropy: https://docs.astropy.org/en/latest/
 .. _affiliated packages: https://astropy.org/affiliated
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/pyproject.toml 
new/pytest-astropy-0.10.0/pyproject.toml
--- old/pytest-astropy-0.9.0/pyproject.toml     1970-01-01 01:00:00.000000000 
+0100
+++ new/pytest-astropy-0.10.0/pyproject.toml    2022-04-12 21:38:27.000000000 
+0200
@@ -0,0 +1,8 @@
+[build-system]
+requires = ["setuptools>=30.3.0",
+            "setuptools_scm",
+            "wheel"]
+build-backend = 'setuptools.build_meta'
+
+[tool.setuptools_scm]
+write_to = "pytest_astropy/version.py"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/pytest_astropy/__init__.py 
new/pytest-astropy-0.10.0/pytest_astropy/__init__.py
--- old/pytest-astropy-0.9.0/pytest_astropy/__init__.py 1970-01-01 
01:00:00.000000000 +0100
+++ new/pytest-astropy-0.10.0/pytest_astropy/__init__.py        2022-04-12 
21:38:27.000000000 +0200
@@ -0,0 +1,3 @@
+# Licensed under a 3-clause BSD style license - see LICENSE.rst
+
+from .version import version as __version__  # noqa
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/pytest_astropy/plugin.py 
new/pytest-astropy-0.10.0/pytest_astropy/plugin.py
--- old/pytest-astropy-0.9.0/pytest_astropy/plugin.py   1970-01-01 
01:00:00.000000000 +0100
+++ new/pytest-astropy-0.10.0/pytest_astropy/plugin.py  2022-04-12 
21:38:27.000000000 +0200
@@ -0,0 +1,41 @@
+# Licensed under a 3-clause BSD style license - see LICENSE.rst
+
+# Add a --run-slow and --run-hugemem options to run cpu and memory
+# intensive tests
+
+import pytest
+
+
+def pytest_addoption(parser):
+    parser.addoption(
+        "--run-slow",
+        action="store_true",
+        default=False,
+        help="run slow tests",
+    )
+    parser.addoption(
+        "--run-hugemem",
+        action="store_true",
+        default=False,
+        help="run memory intensive tests",
+    )
+
+
+def pytest_configure(config):
+    config.addinivalue_line("markers", "slow: mark test as slow to run")
+    config.addinivalue_line("markers",
+                            "hugemem: mark test as using a lot of memory")
+
+
+def pytest_collection_modifyitems(config, items):
+    run_slow = config.getoption("--run-slow")
+    run_hugemem = config.getoption("--run-hugemem")
+
+    skip_slow = pytest.mark.skip(reason="need --run-slow option to run")
+    skip_hugemem = pytest.mark.skip(reason="need --run-hugemem option to run")
+
+    for item in items:
+        if "slow" in item.keywords and not run_slow:
+            item.add_marker(skip_slow)
+        if "hugemem" in item.keywords and not run_hugemem:
+            item.add_marker(skip_hugemem)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/pytest_astropy/version.py 
new/pytest-astropy-0.10.0/pytest_astropy/version.py
--- old/pytest-astropy-0.9.0/pytest_astropy/version.py  1970-01-01 
01:00:00.000000000 +0100
+++ new/pytest-astropy-0.10.0/pytest_astropy/version.py 2022-04-12 
21:38:40.000000000 +0200
@@ -0,0 +1,5 @@
+# coding: utf-8
+# file generated by setuptools_scm
+# don't change, don't track in version control
+version = '0.10.0'
+version_tuple = (0, 10, 0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-astropy-0.9.0/pytest_astropy.egg-info/PKG-INFO 
new/pytest-astropy-0.10.0/pytest_astropy.egg-info/PKG-INFO
--- old/pytest-astropy-0.9.0/pytest_astropy.egg-info/PKG-INFO   2021-09-21 
18:29:16.000000000 +0200
+++ new/pytest-astropy-0.10.0/pytest_astropy.egg-info/PKG-INFO  2022-04-12 
21:38:41.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-astropy
-Version: 0.9.0
+Version: 0.10.0
 Summary: Meta-package containing dependencies for testing
 Home-page: https://github.com/astropy/pytest-astropy
 Author: The Astropy Developers
@@ -23,16 +23,27 @@
 Classifier: Topic :: Software Development :: Testing
 Classifier: Topic :: Utilities
 Requires-Python: >=3.7
+Description-Content-Type: text/x-rst
 License-File: LICENSE.rst
 
 ==============
 pytest-astropy
 ==============
 
+.. image:: https://zenodo.org/badge/104255122.svg
+   :target: https://zenodo.org/badge/latestdoi/104255122
+   :alt: Zenodo DOI
+
 This is a meta-package that pulls in the dependencies that are used by
 `astropy`_ and some `affiliated packages`_ for testing. It can also be used for
 testing packages that are not affiliated with the Astropy project.
 
+This package also provides pytest markers for cpu and memory intensive tests
+(``pytest.mark.slow`` and ``pytest.mark.hugemem``). Tests marked with those
+markers are not run by default, can be run with the other tests with
+``--run-slow`` and ``--run-hugemem``, and can be run separately with ``-m 
slow``
+and ``-n hugemem``.
+
 .. _astropy: https://docs.astropy.org/en/latest/
 .. _affiliated packages: https://astropy.org/affiliated
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-astropy-0.9.0/pytest_astropy.egg-info/SOURCES.txt 
new/pytest-astropy-0.10.0/pytest_astropy.egg-info/SOURCES.txt
--- old/pytest-astropy-0.9.0/pytest_astropy.egg-info/SOURCES.txt        
2021-09-21 18:29:16.000000000 +0200
+++ new/pytest-astropy-0.10.0/pytest_astropy.egg-info/SOURCES.txt       
2022-04-12 21:38:41.000000000 +0200
@@ -3,12 +3,17 @@
 LICENSE.rst
 MANIFEST.in
 README.rst
+pyproject.toml
 setup.cfg
 setup.py
 .github/workflows/publish.yml
+pytest_astropy/__init__.py
+pytest_astropy/plugin.py
+pytest_astropy/version.py
 pytest_astropy.egg-info/PKG-INFO
 pytest_astropy.egg-info/SOURCES.txt
 pytest_astropy.egg-info/dependency_links.txt
+pytest_astropy.egg-info/entry_points.txt
 pytest_astropy.egg-info/not-zip-safe
 pytest_astropy.egg-info/requires.txt
 pytest_astropy.egg-info/top_level.txt
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-astropy-0.9.0/pytest_astropy.egg-info/entry_points.txt 
new/pytest-astropy-0.10.0/pytest_astropy.egg-info/entry_points.txt
--- old/pytest-astropy-0.9.0/pytest_astropy.egg-info/entry_points.txt   
1970-01-01 01:00:00.000000000 +0100
+++ new/pytest-astropy-0.10.0/pytest_astropy.egg-info/entry_points.txt  
2022-04-12 21:38:41.000000000 +0200
@@ -0,0 +1,2 @@
+[pytest11]
+pytest_astropy = pytest_astropy.plugin
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-astropy-0.9.0/pytest_astropy.egg-info/top_level.txt 
new/pytest-astropy-0.10.0/pytest_astropy.egg-info/top_level.txt
--- old/pytest-astropy-0.9.0/pytest_astropy.egg-info/top_level.txt      
2021-09-21 18:29:16.000000000 +0200
+++ new/pytest-astropy-0.10.0/pytest_astropy.egg-info/top_level.txt     
2022-04-12 21:38:41.000000000 +0200
@@ -1 +1 @@
-
+pytest_astropy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/setup.cfg 
new/pytest-astropy-0.10.0/setup.cfg
--- old/pytest-astropy-0.9.0/setup.cfg  2021-09-21 18:29:16.780000000 +0200
+++ new/pytest-astropy-0.10.0/setup.cfg 2022-04-12 21:38:41.745439800 +0200
@@ -21,6 +21,7 @@
 license = BSD
 description = Meta-package containing dependencies for testing
 long_description = file: README.rst
+long_description_content_type = text/x-rst
 keywords = pytest, remotedata, openfiles, doctestplus, hypothesis, 
property-based testing
 
 [options]
@@ -41,6 +42,10 @@
        attrs>=19.2.0
        hypothesis>=5.1
 
+[options.entry_points]
+pytest11 = 
+       pytest_astropy = pytest_astropy.plugin
+
 [egg_info]
 tag_build = 
 tag_date = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-astropy-0.9.0/setup.py 
new/pytest-astropy-0.10.0/setup.py
--- old/pytest-astropy-0.9.0/setup.py   2021-09-20 23:33:54.000000000 +0200
+++ new/pytest-astropy-0.10.0/setup.py  2022-04-12 21:38:27.000000000 +0200
@@ -1,14 +1,5 @@
 #!/usr/bin/env python
 
-import sys
-import setuptools
-from distutils.version import LooseVersion
 from setuptools import setup
 
-# Setuptools 30.3.0 or later is needed for setup.cfg options to be used
-if LooseVersion(setuptools.__version__) < LooseVersion('30.3.0'):
-    sys.stderr.write("ERROR: pytest-astropy requires setuptools 30.3.0 or "
-                     "later (found {0})".format(setuptools.__version__))
-    sys.exit(1)
-
-setup(use_scm_version=True)
+setup()

Reply via email to