Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytest-env for openSUSE:Factory checked in at 2023-07-26 13:21:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-env (Old) and /work/SRC/openSUSE:Factory/.python-pytest-env.new.15225 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-env" Wed Jul 26 13:21:41 2023 rev:5 rq:1100444 version:0.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-env/python-pytest-env.changes 2023-05-13 17:17:07.726204188 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-env.new.15225/python-pytest-env.changes 2023-07-26 13:21:46.779257498 +0200 @@ -1,0 +2,9 @@ +Mon Jul 24 18:58:47 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 0.8.2: + * Bump tools and deps + * Bump deps and tools + * Add 3.12 support + * Add ruff + +------------------------------------------------------------------- Old: ---- pytest_env-0.8.1.tar.gz New: ---- pytest_env-0.8.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-env.spec ++++++ --- /var/tmp/diff_new_pack.23Kygk/_old 2023-07-26 13:21:48.507267277 +0200 +++ /var/tmp/diff_new_pack.23Kygk/_new 2023-07-26 13:21:48.511267300 +0200 @@ -18,12 +18,12 @@ %{?sle15_python_module_pythons} Name: python-pytest-env -Version: 0.8.1 +Version: 0.8.2 Release: 0 Summary: Pytest plugin to add environment variables License: MIT Group: Development/Languages/Python -URL: https://github.com/MobileDynasty/pytest-env +URL: https://github.com/pytest-dev/pytest-env Source: https://files.pythonhosted.org/packages/source/p/pytest-env/pytest_env-%{version}.tar.gz BuildRequires: %{python_module hatch_vcs} BuildRequires: %{python_module pip} ++++++ pytest_env-0.8.1.tar.gz -> pytest_env-0.8.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/.github/FUNDING.yml new/pytest_env-0.8.2/.github/FUNDING.yml --- old/pytest_env-0.8.1/.github/FUNDING.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/.github/FUNDING.yml 2020-02-02 01:00:00.000000000 +0100 @@ -0,0 +1 @@ +tidelift: "pypi/pytest-env" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/.github/SECURITY.md new/pytest_env-0.8.2/.github/SECURITY.md --- old/pytest_env-0.8.1/.github/SECURITY.md 1970-01-01 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/.github/SECURITY.md 2020-02-02 01:00:00.000000000 +0100 @@ -0,0 +1,13 @@ +# Security Policy + +## Supported Versions + +| Version | Supported | +| ------- | ------------------ | +| 0.8.0 + | :white_check_mark: | +| < 0.8.0 | :x: | + +## Reporting a Vulnerability + +To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift +will coordinate the fix and disclosure. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/.github/workflows/check.yml new/pytest_env-0.8.2/.github/workflows/check.yml --- old/pytest_env-0.8.1/.github/workflows/check.yml 2020-02-02 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/.github/workflows/check.yml 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,7 @@ name: check on: push: + tags-ignore: ["**"] pull_request: schedule: - cron: "0 8 * * *" @@ -17,19 +18,20 @@ fail-fast: false matrix: py: - - "3.11.0-rc.2" + - "3.12.0-beta.2" + - "3.11" - "3.10" - "3.9" - "3.8" - "3.7" os: - - ubuntu-22.04 + - ubuntu-latest steps: - name: Setup python for tox uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - name: Install tox run: python -m pip install tox - uses: actions/checkout@v3 @@ -61,7 +63,7 @@ fail-fast: false matrix: os: - - ubuntu-22.04 + - ubuntu-latest tox_env: - dev - type @@ -70,36 +72,13 @@ - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Setup Python "3.10" + - name: Setup Python "3.11" uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - name: Install tox run: python -m pip install tox - name: Setup test suite run: tox -vv --notest -e ${{ matrix.tox_env }} - name: Run test suite run: tox --skip-pkg-install -e ${{ matrix.tox_env }} - - publish: - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - needs: [ test, check ] - runs-on: ubuntu-latest - steps: - - name: Setup python to build package - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - name: Install build - run: python -m pip install build - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Build sdist and wheel - run: python -m build -s -w . -o dist - - name: Publish to PyPi - uses: pypa/gh-action-pypi-publish@v1.5.1 - with: - skip_existing: true - user: __token__ - password: ${{ secrets.pypi_password }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/.github/workflows/release.yml new/pytest_env-0.8.2/.github/workflows/release.yml --- old/pytest_env-0.8.1/.github/workflows/release.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/.github/workflows/release.yml 2020-02-02 01:00:00.000000000 +0100 @@ -0,0 +1,27 @@ +name: Release to PyPI +on: + push: + tags: ["*"] + +jobs: + release: + runs-on: ubuntu-latest + environment: + name: release + url: https://pypi.org/p/pytest-env + permissions: + id-token: write + steps: + - name: Setup python to build package + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install build + run: python -m pip install build + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Build package + run: pyproject-build -s -w . -o dist + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@v1.8.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/.pre-commit-config.yaml new/pytest_env-0.8.2/.pre-commit-config.yaml --- old/pytest_env-0.8.1/.pre-commit-config.yaml 2020-02-02 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/.pre-commit-config.yaml 2020-02-02 01:00:00.000000000 +0100 @@ -1,53 +1,34 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - - id: check-ast - - id: check-builtin-literals - - id: check-docstring-first - - id: check-merge-conflict - - id: check-yaml - - id: check-toml - - id: debug-statements - id: end-of-file-fixer - id: trailing-whitespace - - repo: https://github.com/asottile/pyupgrade - rev: v3.0.0 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: "v0.0.272" hooks: - - id: pyupgrade - args: [ "--py37-plus" ] - - repo: https://github.com/PyCQA/isort - rev: 5.10.1 - hooks: - - id: isort + - id: ruff + args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 23.3.0 hooks: - id: black - args: [ --safe ] - - repo: https://github.com/asottile/blacken-docs - rev: v1.12.1 - hooks: - - id: blacken-docs - additional_dependencies: [ black==22.10 ] - - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.9.0 - hooks: - - id: rst-backticks - repo: https://github.com/tox-dev/tox-ini-fmt - rev: "0.5.2" + rev: "1.3.0" hooks: - id: tox-ini-fmt - args: [ "-p", "fix" ] - - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 - hooks: - - id: flake8 - additional_dependencies: - - flake8-bugbear==22.9.23 - - flake8-comprehensions==3.10 - - flake8-pytest-style==1.6 - - flake8-spellcheck==0.28 - - flake8-unused-arguments==0.0.12 - - flake8-noqa==1.2.9 - - pep8-naming==0.13.2 + args: ["-p", "fix"] + - repo: https://github.com/tox-dev/pyproject-fmt + rev: "0.11.2" + hooks: + - id: pyproject-fmt + additional_dependencies: ["tox>=4.6"] + - repo: https://github.com/pre-commit/mirrors-prettier + rev: "v3.0.0-alpha.9-for-vscode" + hooks: + - id: prettier + args: ["--print-width=120", "--prose-wrap=always"] + - repo: meta + hooks: + - id: check-hooks-apply + - id: check-useless-excludes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/PKG-INFO new/pytest_env-0.8.2/PKG-INFO --- old/pytest_env-0.8.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pytest-env -Version: 0.8.1 +Version: 0.8.2 Summary: py.test plugin that allows you to add environment variables. Project-URL: Homepage, https://github.com/pytest-dev/pytest-env Project-URL: Source, https://github.com/pytest-dev/pytest-env @@ -34,14 +34,19 @@ Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=3.7 -Requires-Dist: pytest>=7.1.3 +Requires-Dist: pytest>=7.3.1 Provides-Extra: test -Requires-Dist: coverage>=6.5; extra == 'test' +Requires-Dist: coverage>=7.2.7; extra == 'test' Requires-Dist: pytest-mock>=3.10; extra == 'test' Description-Content-Type: text/markdown diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/pyproject.toml new/pytest_env-0.8.2/pyproject.toml --- old/pytest_env-0.8.1/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 @@ -1,33 +1,50 @@ [build-system] build-backend = "hatchling.build" -requires = ["hatchling>=1.11.1", "hatch-vcs>=0.2"] +requires = [ + "hatch-vcs>=0.3", + "hatchling>=1.17.1", +] [project] name = "pytest-env" description = "py.test plugin that allows you to add environment variables." readme = "README.md" +keywords = [ + "env", + "pytest", +] license.file = "LICENSE" maintainers = [{ name = "Bernát Gábor", email = "gaborjber...@gmail.com" }] -urls.Homepage = "https://github.com/pytest-dev/pytest-env" -urls.Source = "https://github.com/pytest-dev/pytest-env" -urls.Tracker = "https://github.com/pytest-dev/pytest-env/issues" requires-python = ">=3.7" -dependencies = ["pytest>=7.1.3"] -optional-dependencies.test = ["coverage>=6.5", "pytest-mock>=3.10"] -keywords = ["pytest", "env"] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", - "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Libraries :: Python Modules", ] -dynamic = ["version"] - +dynamic = [ + "version", +] +dependencies = [ + "pytest>=7.3.1", +] +optional-dependencies.test = [ + "coverage>=7.2.7", + "pytest-mock>=3.10", +] +urls.Homepage = "https://github.com/pytest-dev/pytest-env" +urls.Source = "https://github.com/pytest-dev/pytest-env" +urls.Tracker = "https://github.com/pytest-dev/pytest-env/issues" [project.entry-points.pytest11] env = "pytest_env.plugin" @@ -38,6 +55,10 @@ [tool.black] line-length = 120 +[tool.isort] +profile = "black" +known_first_party = ["pytest_env"] + [tool.coverage] run.source = ["pytest_env", "tests"] run.dynamic_context = "test_function" @@ -61,6 +82,24 @@ show_error_codes = true strict = true -[tool.isort] -profile = "black" -known_first_party = ["pytest_env"] +[tool.ruff] +select = ["ALL"] +line-length = 120 +target-version = "py37" +isort = {known-first-party = ["pytest_env"], required-imports = ["from __future__ import annotations"]} +ignore = [ + "ANN101", # no typoe annotation for self + "ANN401", # allow Any as type annotation + "D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible + "D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible + "S104", # Possible binding to all interface +] +[tool.ruff.per-file-ignores] +"tests/**/*.py" = [ + "S101", # asserts allowed in tests... + "FBT", # don"t care about booleans as positional arguments in tests + "INP001", # no implicit namespace + "D", # don"t care about documentation in tests + "S603", # `subprocess` call: check for execution of untrusted input + "PLR2004", # Magic value used in comparison, consider replacing with a constant variable +] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/src/pytest_env/__init__.py new/pytest_env-0.8.2/src/pytest_env/__init__.py --- old/pytest_env-0.8.1/src/pytest_env/__init__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/src/pytest_env/__init__.py 2020-02-02 01:00:00.000000000 +0100 @@ -1,3 +1,4 @@ +"""Pytest set environments.""" from __future__ import annotations from .version import __version__ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/src/pytest_env/plugin.py new/pytest_env-0.8.2/src/pytest_env/plugin.py --- old/pytest_env-0.8.1/src/pytest_env/plugin.py 2020-02-02 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/src/pytest_env/plugin.py 2020-02-02 01:00:00.000000000 +0100 @@ -12,13 +12,14 @@ parser.addini("env", type="linelist", help=help_msg, default=[]) -@pytest.hookimpl(tryfirst=True) # type: ignore # untyped decorator +@pytest.hookimpl(tryfirst=True) # type: ignore[misc] def pytest_load_initial_conftests( - args: list[str], early_config: pytest.Config, parser: pytest.Parser # noqa: U100 + args: list[str], # noqa: ARG001 + early_config: pytest.Config, + parser: pytest.Parser, # noqa: ARG001 ) -> None: """Load environment variables from configuration files.""" for line in early_config.getini("env"): - # INI lines e.g. D:R:NAME=VAL has two flags (R and D), NAME key, and VAL value parts = line.partition("=") ini_key_parts = parts[0].split(":") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/src/pytest_env/version.py new/pytest_env-0.8.2/src/pytest_env/version.py --- old/pytest_env-0.8.1/src/pytest_env/version.py 2020-02-02 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/src/pytest_env/version.py 2020-02-02 01:00:00.000000000 +0100 @@ -1,5 +1,4 @@ -# coding: utf-8 # file generated by setuptools_scm # don't change, don't track in version control -__version__ = version = '0.8.1' -__version_tuple__ = version_tuple = (0, 8, 1) +__version__ = version = '0.8.2' +__version_tuple__ = version_tuple = (0, 8, 2) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/tests/test_env.py new/pytest_env-0.8.2/tests/test_env.py --- old/pytest_env-0.8.1/tests/test_env.py 2020-02-02 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/tests/test_env.py 2020-02-02 01:00:00.000000000 +0100 @@ -93,11 +93,16 @@ ], ) def test_env( - testdir: pytest.Testdir, env: dict[str, str], ini: str, expected_env: dict[str, str], request: pytest.FixtureRequest + testdir: pytest.Testdir, + env: dict[str, str], + ini: str, + expected_env: dict[str, str], + request: pytest.FixtureRequest, ) -> None: + tmp_dir = Path(str(testdir.tmpdir)) test_name = re.sub(r"\W|^(?=\d)", "_", request.node.callspec.id).lower() - Path(str(testdir.tmpdir / f"test_{test_name}.py")).symlink_to(Path(__file__).parent / "template.py") - (testdir.tmpdir / "pytest.ini").write_text(ini, encoding="utf-8") + Path(str(tmp_dir / f"test_{test_name}.py")).symlink_to(Path(__file__).parent / "template.py") + (tmp_dir / "pytest.ini").write_text(ini, encoding="utf-8") # monkeypatch persists env variables across parametrized tests, therefore using mock.patch.dict with mock.patch.dict(os.environ, {**env, "_TEST_ENV": repr(expected_env)}, clear=True): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/tox.ini new/pytest_env-0.8.2/tox.ini --- old/pytest_env-0.8.1/tox.ini 2020-02-02 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/tox.ini 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,9 @@ [tox] -envlist = +requires = + tox>=4.2 +env_list = fix + py312 py311 py310 py39 @@ -8,16 +11,16 @@ py37 type readme -isolated_build = true skip_missing_interpreters = true -minversion = 3.21 [testenv] description = run the tests with pytest -setenv = - COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}{/}.coverage.{envname}} +package = wheel +wheel_build_env = .pkg extras = test +set_env = + COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}{/}.coverage.{envname}} commands = coverage erase coverage run -m pytest {tty:--color=yes} \ @@ -26,26 +29,24 @@ coverage combine coverage report coverage html -d {envtmpdir}{/}htmlcov -package = wheel -wheel_build_env = .pkg [testenv:fix] description = run static analysis and style check using flake8 -passenv = - HOMEPATH - PROGRAMDATA skip_install = true deps = - pre-commit>=2.20 + pre-commit>=3.2. +pass_env = + HOMEPATH + PROGRAMDATA commands = pre-commit run --all-files --show-diff-on-failure [testenv:type] description = run type check on code base -setenv = - {tty:MYPY_FORCE_COLOR = 1} deps = - mypy==0.982 + mypy==1.3 +set_env = + {tty:MYPY_FORCE_COLOR = 1} commands = mypy --strict src mypy --strict tests @@ -54,16 +55,16 @@ description = check that the long description is valid skip_install = true deps = - build[virtualenv]>=0.8 - twine>=4.0.1 -changedir = {toxinidir} + build[virtualenv]>=0.10 + twine>=4.0.2 +change_dir = {toxinidir} commands = python -m build -o {envtmpdir} . twine check {envtmpdir}/* [testenv:dev] description = generate a DEV environment -usedevelop = true +package = editable extras = test commands = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_env-0.8.1/whitelist.txt new/pytest_env-0.8.2/whitelist.txt --- old/pytest_env-0.8.1/whitelist.txt 2020-02-02 01:00:00.000000000 +0100 +++ new/pytest_env-0.8.2/whitelist.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,13 +0,0 @@ -addini -addoption -callspec -conftests -getini -hookimpl -parametrized -repo -runpytest -testdir -tmpdir -tryfirst -untyped