Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-versioningit for openSUSE:Factory checked in at 2023-02-14 16:47:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-versioningit (Old) and /work/SRC/openSUSE:Factory/.python-versioningit.new.27156 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-versioningit" Tue Feb 14 16:47:20 2023 rev:5 rq:1065548 version:2.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-versioningit/python-versioningit.changes 2022-11-10 14:24:10.510991758 +0100 +++ /work/SRC/openSUSE:Factory/.python-versioningit.new.27156/python-versioningit.changes 2023-02-14 16:47:59.511352924 +0100 @@ -1,0 +2,7 @@ +Sun Feb 12 01:30:01 UTC 2023 - Tejas Guruswamy <tejas.gurusw...@opensuse.org> + +- Update to version 2.2.0 + * The custom setuptools command classes can now be imported directly from the versioningit.cmdclass + module as an alternative to calling get_cmdclasses() + +------------------------------------------------------------------- Old: ---- versioningit-2.1.0.tar.gz New: ---- versioningit-2.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-versioningit.spec ++++++ --- /var/tmp/diff_new_pack.9Cazgi/_old 2023-02-14 16:47:59.999355805 +0100 +++ /var/tmp/diff_new_pack.9Cazgi/_new 2023-02-14 16:48:00.003355829 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-versioningit # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,7 @@ %endif Name: python-versioningit -Version: 2.1.0 +Version: 2.2.0 Release: 0 Summary: Versioning It with your Version In Git License: MIT ++++++ versioningit-2.1.0.tar.gz -> versioningit-2.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/CHANGELOG.md new/versioningit-2.2.0/CHANGELOG.md --- old/versioningit-2.1.0/CHANGELOG.md 2022-10-26 00:44:23.000000000 +0200 +++ new/versioningit-2.2.0/CHANGELOG.md 2023-02-12 00:03:59.000000000 +0100 @@ -1,3 +1,9 @@ +v2.2.0 (2023-02-11) +------------------- +- The custom setuptools command classes can now be imported directly from the + `versioningit.cmdclass` module as an alternative to calling + `get_cmdclasses()` + v2.1.0 (2022-10-25) ------------------- - Drop support for Python 3.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/LICENSE new/versioningit-2.2.0/LICENSE --- old/versioningit-2.1.0/LICENSE 2022-10-26 00:44:23.000000000 +0200 +++ new/versioningit-2.2.0/LICENSE 2023-02-12 00:04:00.000000000 +0100 @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021-2022 John Thorvald Wodder II and contributors +Copyright (c) 2021-2023 John Thorvald Wodder II and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/PKG-INFO new/versioningit-2.2.0/PKG-INFO --- old/versioningit-2.1.0/PKG-INFO 2022-10-26 00:44:29.964681100 +0200 +++ new/versioningit-2.2.0/PKG-INFO 2023-02-12 00:04:07.000789600 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: versioningit -Version: 2.1.0 +Version: 2.2.0 Summary: Versioning It with your Version In Git Home-page: https://github.com/jwodder/versioningit Author: John Thorvald Wodder II diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/docs/api.rst new/versioningit-2.2.0/docs/api.rst --- old/versioningit-2.1.0/docs/api.rst 2022-08-12 22:51:43.000000000 +0200 +++ new/versioningit-2.2.0/docs/api.rst 2023-02-12 00:02:04.000000000 +0100 @@ -10,6 +10,45 @@ .. autofunction:: get_next_version .. autofunction:: get_cmdclasses +.. class:: versioningit.cmdclass.sdist + + .. versionadded:: 2.2.0 + + A custom subclass of `setuptools.command.sdist.sdist` that runs the + ``onbuild`` step when building an sdist. This class is equivalent to + ``get_cmdclasses()["sdist"]``, except that it can also be used in the + ``[options]cmdclass`` field in :file:`setup.cfg`. + +.. class:: versioningit.cmdclass.build_py + + .. versionadded:: 2.2.0 + + A custom subclass of `setuptools.command.build_py.build_py` that runs the + ``onbuild`` step when building a wheel. This class is equivalent to + ``get_cmdclasses()["build_py"]``, except that it can also be used in the + ``[options]cmdclass`` field in :file:`setup.cfg`. + +.. note:: + + When importing or referring to the ``sdist`` and ``build_py`` command + classes, the ``.cmdclass`` submodule needs to be specified; unlike the rest + of the library API, they are not importable directly from ``versioningit``. + + .. code:: ini + + [options] + cmdclass = + # Right! + sdist = versioningit.cmdclass.sdist + build_py = versioningit.cmdclass.build_py + + [options] + cmdclass = + # Wrong! + sdist = versioningit.sdist + build_py = versioningit.build_py + + Low-Level Class --------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/docs/changelog.rst new/versioningit-2.2.0/docs/changelog.rst --- old/versioningit-2.1.0/docs/changelog.rst 2022-10-26 00:44:23.000000000 +0200 +++ new/versioningit-2.2.0/docs/changelog.rst 2023-02-12 00:03:59.000000000 +0100 @@ -3,6 +3,13 @@ Changelog ========= +v2.2.0 (2023-02-11) +------------------- +- The custom setuptools command classes can now be imported directly from the + ``versioningit.cmdclass`` module as an alternative to calling + `get_cmdclasses()` + + v2.1.0 (2022-10-25) ------------------- - Drop support for Python 3.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/docs/conf.py new/versioningit-2.2.0/docs/conf.py --- old/versioningit-2.1.0/docs/conf.py 2022-10-26 00:44:23.000000000 +0200 +++ new/versioningit-2.2.0/docs/conf.py 2023-02-12 00:04:00.000000000 +0100 @@ -2,7 +2,7 @@ project = "versioningit" author = "John Thorvald Wodder II" -copyright = "2021-2022 John Thorvald Wodder II" +copyright = "2021-2023 John Thorvald Wodder II" # noqa: A001 extensions = [ "sphinx.ext.autodoc", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/docs/configuration.rst new/versioningit-2.2.0/docs/configuration.rst --- old/versioningit-2.1.0/docs/configuration.rst 2022-08-12 22:51:43.000000000 +0200 +++ new/versioningit-2.2.0/docs/configuration.rst 2023-02-12 00:02:04.000000000 +0100 @@ -542,7 +542,7 @@ version>"`` or similar while leaving your repository alone. In order to use this feature, in addition to filling out the subtable, your -project must include a ``setup.py`` file that passes +project must include a :file:`setup.py` file that passes `versioningit.get_cmdclasses()` as the ``cmdclass`` argument to `setup()`, e.g.: @@ -556,6 +556,20 @@ # Other arguments go here ) +If you don't need to further customize the build process, this configuration +can be specified via :file:`setup.cfg` instead, like so: + +.. code:: ini + + [options] + cmdclass = + sdist = versioningit.cmdclass.sdist + build_py = versioningit.cmdclass.build_py + +.. versionadded:: 2.2.0 + + ``sdist`` and ``build_py`` classes added for use in :file:`setup.cfg` + ``versioningit`` provides one ``onbuild`` method, ``"replace-version"`` (the default). It scans a given file for a line matching a given regex and inserts the project version (or other templated string) into the first line that diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/docs/runtime-version.rst new/versioningit-2.2.0/docs/runtime-version.rst --- old/versioningit-2.1.0/docs/runtime-version.rst 2022-06-05 03:29:46.000000000 +0200 +++ new/versioningit-2.2.0/docs/runtime-version.rst 2023-02-12 00:02:04.000000000 +0100 @@ -67,11 +67,12 @@ __version__ = Path(__file__).with_name("VERSION").read_text().strip() 3. *(New in version 1.1.0)* Fill out the ``[tool.versioningit.onbuild]`` - subtable in :file:`pyproject.toml` and configure your :file:`setup.py` to - use ``versioningit``'s custom setuptools commands. This will allow you to - create sdists & wheels in which some file has been modified to contain the - line ``__version__ = "<project version>"`` or similar while leaving your - repository alone. See ":ref:`onbuild`" for more information. + subtable in :file:`pyproject.toml` and configure your :file:`setup.py` or + :file:`setup.cfg` to use ``versioningit``'s custom setuptools commands. + This will allow you to create sdists & wheels in which some file has been + modified to contain the line ``__version__ = "<project version>"`` or + similar while leaving your repository alone. See ":ref:`onbuild`" for more + information. .. tip:: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/src/versioningit/__init__.py new/versioningit-2.2.0/src/versioningit/__init__.py --- old/versioningit-2.1.0/src/versioningit/__init__.py 2022-10-26 00:44:23.000000000 +0200 +++ new/versioningit-2.2.0/src/versioningit/__init__.py 2023-02-12 00:03:59.000000000 +0100 @@ -38,13 +38,12 @@ <https://versioningit.rtfd.io> for more information. """ -__version__ = "2.1.0" +__version__ = "2.2.0" __author__ = "John Thorvald Wodder II" __author_email__ = "versionin...@varonathe.org" __license__ = "MIT" __url__ = "https://github.com/jwodder/versioningit" -from .cmdclasses import get_cmdclasses from .core import ( FallbackReport, Report, @@ -67,6 +66,7 @@ NotVCSError, NotVersioningitError, ) +from .get_cmdclasses import get_cmdclasses __all__ = [ "ConfigError", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/src/versioningit/cmdclass.py new/versioningit-2.2.0/src/versioningit/cmdclass.py --- old/versioningit-2.1.0/src/versioningit/cmdclass.py 1970-01-01 01:00:00.000000000 +0100 +++ new/versioningit-2.2.0/src/versioningit/cmdclass.py 2023-02-12 00:02:04.000000000 +0100 @@ -0,0 +1,9 @@ +# Note: The classes in this module are not to be re-exported by `__init__.py`, +# as that would mean unconditionally importing setuptools whenever versioningit +# is imported, slowing things down. + +from .get_cmdclasses import get_cmdclasses + +_cmdclasses = get_cmdclasses() +sdist = _cmdclasses["sdist"] +build_py = _cmdclasses["build_py"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/src/versioningit/cmdclasses.py new/versioningit-2.2.0/src/versioningit/cmdclasses.py --- old/versioningit-2.1.0/src/versioningit/cmdclasses.py 2022-10-16 20:35:59.000000000 +0200 +++ new/versioningit-2.2.0/src/versioningit/cmdclasses.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,85 +0,0 @@ -from __future__ import annotations -from pathlib import Path -from typing import TYPE_CHECKING, Any, Optional -from .core import get_template_fields_from_distribution, run_onbuild -from .logging import init_logging, log - -if TYPE_CHECKING: - from setuptools import Command - - -def get_cmdclasses( - bases: Optional[dict[str, type[Command]]] = None -) -> dict[str, type[Command]]: - """ - .. versionadded:: 1.1.0 - - Return a `dict` of custom setuptools `Command` classes, suitable for - passing to the ``cmdclass`` argument of `setuptools.setup()`, that run the - ``onbuild`` step for the project when building an sdist or wheel. - Specifically, the `dict` contains a subclass of - `setuptools.command.sdist.sdist` at the ``"sdist"`` key and a subclass of - `setuptools.command.build_py.build_py` at the ``"build_py"`` key. - - A `dict` of alternative base classes can optionally be supplied; if the - `dict` contains an ``"sdist"`` entry, that entry will be used as the base - class for the customized ``sdist`` command, and likewise for - ``"build_py"``. All other classes in the input `dict` are passed through - unchanged. - """ - # Import setuptools here so there isn't a slowdown from importing it - # unconditionally whenever versioningit is imported - from setuptools.command.build_py import build_py - from setuptools.command.sdist import sdist - - cmds = {} if bases is None else bases.copy() - - sdist_base = cmds.get("sdist", sdist) - - class VersioningitSdist(sdist_base): # type: ignore[valid-type,misc] - def make_release_tree(self, base_dir: str, files: Any) -> None: - super().make_release_tree(base_dir, files) - init_logging() - template_fields = get_template_fields_from_distribution(self.distribution) - if template_fields is not None: - PROJECT_ROOT = Path().resolve() - log.debug("Running onbuild step; cwd=%s", PROJECT_ROOT) - run_onbuild( - project_dir=PROJECT_ROOT, - build_dir=base_dir, - is_source=True, - template_fields=template_fields, - ) - else: - log.debug( - "Appear to be building from an sdist; not running onbuild step" - ) - - cmds["sdist"] = VersioningitSdist - - build_py_base = cmds.get("build_py", build_py) - - class VersioningitBuildPy(build_py_base): # type: ignore[valid-type,misc] - editable_mode: bool = False - - def run(self) -> None: - super().run() - init_logging() - template_fields = get_template_fields_from_distribution(self.distribution) - if not self.editable_mode and template_fields is not None: - PROJECT_ROOT = Path().resolve() - log.debug("Running onbuild step; cwd=%s", PROJECT_ROOT) - run_onbuild( - project_dir=PROJECT_ROOT, - build_dir=self.build_lib, - is_source=False, - template_fields=template_fields, - ) - else: - log.debug( - "Appear to be building from an sdist; not running onbuild step" - ) - - cmds["build_py"] = VersioningitBuildPy - - return cmds diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/src/versioningit/get_cmdclasses.py new/versioningit-2.2.0/src/versioningit/get_cmdclasses.py --- old/versioningit-2.1.0/src/versioningit/get_cmdclasses.py 1970-01-01 01:00:00.000000000 +0100 +++ new/versioningit-2.2.0/src/versioningit/get_cmdclasses.py 2023-02-12 00:02:04.000000000 +0100 @@ -0,0 +1,85 @@ +from __future__ import annotations +from pathlib import Path +from typing import TYPE_CHECKING, Any, Optional +from .core import get_template_fields_from_distribution, run_onbuild +from .logging import init_logging, log + +if TYPE_CHECKING: + from setuptools import Command + + +def get_cmdclasses( + bases: Optional[dict[str, type[Command]]] = None +) -> dict[str, type[Command]]: + """ + .. versionadded:: 1.1.0 + + Return a `dict` of custom setuptools `Command` classes, suitable for + passing to the ``cmdclass`` argument of `setuptools.setup()`, that run the + ``onbuild`` step for the project when building an sdist or wheel. + Specifically, the `dict` contains a subclass of + `setuptools.command.sdist.sdist` at the ``"sdist"`` key and a subclass of + `setuptools.command.build_py.build_py` at the ``"build_py"`` key. + + A `dict` of alternative base classes can optionally be supplied; if the + `dict` contains an ``"sdist"`` entry, that entry will be used as the base + class for the customized ``sdist`` command, and likewise for + ``"build_py"``. All other classes in the input `dict` are passed through + unchanged. + """ + # Import setuptools here so there isn't a slowdown from importing it + # unconditionally whenever versioningit is imported + from setuptools.command.build_py import build_py + from setuptools.command.sdist import sdist + + cmds = {} if bases is None else bases.copy() + + sdist_base = cmds.get("sdist", sdist) + + class VersioningitSdist(sdist_base): # type: ignore[valid-type,misc] + def make_release_tree(self, base_dir: str, files: Any) -> None: + super().make_release_tree(base_dir, files) + init_logging() + template_fields = get_template_fields_from_distribution(self.distribution) + if template_fields is not None: + PROJECT_ROOT = Path().resolve() + log.debug("Running onbuild step; cwd=%s", PROJECT_ROOT) + run_onbuild( + project_dir=PROJECT_ROOT, + build_dir=base_dir, + is_source=True, + template_fields=template_fields, + ) + else: + log.debug( + "Appear to be building from an sdist; not running onbuild step" + ) + + cmds["sdist"] = VersioningitSdist + + build_py_base = cmds.get("build_py", build_py) + + class VersioningitBuildPy(build_py_base): # type: ignore[valid-type,misc] + editable_mode: bool = False + + def run(self) -> None: + super().run() + init_logging() + template_fields = get_template_fields_from_distribution(self.distribution) + if not self.editable_mode and template_fields is not None: + PROJECT_ROOT = Path().resolve() + log.debug("Running onbuild step; cwd=%s", PROJECT_ROOT) + run_onbuild( + project_dir=PROJECT_ROOT, + build_dir=self.build_lib, + is_source=False, + template_fields=template_fields, + ) + else: + log.debug( + "Appear to be building from an sdist; not running onbuild step" + ) + + cmds["build_py"] = VersioningitBuildPy + + return cmds diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/src/versioningit.egg-info/PKG-INFO new/versioningit-2.2.0/src/versioningit.egg-info/PKG-INFO --- old/versioningit-2.1.0/src/versioningit.egg-info/PKG-INFO 2022-10-26 00:44:29.000000000 +0200 +++ new/versioningit-2.2.0/src/versioningit.egg-info/PKG-INFO 2023-02-12 00:04:06.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: versioningit -Version: 2.1.0 +Version: 2.2.0 Summary: Versioning It with your Version In Git Home-page: https://github.com/jwodder/versioningit Author: John Thorvald Wodder II diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/src/versioningit.egg-info/SOURCES.txt new/versioningit-2.2.0/src/versioningit.egg-info/SOURCES.txt --- old/versioningit-2.1.0/src/versioningit.egg-info/SOURCES.txt 2022-10-26 00:44:29.000000000 +0200 +++ new/versioningit-2.2.0/src/versioningit.egg-info/SOURCES.txt 2023-02-12 00:04:06.000000000 +0100 @@ -19,10 +19,11 @@ src/versioningit/__init__.py src/versioningit/__main__.py src/versioningit/basics.py -src/versioningit/cmdclasses.py +src/versioningit/cmdclass.py src/versioningit/config.py src/versioningit/core.py src/versioningit/errors.py +src/versioningit/get_cmdclasses.py src/versioningit/git.py src/versioningit/hg.py src/versioningit/hook.py @@ -189,6 +190,8 @@ test/data/repos/git/match.zip test/data/repos/git/onbuild-bases.json test/data/repos/git/onbuild-bases.zip +test/data/repos/git/onbuild-cfg.json +test/data/repos/git/onbuild-cfg.zip test/data/repos/git/onbuild-nonidem.json test/data/repos/git/onbuild-nonidem.zip test/data/repos/git/onbuild-write-fields.json diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/test/conftest.py new/versioningit-2.2.0/test/conftest.py --- old/versioningit-2.1.0/test/conftest.py 2021-07-05 00:11:21.000000000 +0200 +++ new/versioningit-2.2.0/test/conftest.py 2023-02-04 16:05:59.000000000 +0100 @@ -1,7 +1,27 @@ +from __future__ import annotations import logging import pytest +def pytest_addoption(parser: pytest.Parser) -> None: + parser.addoption( + "--oldsetup", + action="store_true", + default=False, + help="Run tests that require older setuptools", + ) + + +def pytest_collection_modifyitems( + config: pytest.Config, items: list[pytest.Item] +) -> None: + if not config.getoption("--oldsetup"): + skipper = pytest.mark.skip(reason="Only run when --oldsetup is given") + for item in items: + if "oldsetup" in item.keywords: + item.add_marker(skipper) + + @pytest.fixture(autouse=True) def capture_all_logs(caplog: pytest.LogCaptureFixture) -> None: caplog.set_level(logging.DEBUG, logger="versioningit") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/test/data/repos/git/default-version-bad.marks new/versioningit-2.2.0/test/data/repos/git/default-version-bad.marks --- old/versioningit-2.1.0/test/data/repos/git/default-version-bad.marks 2022-06-05 03:29:46.000000000 +0200 +++ new/versioningit-2.2.0/test/data/repos/git/default-version-bad.marks 2023-02-04 16:06:04.000000000 +0100 @@ -1 +1,2 @@ describe_exclude +oldsetup diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/test/data/repos/git/onbuild-cfg.json new/versioningit-2.2.0/test/data/repos/git/onbuild-cfg.json --- old/versioningit-2.1.0/test/data/repos/git/onbuild-cfg.json 1970-01-01 01:00:00.000000000 +0100 +++ new/versioningit-2.2.0/test/data/repos/git/onbuild-cfg.json 2023-02-12 00:02:04.000000000 +0100 @@ -0,0 +1,12 @@ +{ + "version": "0.1.0.post2+g5213162", + "next_version": "0.2.0", + "files": [ + { + "sdist_path": "src/mypackage/__init__.py", + "wheel_path": "mypackage/__init__.py", + "in_project": false, + "contents": "\"\"\" A test package \"\"\"\n\n__version__ = \"0.1.0.post2+g5213162\"\n__author__ = \"John Thorvald Wodder II\"\n__author_email__ = \"mypack...@varonathe.org\"\n__license__ = \"MIT\"\n" + } + ] +} Binary files old/versioningit-2.1.0/test/data/repos/git/onbuild-cfg.zip and new/versioningit-2.2.0/test/data/repos/git/onbuild-cfg.zip differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/versioningit-2.1.0/tox.ini new/versioningit-2.2.0/tox.ini --- old/versioningit-2.1.0/tox.ini 2022-10-25 21:03:32.000000000 +0200 +++ new/versioningit-2.2.0/tox.ini 2023-02-04 16:06:12.000000000 +0100 @@ -28,7 +28,7 @@ pytest-mock wheel commands = - pytest {posargs:-v} test + pytest {posargs:-v} --oldsetup test [testenv:lint] skip_install = True @@ -58,6 +58,7 @@ filterwarnings = error markers = describe_exclude: Tests that use `git describe --exclude` (Added in Git 2.13.0) + oldsetup: Tests to only run under pre-v64 setuptools norecursedirs = test/data [coverage:run] @@ -67,7 +68,7 @@ [coverage:paths] source = src - .tox/*/site-packages + .tox/**/site-packages [coverage:report] precision = 2 @@ -84,8 +85,8 @@ max-doc-length = 100 max-line-length = 80 unused-arguments-ignore-stub-functions = True -select = C,B,B902,B950,E,E242,F,U100,W -ignore = B005,E203,E262,E266,E501,W503 +select = A,B,B902,B950,C,E,E242,F,U100,W +ignore = A003,B005,E203,E262,E266,E501,W503 [isort] atomic = True