diff --git a/pytest-mypy-0.10.3.tar.gz b/pytest-mypy-0.10.3.tar.gz deleted file mode 100644 index 563148a78439d484eb3fedc87d56b21f1bb005d7..0000000000000000000000000000000000000000 Binary files a/pytest-mypy-0.10.3.tar.gz and /dev/null differ diff --git a/pytest_mypy-1.0.1.tar.gz b/pytest_mypy-1.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d586e3e53daf7cf0a86cf9c003092452a2f84684 Binary files /dev/null and b/pytest_mypy-1.0.1.tar.gz differ diff --git a/python-pytest-mypy.spec b/python-pytest-mypy.spec index 89fe61b00dbaeca92102230e07df38d37eb7c2a1..4c9155df1e6a74c0964dabe8addeae6f2b81929f 100644 --- a/python-pytest-mypy.spec +++ b/python-pytest-mypy.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-pytest-mypy -Version: 0.10.3 -Release: 2 +Version: 1.0.1 +Release: 1 Summary: Mypy static type checker plugin for Pytest License: MIT URL: https://github.com/dbader/pytest-mypy -Source0: https://files.pythonhosted.org/packages/85/3a/318c91140f242cafff64ddac97d6999640bc3da9afbf37253475c2208e79/pytest-mypy-0.10.3.tar.gz +Source0: https://files.pythonhosted.org/packages/b0/50/3ce149b469e27848c1dc354553b17774f9dde0140625f5a4130bd21e1052/pytest_mypy-1.0.1.tar.gz BuildArch: noarch %description @@ -54,6 +54,7 @@ pytest-flake8 plugin does for flake8. %autosetup -n pytest-mypy-%{version} %build +export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST_MYPY=%{version} %pyproject_build %install @@ -75,7 +76,16 @@ popd mv %{buildroot}/doclist.lst . %check -%{__python3} setup.py test +if [ -f setup.py ]; then + %{__python3} setup.py test +elif [ -d tests ]; then + %{__python3}-m pytest tests/ -v +elif [ -f pytest.ini ] || [ -f pyproject.toml ] || [ -f setup.cfg ]; then + %{__python3} -m pytest +else + echo "No test setup found, skipping tests" +fi + %files -n python3-pytest-mypy %{python3_sitelib}/__pycache__/pytest_mypy.* @@ -86,6 +96,10 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Sat Oct 11 2025 Yu Peng - 1.0.1-1 +- Upgrade to 1.0.1 + * Catch OSErrors when parsing mypy error paths + * Thu Jul 6 2023 li-miaomiao_zhr - 0.10.3-2 - Upgrade the installation method to pyproject